|
||||||||||
| 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.SSLAsyncOutputBuffer
public class SSLAsyncOutputBuffer
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 |
|---|
| Nested classes/interfaces inherited from class com.sun.grizzly.http.SocketChannelOutputBuffer |
|---|
SocketChannelOutputBuffer.AsyncWriteCallbackHandlerImpl, SocketChannelOutputBuffer.ByteBufferClonerImpl |
| Nested classes/interfaces inherited from class com.sun.grizzly.tcp.http11.InternalOutputBuffer |
|---|
InternalOutputBuffer.OutputStreamOutputBuffer |
| Field Summary | |
|---|---|
protected ByteBuffer |
outputBB
Encrypted Output ByteBuffer |
protected SSLEngine |
sslEngine
The SSLEngine used to write SSL data. |
| Fields inherited from class com.sun.grizzly.http.SocketChannelOutputBuffer |
|---|
ACK, asyncHttpByteBufferCloner, asyncQueueWriter, bufferPool, channel, DEFAULT_BUFFER_POOL_SIZE, isAsyncHttpWriteEnabled, logger, MAX_BUFFERED_BYTES, 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 | |
|---|---|
SSLAsyncOutputBuffer(Response response,
int headerBufferSize,
boolean useSocketBuffer)
Alternate constructor. |
|
| Method Summary | |
|---|---|
void |
flushChannel(ByteBuffer bb)
Flush the buffer by looping until the ByteBuffer is empty
using SSLOutputBuffer |
ByteBuffer |
getOutputBB()
Return the encrypted ByteBuffer used to handle response. |
SSLEngine |
getSSLEngine()
Set the SSLEngine. |
void |
setOutputBB(ByteBuffer outputBB)
Set the encrypted ByteBuffer used to handle response. |
void |
setSSLEngine(SSLEngine sslEngine)
Get the SSLEngine. |
| Methods inherited from class com.sun.grizzly.http.SocketChannelOutputBuffer |
|---|
createByteBuffer, endRequest, flush, flushBuffer, getAsyncQueueWriter, getChannel, getMaxBufferedBytes, getMaxBufferPoolSize, getSelectionKey, isAsyncHttpWriteEnabled, isSupportFileSend, realWriteBytes, recycle, reset, sendAck, sendFile, setAsyncHttpWriteEnabled, setAsyncQueueWriter, setChannel, setMaxBufferedBytes, setMaxBufferPoolSize, setSelectionKey |
| Methods inherited from class com.sun.grizzly.tcp.http11.InternalOutputBuffer |
|---|
addActiveFilter, addFilter, addLastOutputFilter, clearFilters, commit, doWrite, endHeaders, getFilters, getOutputStream, nextRequest, sendHeader, sendHeader, sendHeader, sendStatus, setOutputStream, setSocketBuffer, write, write, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ByteBuffer outputBB
ByteBuffer
protected SSLEngine sslEngine
SSLEngine used to write SSL data.
| Constructor Detail |
|---|
public SSLAsyncOutputBuffer(Response response,
int headerBufferSize,
boolean useSocketBuffer)
| Method Detail |
|---|
public void flushChannel(ByteBuffer bb)
throws IOException
ByteBuffer is empty
using SSLOutputBuffer
flushChannel in class SocketChannelOutputBufferbb - the ByteBuffer to write.
IOExceptionpublic ByteBuffer getOutputBB()
ByteBuffer used to handle response.
public void setOutputBB(ByteBuffer outputBB)
ByteBuffer used to handle response.
public SSLEngine getSSLEngine()
SSLEngine.
public void setSSLEngine(SSLEngine sslEngine)
SSLEngine.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||