Class GzipHttpInputInterceptor.Decoder
java.lang.Object
org.eclipse.jetty.http.GZIPContentDecoder
org.eclipse.jetty.server.handler.gzip.GzipHttpInputInterceptor.Decoder
- All Implemented Interfaces:
Destroyable
- Enclosing class:
- GzipHttpInputInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decodeChunks
(ByteBuffer compressed) Inflates compressed data.protected boolean
decodedChunk
(ByteBuffer chunk) Called when a chunk of data is inflated.Methods inherited from class org.eclipse.jetty.http.GZIPContentDecoder
acquire, decode, destroy, isFinished, release
-
Constructor Details
-
Decoder
-
-
Method Details
-
decodedChunk
Description copied from class:GZIPContentDecoder
Called when a chunk of data is inflated.
The default implementation aggregates all the chunks into a single buffer returned from
GZIPContentDecoder.decode(ByteBuffer)
.Derived implementations may choose to consume inflated chunks individually and return
true
from this method to prevent further inflation until a subsequent call toGZIPContentDecoder.decode(ByteBuffer)
orGZIPContentDecoder.decodeChunks(ByteBuffer)
is made.- Overrides:
decodedChunk
in classGZIPContentDecoder
- Parameters:
chunk
- the inflated chunk of data- Returns:
- false if inflating should continue, or true if the call
to
GZIPContentDecoder.decodeChunks(ByteBuffer)
orGZIPContentDecoder.decode(ByteBuffer)
should return, allowing to consume the inflated chunk and apply backpressure
-
decodeChunks
Description copied from class:GZIPContentDecoder
Inflates compressed data.
Inflation continues until the compressed block end is reached, there is no more compressed data or a call to
GZIPContentDecoder.decodedChunk(ByteBuffer)
returns true.- Overrides:
decodeChunks
in classGZIPContentDecoder
- Parameters:
compressed
- the buffer of compressed data to inflate
-