| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | SslConduit.
A specialized |
| private class | SslConduit.
Read ready handler that deals with read-requires-write semantics |
| private class | SslConduit.
write read handler that deals with write-requires-read semantics |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufferPool | |
| private final UndertowSslConnection | |
| private volatile PooledByteBuffer | dataToUnwrap
Data that has been read from the underlying channel, and needs to be unwrapped. |
| private final StreamConnection | |
| private final Executor | |
| public static final ByteBuffer | |
| private SSLEngine | |
| private static volatile ByteBufferPool | expandedBufferPool
Buffer pool created and used only when large fragments handling is enabled in the underlying SSL Engine. |
| private static final int | |
| private static final int | FLAG_DATA_TO_UNWRAP
If there is data in the |
| private static final int | |
| private static final int | |
| private static final int | FLAG_ENGINE_INBOUND_SHUTDOWN
If the engine has been shut down |
| private static final int | FLAG_ENGINE_OUTBOUND_SHUTDOWN
If the engine has been shut down |
| private static final int | |
| private static final int | |
| private static final int | FLAG_READ_REQUIRES_WRITE
If this is set we are in the middle of a handshake, and we cannot read any more data until we have written out our wrap result |
| private static final int | FLAG_READ_SHUTDOWN
If the user has shutdown reads |
| private static final int | FLAG_READS_RESUMED
If reads are resumed. |
| private static final int | |
| private static final int | FLAG_WRITE_REQUIRES_READ
If this is set we are in the process of handshaking and we cannot write any more data until we have read unwrapped data from the remote peer |
| private static final int | FLAG_WRITE_SHUTDOWN
If the user has shutdown writes |
| private static final int | FLAG_WRITES_RESUMED
If writes are resumed, the underlying delegate may not be resumed if a read is required |
| private final Runnable | |
| private boolean | |
| public static final int | |
| private volatile int | |
| private int | |
| private SslConduit. | |
| private final Runnable | |
| private final Runnable | |
| private final StreamSinkConduit | |
| private final StreamSourceConduit | |
| private volatile int | |
| private volatile PooledByteBuffer | unwrappedData
Unwrapped data, ready to be delivered to the application. |
| private volatile PooledByteBuffer | wrappedData
Data that has been wrapped and is ready to be sent to the underlying channel. |
| private SslConduit. |
| Access | Constructor and Description |
|---|---|
| pack-priv | SslConduit(UndertowSslConnection connection, StreamConnection delegate, SSLEngine engine, Executor delegatedTaskExecutor, ByteBufferPool bufferPool, Runnable handshakeCallback)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable()
Implements org. Block until this channel becomes readable again. |
| public void | awaitReadable(long
the time to wait time, 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(long
the time to wait time, TimeUnit the time unit timeUnit)Implements org. Block until this conduit becomes writable again, or until the timeout expires. |
| private void | |
| private void | |
| public void | |
| private void | |
| private void | |
| private synchronized long | Returns: true if the unwrap operation made progress, false otherwiseUnwrap channel data into the user buffers. |
| private synchronized long | Returns: The amount of data consumedThe buffers userBuffers, int The offset off, int The length len)Wraps the user data and attempts to send it to the remote client. |
| private SSLEngineResult | Returns: The last engine resultThe src wrapped data to unwrap. src, ByteBuffer[] The destinations buffers to unwrap the data to dsts, int Offset buffer off, int len buffer len, SslConduit.Accumulative or boolean for the bytes produced bytesProducedPerform unwraps while it is needed and there is data in src buffer. |
| public boolean | |
| private Executor | |
| public XnioIoThread | |
| public SSLEngine | |
| public SSLSession | |
| 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. |
| private boolean | |
| 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. |
| 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 void | |
| pack-priv void | |
| public int | read(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(ByteBuffer[]
the buffers to fill with data from the conduit dsts, int the offset into the buffer array offs, int the number of buffers to fill len)Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| public void | resumeReads()
Implements org. Indicate that the conduit's |
| private void | |
| public void | resumeWrites()
Implements org. Indicate that the conduit's |
| private void | |
| private void | runTasks()
Execute all the delegated tasks on an executor which allows blocking, the worker executor by default. |
| private void | |
| public void | setReadReadyHandler(ReadReadyHandler
the filter to receive readiness notifications handler)Implements org. Set the handler which should receive readiness notifications. |
| public void | |
| public void | setWriteReadyHandler(WriteReadyHandler
the filter to receive readiness notifications handler)Implements org. Set the handler which should receive readiness notifications. |
| public void | |
| 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(FileChannel
the file to read from src, long the position within the file from which the transfer is to begin position, long the number of bytes to be transferred count)Implements org. Transfer bytes into this conduit from the given file. |
| public long | transferFrom(StreamSourceChannel
the source to read from source, long the number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer)Implements org. Transfers bytes from the given channel source. |
| public long | transferTo(long
the position within the file from which the transfer is to begin position, long the number of bytes to be transferred count, FileChannel the file to write to target)Implements org. Transfers bytes into the given file from this channel. |
| public long | transferTo(long
the number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer, 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 |
| private SSLEngineResult | |
| public int | write(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(ByteBuffer[]
the buffers containing data to write srcs, int the offset into the buffer array offs, 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(ByteBuffer
The data to write src)Implements org. Writes some data to the conduit, with the same semantics as
|
| public long | writeFinal(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs, 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 offset, int The maximum number of buffers to be accessed; must be
non-negative and no larger than
srcs.length - offset length)Implements org. Writes some data to the conduit, with the same semantics as
|