| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final ChunkedStreamSourceConduit. | |
| private final PushBackStreamSourceConduit | |
| private final ChunkReader | |
| private final Closeable | |
| private boolean | |
| private final HttpServerExchange | |
| private final ConduitListener | |
| private boolean | |
| private long | |
| public static final AttachmentKey | TRAILERS
Deprecated
If the response has HTTP footers they are attached to the exchange under this key.
|
| Access | Constructor and Description |
|---|---|
| public | ChunkedStreamSourceConduit(final StreamSourceConduit next, final PushBackStreamSourceConduit channel, final ByteBufferPool pool, final ConduitListener<? super ChunkedStreamSourceConduit> finishListener, Attachable attachable, Closeable closeable)
|
| public | ChunkedStreamSourceConduit(final StreamSourceConduit next, final HttpServerExchange exchange, final ConduitListener<? super ChunkedStreamSourceConduit> finishListener)
|
| protected | ChunkedStreamSourceConduit(final StreamSourceConduit next, final ChunkedStreamSourceConduit.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public long | read(final ByteBuffer[]
the buffers to fill with data from the conduit dsts, final int the offset into the buffer array offset, final 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(final 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. |
| public void | terminateReads()
Overrides org. Implements org. Indicate that no more data will be read from this conduit. |
| 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)Overrides org. 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)Overrides org. Implements org. Transfers bytes into the given channel target. |
| private void |
| bufferWrapper | back to summary |
|---|---|
| private final ChunkedStreamSourceConduit. | |
| channel | back to summary |
|---|---|
| private final PushBackStreamSourceConduit channel | |
| chunkReader | back to summary |
|---|---|
| private final ChunkReader<T extends Conduit> chunkReader | |
| closeable | back to summary |
|---|---|
| private final Closeable closeable | |
| closed | back to summary |
|---|---|
| private boolean closed | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| finishListener | back to summary |
|---|---|
| private final ConduitListener<? super ChunkedStreamSourceConduit> finishListener | |
| finishListenerInvoked | back to summary |
|---|---|
| private boolean finishListenerInvoked | |
| remainingAllowed | back to summary |
|---|---|
| private long remainingAllowed | |
| TRAILERS | back to summary |
|---|---|
| public static final AttachmentKey<HeaderMap> TRAILERS
Deprecated
If the response has HTTP footers they are attached to the exchange under this key. They will only be available once the exchange has been fully read. | |
| ChunkedStreamSourceConduit | back to summary |
|---|---|
| public ChunkedStreamSourceConduit(final StreamSourceConduit next, final PushBackStreamSourceConduit channel, final ByteBufferPool pool, final ConduitListener<? super ChunkedStreamSourceConduit> finishListener, Attachable attachable, Closeable closeable) | |
| ChunkedStreamSourceConduit | back to summary |
|---|---|
| public ChunkedStreamSourceConduit(final StreamSourceConduit next, final HttpServerExchange exchange, final ConduitListener<? super ChunkedStreamSourceConduit> finishListener) | |
| ChunkedStreamSourceConduit | back to summary |
|---|---|
| protected ChunkedStreamSourceConduit(final StreamSourceConduit next, final ChunkedStreamSourceConduit. | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() | |
| read | back to summary |
|---|---|
| public long read(final ByteBuffer[] dsts, final int offset, final 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(final ByteBuffer dst) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffer.
| |
| 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(final long position, final long count, final 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(final long count, final ByteBuffer throughBuffer, final StreamSinkChannel target) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |
| updateRemainingAllowed | back to summary |
|---|---|
| private void updateRemainingAllowed(final int written) throws IOException | |
| Modifier and Type | Method and Description |
|---|---|
| public PooledByteBuffer | |
| public void |
| allocate | back to summary |
|---|---|
| public PooledByteBuffer allocate() | |
| pushBack | back to summary |
|---|---|
| public void pushBack(PooledByteBuffer pooled) | |