ContentDecoder for the "gzip" encoding.
| Modifier and Type | Class and Description |
|---|---|
| public static class | GZIPContentDecoder.
Specialized |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterDecoding(Response response)
Overrides default org. Processes the exchange after the response content has been decoded. |
| public void | beforeDecoding(Response response)
Overrides default org. Processes the response just before the decoding of the response content. |
| protected boolean | decodedChunk(RetainableByteBuffer
the inflated chunk of data chunk)Overrides org. Called when a chunk of data is inflated. |
| decodedLength | back to summary |
|---|---|
| private long decodedLength | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_BUFFER_SIZE | |
| GZIPContentDecoder | back to summary |
|---|---|
| public GZIPContentDecoder() | |
| GZIPContentDecoder | back to summary |
|---|---|
| public GZIPContentDecoder(int bufferSize) | |
| GZIPContentDecoder | back to summary |
|---|---|
| public GZIPContentDecoder(ByteBufferPool byteBufferPool, int bufferSize) | |
| afterDecoding | back to summary |
|---|---|
| public void afterDecoding(Response response) Overrides default org. Doc from org. Processes the exchange after the response content has been decoded. Typical processing may involve modifying the response headers, for example
updating the
| |
| beforeDecoding | back to summary |
|---|---|
| public void beforeDecoding(Response response) Overrides default org. Doc from org. Processes the response just before the decoding of the response content. Typical processing may involve modifying the response headers, for example
by temporarily removing the
| |
| decodedChunk | back to summary |
|---|---|
| protected boolean decodedChunk(RetainableByteBuffer chunk) 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
| |
ContentDecoder.Factory for the "gzip" encoding.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final ByteBufferPool |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ContentDecoder | newContentDecoder()
Implements abstract org. Factory method for |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| byteBufferPool | back to summary |
|---|---|
| private final ByteBufferPool byteBufferPool | |
| Factory | back to summary |
|---|---|
| public Factory() | |
| Factory | back to summary |
|---|---|
| public Factory(int bufferSize) | |
| Factory | back to summary |
|---|---|
| public Factory(ByteBufferPool byteBufferPool) | |
| Factory | back to summary |
|---|---|
| public Factory(ByteBufferPool byteBufferPool, int bufferSize) | |
| newContentDecoder | back to summary |
|---|---|
| public ContentDecoder newContentDecoder() Implements abstract org. Doc from org. Factory method for
| |