| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final JsseSslConnection | |
| private final SSLEngine | |
| private static final int | FLAG_FLUSH_NEEDED
we need a flush to proceed with handshake |
| private static final int | FLAG_INLINE_TASKS
Run tasks immediately rather than in the worker |
| private static final int | FLAG_NEED_ENGINE_TASK
Set when the engine needs the result of a delegated task to continue |
| private static final int | FLAG_TASK_QUEUED
Set when task is queued; cleared when it runs |
| private static final int | FLAG_TLS
TLS is enabled |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final ByteBuffer[] | |
| private static final int | READ_FLAG_EOF
-1 was read |
| private static final int | READ_FLAG_NEEDS_WRITE
read needs wrap to proceed |
| private static final int | READ_FLAG_READY
user read handler should be called if resumed |
| private static final int | READ_FLAG_RESUMED
resumeReads() called |
| private static final int | READ_FLAG_SHUTDOWN
shutdownReads() was called upstream |
| private static final int | READ_FLAG_UP_RESUMED
upstream resumeReads() called |
| private static final int | READ_FLAG_WAKEUP
wakeupReads() called |
| private final Pooled | readBuffer
References Deprecated
The buffer into which inbound clear data is written.
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final ByteBuffer[] | |
| private final ReadReadyHandler | |
| private ReadReadyHandler | |
| private final Pooled | receiveBuffer
References Deprecated
The buffer into which incoming SSL data is written.
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final Pooled | sendBuffer
References Deprecated
The buffer from which outbound SSL data is sent.
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final StreamSinkConduit | |
| private final StreamSourceConduit | |
| private int | |
| private int | |
| private static final boolean | |
| private static final int | WRITE_FLAG_FINISHED
flush() returned true after shutdown |
| private static final int | WRITE_FLAG_NEEDS_READ
write needs unwrap to proceed |
| private static final int | WRITE_FLAG_READY
user write handler should be called if resumed |
| private static final int | WRITE_FLAG_RESUMED
resumeWrites() called |
| private static final int | WRITE_FLAG_SHUTDOWN
shutdownWrites() was called |
| private static final int | WRITE_FLAG_SHUTDOWN2
send buffer cleared for final wrap after shutdownWrites() |
| private static final int | WRITE_FLAG_SHUTDOWN3
wrapping was completed after shutdownWrites() was called |
| private static final int | WRITE_FLAG_UP_RESUMED
upstream resumeWrites() called |
| private static final int | WRITE_FLAG_WAKEUP
wakeupWrites() called |
| private final ByteBuffer[] | |
| private final WriteReadyHandler | |
| private WriteReadyHandler |
| Access | Constructor and Description |
|---|---|
| pack-priv | JsseStreamConduit(final JsseSslConnection connection, final SSLEngine engine, final StreamSourceConduit sourceConduit, final StreamSinkConduit sinkConduit, final Pool<ByteBuffer> socketBufferPool, final Pool<ByteBuffer> applicationBufferPool)
References Deprecated
Pool is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Method and Description |
|---|---|
| private static long | |
| public void | awaitReadable()
Implements org. Block until this channel becomes readable again. |
| public void | awaitReadable(final long
the time to wait time, final TimeUnit the time unit timeUnit)Implements org. Block until this conduit becomes readable again, or until the timeout expires. |
| public void | awaitWritable()
Implements org. Block until this channel becomes writable again. |
| public void | awaitWritable(final long
the time to wait time, final TimeUnit the time unit timeUnit)Implements org. Block until this conduit becomes writable again, or until the timeout expires. |
| pack-priv void | |
| private static String | |
| public boolean | |
| pack-priv SSLEngine | |
| public XnioIoThread | |
| pack-priv SSLSession | |
| public String | |
| public XnioWorker | getWorker()
Implements org. Get the XNIO worker associated with this conduit. |
| public XnioIoThread | getWriteThread()
Implements org. Get the write thread for this conduit. |
| public boolean | isReadResumed()
Implements org. Determine whether read notifications are currently enabled. |
| public boolean | isReadShutdown()
Implements org. Determine whether reads have been shut down on this conduit. |
| pack-priv boolean | |
| public boolean | isWriteResumed()
Implements org. Determine whether write notifications are currently enabled. |
| public boolean | isWriteShutdown()
Implements org. Determine whether writes have been fully shut down on this conduit. |
| pack-priv boolean | |
| private long | performIO(final int goal, final ByteBuffer[] srcs, final int srcOff, final int srcLen, final ByteBuffer[] dsts, final int dstOff, final int dstLen)
|
| public int | read(final ByteBuffer
the buffer to fill with data from the conduit dst)Implements org. Read a sequence of bytes from this conduit to the given buffer. |
| public long | read(final ByteBuffer[]
the buffers to fill with data from the conduit dsts, final int the offset into the buffer array offs, final int the number of buffers to fill len)Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| public void | |
| public void | resumeReads()
Implements org. Indicate that the conduit's |
| public void | resumeWrites()
Implements org. Indicate that the conduit's |
| public void | |
| public void | setReadReadyHandler(final ReadReadyHandler
the filter to receive readiness notifications handler)Implements org. Set the handler which should receive readiness notifications. |
| public void | setWriteReadyHandler(final WriteReadyHandler
the filter to receive readiness notifications handler)Implements org. Set the handler which should receive readiness notifications. |
| public void | suspendReads()
Implements org. Indicate that calling the conduit's |
| public void | suspendWrites()
Implements org. Indicate that calling the conduit's |
| public void | terminateReads()
Implements org. Indicate that no more data will be read from this conduit. |
| public void | terminateWrites()
Implements org. Signal that no more write data is forthcoming. |
| public String | |
| public long | transferFrom(final FileChannel
the file to read from src, final long the position within the file from which the transfer is to begin position, final long the number of bytes to be transferred count)Implements org. Transfer bytes into this conduit from the given file. |
| public long | transferFrom(final StreamSourceChannel
the source to read from source, final long the number of bytes to be transferred count, final ByteBuffer the buffer to copy through. throughBuffer)Implements org. Transfers bytes from the given channel source. |
| public long | transferTo(final long
the position within the file from which the transfer is to begin position, final long the number of bytes to be transferred count, final FileChannel the file to write to target)Implements org. Transfers bytes into the given file from this channel. |
| public long | transferTo(final long
the number of bytes to be transferred count, final ByteBuffer the buffer to copy through. throughBuffer, final StreamSinkChannel the destination to write to target)Implements org. Transfers bytes into the given channel target. |
| public void | truncateWrites()
Implements org. Terminate writes and discard any outstanding write data. |
| public void | wakeupReads()
Implements org. Indicate that the conduit's |
| public void | wakeupWrites()
Implements org. Indicate that the conduit's |
| public int | write(final ByteBuffer
the buffer containing data to write src)Implements org. Writes a sequence of bytes to this conduit from the given buffer. |
| public long | write(final ByteBuffer[]
the buffers containing data to write srcs, final int the offset into the buffer array offs, final int the number of buffers to write len)Implements org. Writes a sequence of bytes to this conduit from the given buffers. |
| public int | writeFinal(final ByteBuffer
The data to write src)Implements org. Writes some data to the conduit, with the same semantics as
|
| public long | writeFinal(final ByteBuffer[]
The buffers from which bytes are to be retrieved srcs, final int The offset within the buffer array of the first buffer from
which bytes are to be retrieved; must be non-negative and no
larger than srcs.length offs, final int The maximum number of buffers to be accessed; must be
non-negative and no larger than
srcs.length - offset len)Implements org. Writes some data to the conduit, with the same semantics as
|
| public void |
| connection | back to summary |
|---|---|
| private final JsseSslConnection connection | |
| engine | back to summary |
|---|---|
| private final SSLEngine engine | |
| FLAG_FLUSH_NEEDED | back to summary |
|---|---|
| private static final int FLAG_FLUSH_NEEDED we need a flush to proceed with handshake | |
| FLAG_INLINE_TASKS | back to summary |
|---|---|
| private static final int FLAG_INLINE_TASKS Run tasks immediately rather than in the worker | |
| FLAG_NEED_ENGINE_TASK | back to summary |
|---|---|
| private static final int FLAG_NEED_ENGINE_TASK Set when the engine needs the result of a delegated task to continue | |
| FLAG_TASK_QUEUED | back to summary |
|---|---|
| private static final int FLAG_TASK_QUEUED Set when task is queued; cleared when it runs | |
| FLAG_TLS | back to summary |
|---|---|
| private static final int FLAG_TLS TLS is enabled | |
| IO_GOAL_FLUSH | back to summary |
|---|---|
| private static final int IO_GOAL_FLUSH | |
| IO_GOAL_READ | back to summary |
|---|---|
| private static final int IO_GOAL_READ | |
| IO_GOAL_WRITE | back to summary |
|---|---|
| private static final int IO_GOAL_WRITE | |
| IO_GOAL_WRITE_FINAL | back to summary |
|---|---|
| private static final int IO_GOAL_WRITE_FINAL | |
| NO_BUFFERS | back to summary |
|---|---|
| private static final ByteBuffer[] NO_BUFFERS | |
| READ_FLAG_EOF | back to summary |
|---|---|
| private static final int READ_FLAG_EOF -1 was read | |
| READ_FLAG_NEEDS_WRITE | back to summary |
|---|---|
| private static final int READ_FLAG_NEEDS_WRITE read needs wrap to proceed | |
| READ_FLAG_READY | back to summary |
|---|---|
| private static final int READ_FLAG_READY user read handler should be called if resumed | |
| READ_FLAG_RESUMED | back to summary |
|---|---|
| private static final int READ_FLAG_RESUMED resumeReads() called | |
| READ_FLAG_SHUTDOWN | back to summary |
|---|---|
| private static final int READ_FLAG_SHUTDOWN shutdownReads() was called upstream | |
| READ_FLAG_UP_RESUMED | back to summary |
|---|---|
| private static final int READ_FLAG_UP_RESUMED upstream resumeReads() called | |
| READ_FLAG_WAKEUP | back to summary |
|---|---|
| private static final int READ_FLAG_WAKEUP wakeupReads() called | |
| readBuffer | back to summary |
|---|---|
| private final Pooled<ByteBuffer> readBuffer
References Deprecated
See corresponding docs for further information. The buffer into which inbound clear data is written. | |
| readBufferHolder | back to summary |
|---|---|
| private final ByteBuffer[] readBufferHolder | |
| readReady | back to summary |
|---|---|
| private final ReadReadyHandler readReady | |
| readReadyHandler | back to summary |
|---|---|
| private ReadReadyHandler readReadyHandler | |
| receiveBuffer | back to summary |
|---|---|
| private final Pooled<ByteBuffer> receiveBuffer
References Deprecated
See corresponding docs for further information. The buffer into which incoming SSL data is written. | |
| sendBuffer | back to summary |
|---|---|
| private final Pooled<ByteBuffer> sendBuffer
References Deprecated
See corresponding docs for further information. The buffer from which outbound SSL data is sent. | |
| sinkConduit | back to summary |
|---|---|
| private final StreamSinkConduit sinkConduit | |
| sourceConduit | back to summary |
|---|---|
| private final StreamSourceConduit sourceConduit | |
| state | back to summary |
|---|---|
| private int state | |
| tasks | back to summary |
|---|---|
| private int tasks | |
| TRACE_SSL | back to summary |
|---|---|
| private static final boolean TRACE_SSL | |
| WRITE_FLAG_FINISHED | back to summary |
|---|---|
| private static final int WRITE_FLAG_FINISHED flush() returned true after shutdown | |
| WRITE_FLAG_NEEDS_READ | back to summary |
|---|---|
| private static final int WRITE_FLAG_NEEDS_READ write needs unwrap to proceed | |
| WRITE_FLAG_READY | back to summary |
|---|---|
| private static final int WRITE_FLAG_READY user write handler should be called if resumed | |
| WRITE_FLAG_RESUMED | back to summary |
|---|---|
| private static final int WRITE_FLAG_RESUMED resumeWrites() called | |
| WRITE_FLAG_SHUTDOWN | back to summary |
|---|---|
| private static final int WRITE_FLAG_SHUTDOWN shutdownWrites() was called | |
| WRITE_FLAG_SHUTDOWN2 | back to summary |
|---|---|
| private static final int WRITE_FLAG_SHUTDOWN2 send buffer cleared for final wrap after shutdownWrites() | |
| WRITE_FLAG_SHUTDOWN3 | back to summary |
|---|---|
| private static final int WRITE_FLAG_SHUTDOWN3 wrapping was completed after shutdownWrites() was called | |
| WRITE_FLAG_UP_RESUMED | back to summary |
|---|---|
| private static final int WRITE_FLAG_UP_RESUMED upstream resumeWrites() called | |
| WRITE_FLAG_WAKEUP | back to summary |
|---|---|
| private static final int WRITE_FLAG_WAKEUP wakeupWrites() called | |
| writeBufferHolder | back to summary |
|---|---|
| private final ByteBuffer[] writeBufferHolder | |
| writeReady | back to summary |
|---|---|
| private final WriteReadyHandler writeReady | |
| writeReadyHandler | back to summary |
|---|---|
| private WriteReadyHandler writeReadyHandler | |
| JsseStreamConduit | back to summary |
|---|---|
| pack-priv JsseStreamConduit(final JsseSslConnection connection, final SSLEngine engine, final StreamSourceConduit sourceConduit, final StreamSinkConduit sinkConduit, final Pool<ByteBuffer> socketBufferPool, final Pool<ByteBuffer> applicationBufferPool)
References Deprecated
See corresponding docs for further information. | |
| actualIOResult | back to summary |
|---|---|
| private static long actualIOResult(final long xfer, final int goal, final boolean flushed, final boolean eof) | |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException Implements org. Doc from org. Block until this channel becomes readable again. This method may return spuriously before the channel becomes readable.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable(final long time, final TimeUnit timeUnit) throws IOException Implements org. Doc from org. Block until this conduit becomes readable again, or until the timeout expires. This method may return spuriously before the conduit becomes readable or the timeout expires.
| |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable() throws IOException Implements org. Doc from org. Block until this channel becomes writable again. This method may return spuriously before the channel becomes writable.
| |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable(final long time, final TimeUnit timeUnit) throws IOException Implements org. Doc from org. Block until this conduit becomes writable again, or until the timeout expires. This method may return spuriously before the conduit becomes writable or the timeout expires.
| |
| beginHandshake | back to summary |
|---|---|
| pack-priv void beginHandshake() throws IOException | |
| decodeGoal | back to summary |
|---|---|
| private static String decodeGoal(int goal) | |
| flush | back to summary |
|---|---|
| public boolean flush() throws IOException Implements org. Doc from org. Flush out any unwritten, buffered output.
| |
| getEngine | back to summary |
|---|---|
| pack-priv SSLEngine getEngine() | |
| getReadThread | back to summary |
|---|---|
| public XnioIoThread getReadThread() Implements org. Doc from org. Get the XNIO read thread.
| |
| getSslSession | back to summary |
|---|---|
| pack-priv SSLSession getSslSession() | |
| getStatus | back to summary |
|---|---|
| public String getStatus() | |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements org. Doc from org. Get the XNIO worker associated with this conduit.
| |
| getWriteThread | back to summary |
|---|---|
| public XnioIoThread getWriteThread() Implements org. Doc from org. Get the write thread for this conduit.
| |
| isReadResumed | back to summary |
|---|---|
| public boolean isReadResumed() Implements org. Doc from org. Determine whether read notifications are currently enabled.
| |
| isReadShutdown | back to summary |
|---|---|
| public boolean isReadShutdown() Implements org. Doc from org. Determine whether reads have been shut down on this conduit.
| |
| isTls | back to summary |
|---|---|
| pack-priv boolean isTls() | |
| isWriteResumed | back to summary |
|---|---|
| public boolean isWriteResumed() Implements org. Doc from org. Determine whether write notifications are currently enabled.
| |
| isWriteShutdown | back to summary |
|---|---|
| public boolean isWriteShutdown() Implements org. Doc from org. Determine whether writes have been fully shut down on this conduit.
| |
| markTerminated | back to summary |
|---|---|
| pack-priv boolean markTerminated() | |
| performIO | back to summary |
|---|---|
| private long performIO(final int goal, final ByteBuffer[] srcs, final int srcOff, final int srcLen, final ByteBuffer[] dsts, final int dstOff, final int dstLen) throws IOException | |
| read | back to summary |
|---|---|
| public int read(final ByteBuffer dst) throws IOException Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffer.
| |
| read | back to summary |
|---|---|
| public long read(final ByteBuffer[] dsts, final int offs, final int len) throws IOException Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| readReady | back to summary |
|---|---|
| public void readReady() Called by the upstream conduit when reads are ready. | |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Implements org. Doc from org. Indicate that the conduit's | |
| resumeWrites | back to summary |
|---|---|
| public void resumeWrites() Implements org. Doc from org. Indicate that the conduit's | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| setReadReadyHandler | back to summary |
|---|---|
| public void setReadReadyHandler(final ReadReadyHandler handler) Implements org. Doc from org. Set the handler which should receive readiness notifications. A filter may pass this invocation on to the filter it wraps, or it may substitute itself.
| |
| setWriteReadyHandler | back to summary |
|---|---|
| public void setWriteReadyHandler(final WriteReadyHandler handler) Implements org. Doc from org. Set the handler which should receive readiness notifications. A filter may pass this invocation on to the filter it wraps, or it may substitute itself.
| |
| suspendReads | back to summary |
|---|---|
| public void suspendReads() Implements org. Doc from org. Indicate that calling the conduit's | |
| suspendWrites | back to summary |
|---|---|
| public void suspendWrites() Implements org. Doc from org. Indicate that calling the conduit's | |
| terminateReads | back to summary |
|---|---|
| public void terminateReads() throws IOException Implements org. Doc from org. Indicate that no more data will be read from this conduit. If unread data exists, an exception may be thrown.
| |
| terminateWrites | back to summary |
|---|---|
| public void terminateWrites() throws IOException Implements org. Doc from org. Signal that no more write data is forthcoming. The conduit must be | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(final FileChannel src, final long position, final long count) throws IOException Implements org. Doc from org. Transfer bytes into this conduit from the given file.
| |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(final StreamSourceChannel source, final long count, final ByteBuffer throughBuffer) throws IOException Implements org. Doc from org. Transfers bytes from the given channel source. On entry,
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(final long position, final long count, final FileChannel target) throws IOException Implements org. Doc from org. Transfers bytes into the given file from this channel.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(final long count, final ByteBuffer throughBuffer, final StreamSinkChannel target) throws IOException Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |
| truncateWrites | back to summary |
|---|---|
| public void truncateWrites() throws IOException Implements org. Doc from org. Terminate writes and discard any outstanding write data. The conduit is terminated and flushed regardless of the outcome of this method.
| |
| wakeupReads | back to summary |
|---|---|
| public void wakeupReads() Implements org. Doc from org. Indicate that the conduit's | |
| wakeupWrites | back to summary |
|---|---|
| public void wakeupWrites() Implements org. Doc from org. Indicate that the conduit's | |
| write | back to summary |
|---|---|
| public int write(final ByteBuffer src) throws IOException Implements org. Doc from org. Writes a sequence of bytes to this conduit from the given buffer.
| |
| write | back to summary |
|---|---|
| public long write(final ByteBuffer[] srcs, final int offs, final int len) throws IOException Implements org. Doc from org. Writes a sequence of bytes to this conduit from the given buffers.
| |
| writeFinal | back to summary |
|---|---|
| public int writeFinal(final ByteBuffer src) throws IOException Implements org. Doc from org. Writes some data to the conduit, with the same semantics as
| |
| writeFinal | back to summary |
|---|---|
| public long writeFinal(final ByteBuffer[] srcs, final int offs, final int len) throws IOException Implements org. Doc from org. Writes some data to the conduit, with the same semantics as
| |
| writeReady | back to summary |
|---|---|
| public void writeReady() Called by the upstream conduit when writes are ready. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| task | back to summary |
|---|---|
| private final Runnable task | |
| TaskWrapper | back to summary |
|---|---|
| pack-priv TaskWrapper(final Runnable task) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |