| Modifier and Type | Field and Description |
|---|---|
| private final AjpServerResponseConduit | |
| private final HttpServerExchange | |
| private final ConduitListener | |
| private static final int | |
| private final ByteBuffer | headerBuffer
byte buffer that is used to hold header data |
| private static final ByteBuffer | |
| private long | remaining
/** The total amount of remaining data. |
| private long | state
State flags, with the chunk remaining stored in the low bytes |
| private static final long | STATE_FINISHED
read is done |
| private static final long | STATE_MASK
The remaining bits are used to store the remaining chunk size. |
| private static final long | STATE_READING
There is a packet coming from apache. |
| private static final long | STATE_SEND_REQUIRED
There is no packet coming, as we need to set a GET_BODY_CHUNK message |
| private long | totalRead
The total amount of data that has been read |
| Access | Constructor and Description |
|---|---|
| public | AjpServerRequestConduit(final StreamSourceConduit delegate, HttpServerExchange exchange, AjpServerResponseConduit ajpResponseConduit, Long size, ConduitListener<? super AjpServerRequestConduit> finishListener)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable()
Overrides org. Implements org. Block until this channel becomes readable again. |
| public void | awaitReadable(long
the time to wait time, TimeUnit the time unit timeUnit)Overrides org. Implements org. Block until this conduit becomes readable again, or until the timeout expires. |
| private int | |
| public long | read(ByteBuffer[]
the buffers to fill with data from the conduit dsts, int the offset into the buffer array offset, int the number of buffers to fill length)Overrides org. Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| public int | read(ByteBuffer
the buffer to fill with data from the conduit dst)Overrides org. Implements org. Read a sequence of bytes from this conduit to the given buffer. |
| pack-priv void | setReadBodyChunkError(IOException e)
Method that is called when an error occurs writing out read body chunk frames |
| public void | terminateReads()
Overrides org. Implements org. Indicate that no more data will be read from this conduit. |
| 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)Overrides org. 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)Overrides org. Implements org. Transfers bytes into the given channel target. |
| ajpResponseConduit | back to summary |
|---|---|
| private final AjpServerResponseConduit ajpResponseConduit | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| finishListener | back to summary |
|---|---|
| private final ConduitListener<? super AjpServerRequestConduit> finishListener | |
| HEADER_LENGTH | back to summary |
|---|---|
| private static final int HEADER_LENGTH | |
| headerBuffer | back to summary |
|---|---|
| private final ByteBuffer headerBuffer byte buffer that is used to hold header data | |
| READ_BODY_CHUNK | back to summary |
|---|---|
| private static final ByteBuffer READ_BODY_CHUNK | |
| remaining | back to summary |
|---|---|
| private long remaining /** The total amount of remaining data. If this is unknown it is -1. | |
| state | back to summary |
|---|---|
| private long state State flags, with the chunk remaining stored in the low bytes | |
| STATE_FINISHED | back to summary |
|---|---|
| private static final long STATE_FINISHED read is done | |
| STATE_MASK | back to summary |
|---|---|
| private static final long STATE_MASK The remaining bits are used to store the remaining chunk size. | |
| STATE_READING | back to summary |
|---|---|
| private static final long STATE_READING There is a packet coming from apache. | |
| STATE_SEND_REQUIRED | back to summary |
|---|---|
| private static final long STATE_SEND_REQUIRED There is no packet coming, as we need to set a GET_BODY_CHUNK message | |
| totalRead | back to summary |
|---|---|
| private long totalRead The total amount of data that has been read | |
| AjpServerRequestConduit | back to summary |
|---|---|
| public AjpServerRequestConduit(final StreamSourceConduit delegate, HttpServerExchange exchange, AjpServerResponseConduit ajpResponseConduit, Long size, ConduitListener<? super AjpServerRequestConduit> finishListener) | |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException Overrides org. 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(long time, TimeUnit timeUnit) throws IOException Overrides org. 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.
| |
| doRead | back to summary |
|---|---|
| private int doRead(final ByteBuffer dst, long state) throws IOException | |
| read | back to summary |
|---|---|
| public long read(ByteBuffer[] dsts, int offset, int length) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| read | back to summary |
|---|---|
| public int read(ByteBuffer dst) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffer.
| |
| setReadBodyChunkError | back to summary |
|---|---|
| pack-priv void setReadBodyChunkError(IOException e) Method that is called when an error occurs writing out read body chunk frames | |
| terminateReads | back to summary |
|---|---|
| public void terminateReads() throws IOException Overrides org. 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.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(long position, long count, FileChannel target) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes into the given file from this channel.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(long count, ByteBuffer throughBuffer, StreamSinkChannel target) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |