|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.tcp.http11.InternalOutputBuffer
com.sun.grizzly.http.SocketChannelOutputBuffer
com.sun.grizzly.ssl.SSLOutputBuffer
public class SSLOutputBuffer
Buffer the bytes until the ByteChunk is full or the request
is completed, and then delegate the SSL encryption to class
SSLOutputBuffer
| Nested Class Summary | |
|---|---|
protected static class |
SSLOutputBuffer.AsyncWriteCallbackHandlerImpl
AsyncWriteCallbackHandler implementation, which is responsible
for returning cloned ByteBuffers to the pool |
| Nested classes/interfaces inherited from class com.sun.grizzly.http.SocketChannelOutputBuffer |
|---|
SocketChannelOutputBuffer.ByteBufferClonerImpl |
| Nested classes/interfaces inherited from class com.sun.grizzly.tcp.http11.InternalOutputBuffer |
|---|
InternalOutputBuffer.OutputStreamOutputBuffer |
| Field Summary |
|---|
| Fields inherited from class com.sun.grizzly.http.SocketChannelOutputBuffer |
|---|
ACK, asyncHttpByteBufferCloner, asyncQueueWriter, bufferPool, channel, DEFAULT_BUFFER_POOL_SIZE, discardBytes, isAsyncHttpWriteEnabled, logger, maxBufferedBytes, maxBufferPoolSize, outputByteBuffer, selectionKey |
| Fields inherited from class com.sun.grizzly.tcp.http11.InternalOutputBuffer |
|---|
activeFilters, buf, committed, filterLibrary, finished, headers, lastActiveFilter, outputStream, outputStreamOutputBuffer, pos, response, socketBuffer, useSocketBuffer |
| Constructor Summary | |
|---|---|
SSLOutputBuffer(Response response,
int headerBufferSize,
boolean useSocketBuffer)
Alternate constructor. |
|
| Method Summary | |
|---|---|
void |
flushChannel(java.nio.ByteBuffer bb)
Flush the buffer by looping until the ByteBuffer is empty
using SSLOutputBuffer |
javax.net.ssl.SSLEngine |
getSSLEngine()
Set the SSLEngine. |
boolean |
isSupportFileSend()
|
void |
recycle()
Recycle the output buffer. |
void |
setSSLEngine(javax.net.ssl.SSLEngine sslEngine)
Get the SSLEngine. |
| Methods inherited from class com.sun.grizzly.http.SocketChannelOutputBuffer |
|---|
createByteBuffer, discardUpstreamBytes, endRequest, flush, flushBuffer, getAsyncQueueWriter, getChannel, getMaxBufferedBytes, getMaxBufferPoolSize, getOutputByteBuffer, getSelectionKey, isAsyncHttpWriteEnabled, realWriteBytes, reset, sendAck, sendFile, setAsyncHttpWriteEnabled, setAsyncQueueWriter, setChannel, setMaxBufferedBytes, setMaxBufferPoolSize, setSelectionKey, write, write |
| Methods inherited from class com.sun.grizzly.tcp.http11.InternalOutputBuffer |
|---|
addActiveFilter, addFilter, addLastOutputFilter, clearFilters, commit, doWrite, endHeaders, flush, getFilters, getOutputStream, nextRequest, sendHeader, sendHeader, sendHeader, sendStatus, setOutputStream, setSocketBuffer, write, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSLOutputBuffer(Response response,
int headerBufferSize,
boolean useSocketBuffer)
| Method Detail |
|---|
public javax.net.ssl.SSLEngine getSSLEngine()
SSLEngine.
getSSLEngine in interface SecureOutputBufferpublic void setSSLEngine(javax.net.ssl.SSLEngine sslEngine)
SSLEngine.
setSSLEngine in interface SecureOutputBuffer
public void flushChannel(java.nio.ByteBuffer bb)
throws java.io.IOException
ByteBuffer is empty
using SSLOutputBuffer
flushChannel in class SocketChannelOutputBufferbb - the ByteBuffer to write.
java.io.IOExceptionpublic boolean isSupportFileSend()
isSupportFileSend in interface FileOutputBufferisSupportFileSend in class SocketChannelOutputBufferpublic void recycle()
SocketChannelOutputBuffer
recycle in class SocketChannelOutputBuffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||