| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static interface | |
| public static enum | |
| public static enum | |
| protected abstract class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected int | bufferedWriteSize
The max size of the individual buffered write buffers |
| protected final AtomicBoolean | |
| public static final SocketWrapperBase. | COMPLETE_READ
This utility CompletionCheck will cause the completion handler to be called once the given buffers are full. |
| public static final SocketWrapperBase. | COMPLETE_READ_WITH_COMPLETION
This utility CompletionCheck will cause the completion handler to be called once the given buffers are full. |
| public static final SocketWrapperBase. | COMPLETE_WRITE
This utility CompletionCheck will cause the write to fully write all remaining data. |
| public static final SocketWrapperBase. | COMPLETE_WRITE_WITH_COMPLETION
This utility CompletionCheck will cause the write to fully write all remaining data. |
| private final String | |
| private static final AtomicLong | |
| private final AtomicReference | currentProcessor
The org.apache.coyote.Processor instance currently associated with the wrapper. |
| private final AbstractEndpoint | |
| private volatile IOException | error
Used to record the first IOException that occurs during non-blocking read/writes that can't be usefully propagated up the stack since there is no user code or appropriate container code in the stack to handle it. |
| private volatile int | |
| protected String | |
| protected String | |
| protected int | |
| private final Lock | |
| private static final Log | |
| private String | |
| protected final WriteBuffer | nonBlockingWriteBuffer
Additional buffer used for non-blocking writes. |
| protected volatile IOException | |
| public static final SocketWrapperBase. | READ_DATA
This utility CompletionCheck will cause the completion handler to be called once some data has been read. |
| protected volatile SocketWrapperBase | |
| protected final Semaphore | |
| private volatile long | |
| protected String | |
| protected String | |
| protected int | |
| protected volatile ServletConnection | |
| protected static final StringManager | |
| private E | |
| protected volatile SocketBufferHandler | socketBufferHandler
The buffers used for communicating with the socket. |
| protected volatile SocketWrapperBase | |
| protected final Semaphore | |
| private volatile long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static boolean | |
| public boolean | |
| public void | |
| public void | |
| public abstract SendfileDataBase | |
| public int | |
| public abstract void | doClientAuth(SSLSupport
The SSL/TLS support instance currently being used by
the connection that may need updating after the client
authentication sslSupport)Require the client to perform CLIENT-CERT authentication if it hasn't already done so. |
| protected abstract void | |
| protected void | doWrite(boolean
Should the write be blocking or not? block)Write the contents of the socketWriteBuffer to the socket. |
| protected abstract void | doWrite(boolean
Should the write be blocking or not? block, ByteBuffer the ByteBuffer containing the data to be written from)Write the contents of the ByteBuffer to the socket. |
| public void | |
| public boolean | Returns: true if data remains to be flushed after this method
completes, otherwise false. In blocking mode
therefore, the return value should always be falsetrue if a blocking write should be used,
otherwise a non-blocking write will be usedWrites as much data as possible from any that remains in the buffers. |
| protected void | |
| protected abstract boolean | Returns: true if data remains to be flushed after this method
completes, otherwise false.Writes as much data as possible from any that remains in the buffers. |
| public Object | |
| protected AbstractEndpoint | |
| public IOException | |
| public String | |
| public String | |
| public int | |
| public Lock | |
| public String | |
| public long | |
| public String | |
| public String | |
| public int | |
| public ServletConnection | |
| public E | |
| public SocketBufferHandler | |
| public abstract SSLSupport | Returns: An SSLSupport instance for this socket.Obtain an SSLSupport instance for this socket. |
| private String | |
| public long | |
| public boolean | Returns: true if the connector has the capability enabledAllows using NIO2 style read/write. |
| public boolean | |
| public boolean | |
| public boolean | Returns: This default implementation always returnsfalseAllows indicating if the connector supports per operation timeout. |
| public boolean | |
| public boolean | Returns: true if the endpoint supports asynchronous IO and
a read operation is being processed asynchronouslyAllows checking if an asynchronous read operation is currently pending. |
| public abstract boolean | |
| public boolean | Returns: true if no writes are pending and data can be
written otherwise falseChecks to see if there are any writes pending and if there are calls
|
| public boolean | Returns: true if the endpoint supports asynchronous IO and
a write operation is being processed asynchronouslyAllows checking if an asynchronous write operation is currently pending. |
| public boolean | Returns: This default implementation always returnsfalseAllows indicating if the connector needs semaphores. |
| protected abstract <A> SocketWrapperBase | newOperationState(boolean read, ByteBuffer[] buffers, int offset, int length, SocketWrapperBase.
|
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected int | |
| protected int | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| public abstract SendfileState | Returns: The state of the sendfile process after the first write.Data representing the file to send sendfileData)Starts the sendfile process. |
| public void | |
| public abstract int | |
| public abstract int | |
| public final < The attachment type A> SocketWrapperBase. | Returns: the completion state (done, done inline, or still pending)timeout duration for the read timeout, TimeUnit units for the timeout duration unit, A an object to attach to the I/O operation that will be
used when calling the completion handler attachment, CompletionHandler<Long, ? super A> to call when the IO is complete handler, ByteBuffer... buffers dsts)Scatter read. |
| public final < The attachment type A> SocketWrapperBase. | Returns: the completion state (done, done inline, or still pending)is the blocking mode that will be used for this operation block,timeout duration for the read timeout, TimeUnit units for the timeout duration unit, A an object to attach to the I/O operation that will be
used when calling the completion handler attachment, SocketWrapperBase.for the IO operation completion check,to call when the IO is complete handler, ByteBuffer... buffers dsts)Scatter read. |
| public final < The attachment type A> SocketWrapperBase. | Returns: the completion state (done, done inline, or still pending)buffers dsts, int in the buffer array offset, int in the buffer array length, SocketWrapperBase.is the blocking mode that will be used for this operation block,timeout duration for the read timeout, TimeUnit units for the timeout duration unit, A an object to attach to the I/O operation that will be
used when calling the completion handler attachment, SocketWrapperBase.for the IO operation completion check,to call when the IO is complete handler)Scatter read. |
| public abstract void | |
| public abstract void | |
| protected void | |
| public abstract void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setReadTimeout(long
The timeout in milliseconds. A value of -1 indicates
an infinite timeout. readTimeout)Set the timeout for reading. |
| public void | setWriteTimeout(long
The timeout in milliseconds. A value of zero or less
indicates an infinite timeout. writeTimeout)Set the timeout for writing. |
| public Object | |
| public String | |
| protected static int | |
| protected static int | |
| public void | unRead(ByteBuffer
The input to return to the input buffer. returnedInput)Return input that has been read to the input buffer for re-reading by the correct component. |
| protected final < The attachment type A> SocketWrapperBase. | Returns: the completion state (done, done inline, or still pending)true if the operation is a read, false if it is a write read, ByteBuffer[] buffers buffers, int in the buffer array offset, int in the buffer array length, SocketWrapperBase.is the blocking mode that will be used for this operation block,timeout duration for the write timeout, TimeUnit units for the timeout duration unit, A an object to attach to the I/O operation that will be
used when calling the completion handler attachment, SocketWrapperBase.for the IO operation completion check,to call when the IO is complete handler)Vectored operation. |
| public final void | write(boolean
true if a blocking write should be used,
otherwise a non-blocking write will be usedThe byte array containing the data to be written buf, int The offset within the byte array of the data to be written off, int The length of the data to be written len)Writes the provided data to the socket write buffer. |
| public final void | write(boolean
true if a blocking write should be used,
otherwise a non-blocking write will be usedThe ByteBuffer containing the data to be written from)Writes the provided data to the socket write buffer. |
| public final < The attachment type A> SocketWrapperBase. | Returns: the completion state (done, done inline, or still pending)timeout duration for the write timeout, TimeUnit units for the timeout duration unit, A an object to attach to the I/O operation that will be
used when calling the completion handler attachment, CompletionHandler<Long, ? super A> to call when the IO is complete handler, ByteBuffer... buffers srcs)Gather write. |
| public final < The attachment type A> SocketWrapperBase. | Returns: the completion state (done, done inline, or still pending)is the blocking mode that will be used for this operation block,timeout duration for the write timeout, TimeUnit units for the timeout duration unit, A an object to attach to the I/O operation that will be
used when calling the completion handler attachment, SocketWrapperBase.for the IO operation completion check,to call when the IO is complete handler, ByteBuffer... buffers srcs)Gather write. |
| public final < The attachment type A> SocketWrapperBase. | Returns: the completion state (done, done inline, or still pending)buffers srcs, int in the buffer array offset, int in the buffer array length, SocketWrapperBase.is the blocking mode that will be used for this operation block,timeout duration for the write timeout, TimeUnit units for the timeout duration unit, A an object to attach to the I/O operation that will be
used when calling the completion handler attachment, SocketWrapperBase.for the IO operation completion check,to call when the IO is complete handler)Gather write. |
| protected void | writeBlocking(byte[]
The byte array containing the data to be written buf, int The offset within the byte array of the data to be written off, int The length of the data to be written len)Writes the provided data to the socket write buffer. |
| protected void | writeBlocking(ByteBuffer
The ByteBuffer containing the data to be written from)Writes the provided data to the socket write buffer. |
| protected void | writeNonBlocking(byte[]
The byte array containing the data to be written buf, int The offset within the byte array of the data to be written off, int The length of the data to be written len)Transfers the data to the socket write buffer (writing that data to the socket if the buffer fills up using a non-blocking write) until either all the data has been transferred and space remains in the socket write buffer or a non-blocking write leaves data in the socket write buffer. |
| protected void | writeNonBlocking(ByteBuffer
The ByteBuffer containing the data to be written from)Transfers the data to the socket write buffer (writing that data to the socket if the buffer fills up using a non-blocking write) until either all the data has been transferred and space remains in the socket write buffer or a non-blocking write leaves data in the socket write buffer. |
| protected void | writeNonBlockingInternal(ByteBuffer
The ByteBuffer containing the data to be written from)Separate method so it can be re-used by the socket write buffer to write data to the network |