| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final InflaterPool | |
| private GzipRequest. | |
| private final HttpFields | |
| private GzipRequest. | |
| private static final HttpField |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | demand(Runnable
the demand callback to invoke when there is a content chunk available. demandCallback)Overrides org. Implements org. Demands to invoke the given demand callback parameter when a chunk of content is available. |
| pack-priv void | |
| public HttpFields | getHeaders()
Overrides org. Implements org.
|
| public Content. | read()
Overrides org. Implements org. Reads a chunk of content. |
| private HttpFields |
| __inflaterPool | back to summary |
|---|---|
| private static final InflaterPool __inflaterPool | |
| _decoder | back to summary |
|---|---|
| private GzipRequest. | |
| _fields | back to summary |
|---|---|
| private final HttpFields _fields | |
| _gzipTransformer | back to summary |
|---|---|
| private GzipRequest. | |
| X_CE_GZIP | back to summary |
|---|---|
| private static final HttpField X_CE_GZIP | |
| GzipRequest | back to summary |
|---|---|
| public GzipRequest(Request request, int inflateBufferSize) | |
| demand | back to summary |
|---|---|
| public void demand(Runnable demandCallback) Overrides org. Implements org. Doc from org. Demands to invoke the given demand callback parameter when a chunk of content is available. See how to use this method idiomatically. Implementations guarantee that calls to this method are safely reentrant so that
stack overflows are avoided in the case of mutual recursion between the execution of
the The demand callback may be invoked spuriously: a subsequent call to Calling this method establishes a pending demand, which is fulfilled when the demand callback is invoked. Calling this method when there is already a pending demand results in an
If the invocation of the demand callback throws an exception, then | |
| destroy | back to summary |
|---|---|
| pack-priv void destroy() | |
| getHeaders | back to summary |
|---|---|
| public HttpFields getHeaders() Overrides org. Implements org.
| |
| read | back to summary |
|---|---|
| public Content. Overrides org. Implements org. Doc from org. Reads a chunk of content. See how to use this method idiomatically. The returned chunk could be:
Once a read returns an Once a read returns a The content reader code must ultimately arrange for a call to
Additionally, prior to the ultimate call to Concurrent reads from different threads are not recommended, as they are inherently in a race condition. Reads performed outside the invocation context of a
In addition, the returned
| |
| updateRequestFields | back to summary |
|---|---|
| private HttpFields updateRequestFields(Request request, boolean inflatable) | |
| Modifier and Type | Field and Description |
|---|---|
| private RetainableByteBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public RetainableByteBuffer | |
| public void | decodeChunks(ByteBuffer
the buffer of compressed data to inflate compressed)Overrides org. Inflates compressed data. |
| protected boolean | decodedChunk(RetainableByteBuffer
the inflated chunk of data decoded)Overrides org. Called when a chunk of data is inflated. |
| _decoded | back to summary |
|---|---|
| private RetainableByteBuffer _decoded | |
| Decoder | back to summary |
|---|---|
| pack-priv Decoder(InflaterPool inflaterPool, ByteBufferPool bufferPool, int bufferSize) | |
| decode | back to summary |
|---|---|
| public RetainableByteBuffer decode(Content. | |
| decodeChunks | back to summary |
|---|---|
| public void decodeChunks(ByteBuffer compressed) Overrides org. Doc from org. Inflates compressed data. Inflation continues until the compressed block end is reached, there is no
more compressed data or a call to
| |
| decodedChunk | back to summary |
|---|---|
| protected boolean decodedChunk(RetainableByteBuffer decoded) Overrides org. Doc from org. Called when a chunk of data is inflated. The default implementation aggregates all the chunks
into a single buffer returned from Derived implementations may choose to consume inflated chunks
individually and return
| |
| Modifier and Type | Field and Description |
|---|---|
| private Content. | |
| private final GzipRequest. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Content. | transform(Content.
a chunk read from the wrapped inputChunkContent.Implements abstract org. Transforms the input chunk parameter into an output chunk. |
| _chunk | back to summary |
|---|---|
| private Content. | |
| _decoder | back to summary |
|---|---|
| private final GzipRequest. | |
| GzipTransformer | back to summary |
|---|---|
| pack-priv GzipTransformer(Content. | |
| transform | back to summary |
|---|---|
| protected Content. Implements abstract org. Doc from org. Transforms the input chunk parameter into an output chunk. When this method produces a non- The input chunk is released as soon as this method returns, so
implementations that must hold onto the input chunk must arrange to call
Implementations should return an Exceptions thrown by this method are equivalent to returning an error chunk. Implementations of this method may return:
| |