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 TypeMethodDescriptionvoiddecodeChunks(ByteBuffer compressed) Inflates compressed data.protected booleandecodedChunk(ByteBuffer chunk) Called when a chunk of data is inflated.Methods inherited from class GZIPContentDecoder
acquire, decode, destroy, isFinished, release
-
Constructor Details
-
Decoder
-
-
Method Details
-
decodedChunk
Description copied from class:GZIPContentDecoderCalled 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
truefrom this method to prevent further inflation until a subsequent call toGZIPContentDecoder.decode(ByteBuffer)orGZIPContentDecoder.decodeChunks(ByteBuffer)is made.- Overrides:
decodedChunkin 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:GZIPContentDecoderInflates 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:
decodeChunksin classGZIPContentDecoder- Parameters:
compressed- the buffer of compressed data to inflate
-