| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv class | |
| pack-priv static enum | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| pack-priv final long | |
| pack-priv static final int | |
| private final String | |
| pack-priv final HttpHeaders | |
| pack-priv static final int | |
| pack-priv static final int | |
| private final Runnable | |
| pack-priv final HttpResponse. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ResponseContent(HttpConnection connection, long contentLength, HttpHeaders h, HttpResponse.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv ResponseContent. |
| chunkedContent | back to summary |
|---|---|
| private boolean chunkedContent | |
| chunkedContentInitialized | back to summary |
|---|---|
| private boolean chunkedContentInitialized | |
| contentLength | back to summary |
|---|---|
| pack-priv final long contentLength | |
| CR | back to summary |
|---|---|
| pack-priv static final int CR | |
| dbgTag | back to summary |
|---|---|
| private final String dbgTag | |
| headers | back to summary |
|---|---|
| pack-priv final HttpHeaders headers | |
| LF | back to summary |
|---|---|
| pack-priv static final int LF | |
| MAX_CHUNK_HEADER_SIZE | back to summary |
|---|---|
| pack-priv static final int MAX_CHUNK_HEADER_SIZE | |
| onFinished | back to summary |
|---|---|
| private final Runnable onFinished | |
| pusher | back to summary |
|---|---|
| pack-priv final HttpResponse. | |
| ResponseContent | back to summary |
|---|---|
| pack-priv ResponseContent(HttpConnection connection, long contentLength, HttpHeaders h, HttpResponse. | |
| contentChunked | back to summary |
|---|---|
| pack-priv boolean contentChunked() throws IOException | |
| getBodyParser | back to summary |
|---|---|
| pack-priv ResponseContent. | |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public void | |
| public void |
| currentStateMessage | back to summary |
|---|---|
| public String currentStateMessage() | |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) | |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(AbstractSubscription sub) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile int | |
| pack-priv volatile int | |
| pack-priv volatile int | |
| pack-priv volatile int | |
| pack-priv volatile Throwable | |
| pack-priv volatile boolean | |
| pack-priv final String | |
| pack-priv final Logger | |
| pack-priv volatile int | |
| pack-priv final Consumer | |
| pack-priv volatile int | |
| pack-priv final ByteBuffer | |
| pack-priv volatile ResponseContent. | |
| pack-priv volatile AbstractSubscription |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ByteBuffer b)
Implements java. Performs this operation on the given argument. |
| public String | |
| pack-priv String | |
| private void | |
| public void | |
| public void | |
| private int | |
| private int | |
| private boolean | |
| private int | |
| pack-priv ByteBuffer | tryReadOneHunk(ByteBuffer chunk)
Returns a ByteBuffer containing chunk of data or a "hunk" of data (a chunk of a chunk if the chunk size is larger than our ByteBuffers). |
| bytesremaining | back to summary |
|---|---|
| pack-priv volatile int bytesremaining | |
| bytesToConsume | back to summary |
|---|---|
| pack-priv volatile int bytesToConsume | |
| chunkext | back to summary |
|---|---|
| pack-priv volatile int chunkext | |
| chunklen | back to summary |
|---|---|
| pack-priv volatile int chunklen | |
| closedExceptionally | back to summary |
|---|---|
| pack-priv volatile Throwable closedExceptionally | |
| cr | back to summary |
|---|---|
| pack-priv volatile boolean cr | |
| dbgTag | back to summary |
|---|---|
| pack-priv final String dbgTag | |
| debug | back to summary |
|---|---|
| pack-priv final Logger debug | |
| digits | back to summary |
|---|---|
| pack-priv volatile int digits | |
| onComplete | back to summary |
|---|---|
| pack-priv final Consumer<Throwable> onComplete | |
| partialChunklen | back to summary |
|---|---|
| pack-priv volatile int partialChunklen | |
| READMORE | back to summary |
|---|---|
| pack-priv final ByteBuffer READMORE | |
| state | back to summary |
|---|---|
| pack-priv volatile ResponseContent. | |
| sub | back to summary |
|---|---|
| pack-priv volatile AbstractSubscription sub | |
| ChunkedBodyParser | back to summary |
|---|---|
| pack-priv ChunkedBodyParser(Consumer<Throwable> onComplete) | |
| accept | back to summary |
|---|---|
| public void accept(ByteBuffer b) Implements java. Doc from java. Performs this operation on the given argument.
| |
| currentStateMessage | back to summary |
|---|---|
| public String currentStateMessage() Implements jdk.
| |
| dbgString | back to summary |
|---|---|
| pack-priv String dbgString() | |
| debugBuffer | back to summary |
|---|---|
| private void debugBuffer(ByteBuffer b) | |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements jdk.
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(AbstractSubscription sub) Implements jdk.
| |
| toDigit | back to summary |
|---|---|
| private int toDigit(int b) throws IOException | |
| tryConsumeBytes | back to summary |
|---|---|
| private int tryConsumeBytes(ByteBuffer chunkbuf) throws IOException | |
| tryPushOneHunk | back to summary |
|---|---|
| private boolean tryPushOneHunk(ByteBuffer b, List<ByteBuffer> out) throws IOException | |
| tryReadChunkLen | back to summary |
|---|---|
| private int tryReadChunkLen(ByteBuffer chunkbuf) throws IOException | |
| tryReadOneHunk | back to summary |
|---|---|
| pack-priv ByteBuffer tryReadOneHunk(ByteBuffer chunk) throws IOException Returns a ByteBuffer containing chunk of data or a "hunk" of data (a chunk of a chunk if the chunk size is larger than our ByteBuffers). If the given chunk does not have enough data this method return an empty ByteBuffer (READMORE). If we encounter the final chunk (an empty chunk) this method returns null. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ResponseContent. | |
| public static final ResponseContent. | |
| public static final ResponseContent. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ResponseContent. | |
| public static ResponseContent. |
| DONE | back to summary |
|---|---|
| public static final ResponseContent. | |
| READING_DATA | back to summary |
|---|---|
| public static final ResponseContent. | |
| READING_LENGTH | back to summary |
|---|---|
| public static final ResponseContent. | |
| ChunkState | back to summary |
|---|---|
| private ChunkState() | |
| valueOf | back to summary |
|---|---|
| public static ResponseContent. | |
| values | back to summary |
|---|---|
| public static ResponseContent. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile Throwable | |
| pack-priv final long | |
| pack-priv final String | |
| pack-priv final Logger | |
| pack-priv final Consumer | |
| pack-priv volatile long | |
| pack-priv volatile AbstractSubscription |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ByteBuffer b)
Implements java. Performs this operation on the given argument. |
| public String | |
| pack-priv String | |
| public void | |
| public void |
| closedExceptionally | back to summary |
|---|---|
| pack-priv volatile Throwable closedExceptionally | |
| contentLength | back to summary |
|---|---|
| pack-priv final long contentLength | |
| dbgTag | back to summary |
|---|---|
| pack-priv final String dbgTag | |
| debug | back to summary |
|---|---|
| pack-priv final Logger debug | |
| onComplete | back to summary |
|---|---|
| pack-priv final Consumer<Throwable> onComplete | |
| remaining | back to summary |
|---|---|
| pack-priv volatile long remaining | |
| sub | back to summary |
|---|---|
| pack-priv volatile AbstractSubscription sub | |
| FixedLengthBodyParser | back to summary |
|---|---|
| pack-priv FixedLengthBodyParser(long contentLength, Consumer<Throwable> onComplete) | |
| accept | back to summary |
|---|---|
| public void accept(ByteBuffer b) Implements java. Doc from java. Performs this operation on the given argument.
| |
| currentStateMessage | back to summary |
|---|---|
| public String currentStateMessage() Implements jdk.
| |
| dbgString | back to summary |
|---|---|
| pack-priv String dbgString() | |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements jdk.
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(AbstractSubscription sub) Implements jdk.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile int | |
| pack-priv volatile Throwable | |
| pack-priv final String | |
| pack-priv final Logger | |
| pack-priv final Consumer | |
| pack-priv volatile AbstractSubscription |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ByteBuffer b)
Implements java. Performs this operation on the given argument. |
| public void | complete()
Must be called externally when connection has closed and therefore no more bytes can be read |
| public String | |
| pack-priv String | |
| public void | |
| public void |
| breceived | back to summary |
|---|---|
| pack-priv volatile int breceived | |
| closedExceptionally | back to summary |
|---|---|
| pack-priv volatile Throwable closedExceptionally | |
| dbgTag | back to summary |
|---|---|
| pack-priv final String dbgTag | |
| debug | back to summary |
|---|---|
| pack-priv final Logger debug | |
| onComplete | back to summary |
|---|---|
| pack-priv final Consumer<Throwable> onComplete | |
| sub | back to summary |
|---|---|
| pack-priv volatile AbstractSubscription sub | |
| UnknownLengthBodyParser | back to summary |
|---|---|
| pack-priv UnknownLengthBodyParser(Consumer<Throwable> onComplete) | |
| accept | back to summary |
|---|---|
| public void accept(ByteBuffer b) Implements java. Doc from java. Performs this operation on the given argument.
| |
| complete | back to summary |
|---|---|
| public void complete() Must be called externally when connection has closed and therefore no more bytes can be read | |
| currentStateMessage | back to summary |
|---|---|
| public String currentStateMessage() Implements jdk.
| |
| dbgString | back to summary |
|---|---|
| pack-priv String dbgString() | |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements jdk.
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(AbstractSubscription sub) Implements jdk.
| |