| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ByteBuffer | |
| private static final ByteBuffer | |
| private static final int | |
| private final HttpServerExchange | |
| private final ConduitListener | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final ByteBuffer | |
| private static final Map | |
| private final boolean | |
| private static final Logger | |
| private final ByteBufferPool | |
| private int | state
Hides io. |
| Access | Constructor and Description |
|---|---|
| pack-priv | AjpServerResponseConduit(final StreamSinkConduit next, final ByteBufferPool pool, final HttpServerExchange exchange, ConduitListener<? super AjpServerResponseConduit> finishListener, boolean headRequest)
|
| Modifier and Type | Method and Description |
|---|---|
| private ByteBuffer[] | |
| pack-priv boolean | |
| protected void | |
| protected void | |
| public boolean | flush()
Overrides org. Implements org. Flush out any unwritten, buffered output. |
| public boolean | isWriteResumed()
Overrides org. Implements org. Determine whether write notifications are currently enabled. |
| public boolean | isWriteShutdown()
Overrides org. Implements org. Determine whether writes have been fully shut down on this conduit. |
| private void | |
| private void | |
| private static void | |
| private static void | |
| protected void | |
| private void | |
| public void | resumeWrites()
Overrides org. Implements org. Indicate that the conduit's |
| public void | setWriteReadyHandler(WriteReadyHandler
the filter to receive readiness notifications handler)Overrides org. Implements org. Set the handler which should receive readiness notifications. |
| public void | suspendWrites()
Overrides org. Implements org. Indicate that calling the conduit's |
| 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)Overrides io. 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)Overrides io. Implements org. Transfers bytes from the given channel source. |
| public void | wakeupWrites()
Overrides org. Implements org. Indicate that the conduit's |
| public int | write(final ByteBuffer
the buffer containing data to write src)Overrides io. Implements org. Writes a sequence of bytes to this conduit from the given buffer. |
| public long | |
| public long | write(final ByteBuffer[]
the buffers containing data to write srcs, final int the offset into the buffer array offset, final int the number of buffers to write length)Overrides io. Implements org. Writes a sequence of bytes to this conduit from the given buffers. |
| CLOSE_FRAME_NON_PERSISTENT | back to summary |
|---|---|
| private static final ByteBuffer CLOSE_FRAME_NON_PERSISTENT | |
| CLOSE_FRAME_PERSISTENT | back to summary |
|---|---|
| private static final ByteBuffer CLOSE_FRAME_PERSISTENT | |
| DEFAULT_MAX_DATA_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_MAX_DATA_SIZE | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| finishListener | back to summary |
|---|---|
| private final ConduitListener<? super AjpServerResponseConduit> finishListener | |
| FLAG_FLUSH_QUEUED | back to summary |
|---|---|
| private static final int FLAG_FLUSH_QUEUED | |
| FLAG_READS_DONE | back to summary |
|---|---|
| private static final int FLAG_READS_DONE | |
| FLAG_START | back to summary |
|---|---|
| private static final int FLAG_START | |
| FLAG_WRITE_READ_BODY_CHUNK_FROM_LISTENER | back to summary |
|---|---|
| private static final int FLAG_WRITE_READ_BODY_CHUNK_FROM_LISTENER | |
| FLAG_WRITE_RESUMED | back to summary |
|---|---|
| private static final int FLAG_WRITE_RESUMED | |
| FLAG_WRITE_SHUTDOWN | back to summary |
|---|---|
| private static final int FLAG_WRITE_SHUTDOWN | |
| FLUSH_PACKET | back to summary |
|---|---|
| private static final ByteBuffer FLUSH_PACKET | |
| HEADER_MAP | back to summary |
|---|---|
| private static final Map<HttpString, Integer> HEADER_MAP | |
| headRequest | back to summary |
|---|---|
| private final boolean headRequest | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| pool | back to summary |
|---|---|
| private final ByteBufferPool pool | |
| state | back to summary |
|---|---|
| private int state Hides io. State flags | |
| AjpServerResponseConduit | back to summary |
|---|---|
| pack-priv AjpServerResponseConduit(final StreamSinkConduit next, final ByteBufferPool pool, final HttpServerExchange exchange, ConduitListener<? super AjpServerResponseConduit> finishListener, boolean headRequest) | |
| createHeader | back to summary |
|---|---|
| private ByteBuffer[] createHeader(final ByteBuffer src) | |
| doGetRequestBodyChunk | back to summary |
|---|---|
| pack-priv boolean doGetRequestBodyChunk(ByteBuffer buffer, final AjpServerRequestConduit requestChannel) throws IOException | |
| doTerminateWrites | back to summary |
|---|---|
| protected void doTerminateWrites() throws IOException Overrides io.
| |
| finished | back to summary |
|---|---|
| protected void finished() Overrides io.
| |
| flush | back to summary |
|---|---|
| public boolean flush() throws IOException Overrides org. Implements org. Doc from org. Flush out any unwritten, buffered output.
| |
| isWriteResumed | back to summary |
|---|---|
| public boolean isWriteResumed() Overrides org. Implements org. Doc from org. Determine whether write notifications are currently enabled.
| |
| isWriteShutdown | back to summary |
|---|---|
| public boolean isWriteShutdown() Overrides org. Implements org. Doc from org. Determine whether writes have been fully shut down on this conduit.
| |
| processAJPHeader | back to summary |
|---|---|
| private void processAJPHeader() Handles generating the header if required, and adding it to the frame queue. No attempt is made to actually flush this, so a gathering write can be used to actually flush the data | |
| putHttpString | back to summary |
|---|---|
| private void putHttpString(final ByteBuffer buf, HttpString value) | |
| putInt | back to summary |
|---|---|
| private static void putInt(final ByteBuffer buf, int value) | |
| putString | back to summary |
|---|---|
| private static void putString(final ByteBuffer buf, String value) | |
| queueCloseFrames | back to summary |
|---|---|
| protected void queueCloseFrames() Overrides io.
| |
| queueRemainingBytes | back to summary |
|---|---|
| private void queueRemainingBytes(final ByteBuffer src, final ByteBuffer[] buffers) | |
| resumeWrites | back to summary |
|---|---|
| public void resumeWrites() Overrides org. Implements org. Doc from org. Indicate that the conduit's | |
| setWriteReadyHandler | back to summary |
|---|---|
| public void setWriteReadyHandler(WriteReadyHandler handler) Overrides org. 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.
| |
| suspendWrites | back to summary |
|---|---|
| public void suspendWrites() Overrides org. Implements org. Doc from org. Indicate that calling the conduit's | |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(final FileChannel src, final long position, final long count) throws IOException Overrides io. 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 Overrides io. Implements org. Doc from org. Transfers bytes from the given channel source. On entry,
| |
| wakeupWrites | back to summary |
|---|---|
| public void wakeupWrites() Overrides org. Implements org. Doc from org. Indicate that the conduit's | |
| write | back to summary |
|---|---|
| public int write(final ByteBuffer src) throws IOException Overrides io. 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) throws IOException | |
| write | back to summary |
|---|---|
| public long write(final ByteBuffer[] srcs, final int offset, final int length) throws IOException Overrides io. Implements org. Doc from org. Writes a sequence of bytes to this conduit from the given buffers.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final WriteReadyHandler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | forceTermination()
Implements org. Force the front-end channel to close, in response to XNIO worker shutdown. |
| public void | terminated()
Implements org. Indicate that a previous shutdown request has successfully resulted in termination. |
| public void | writeReady()
Implements org. Signify that writes are ready. |
| delegate | back to summary |
|---|---|
| private final WriteReadyHandler delegate | |
| AjpServerWriteReadyHandler | back to summary |
|---|---|
| private AjpServerWriteReadyHandler(WriteReadyHandler delegate) | |
| forceTermination | back to summary |
|---|---|
| public void forceTermination() Implements org. Doc from org. Force the front-end channel to close, in response to XNIO worker shutdown.
| |
| terminated | back to summary |
|---|---|
| public void terminated() Implements org. Doc from org. Indicate that a previous shutdown request has successfully resulted in termination.
| |
| writeReady | back to summary |
|---|---|
| public void writeReady() Implements org. Doc from org. Signify that writes are ready.
| |