Class GZIPContentDecoder
java.lang.Object
org.eclipse.jetty.http.GZIPContentDecoder
org.eclipse.jetty.client.GZIPContentDecoder
- All Implemented Interfaces:
ContentDecoder,org.eclipse.jetty.util.component.Destroyable
public class GZIPContentDecoder
extends org.eclipse.jetty.http.GZIPContentDecoder
implements ContentDecoder
ContentDecoder for the "gzip" encoding.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpecializedContentDecoder.Factoryfor the "gzip" encoding.Nested classes/interfaces inherited from interface org.eclipse.jetty.client.ContentDecoder
ContentDecoder.Factories -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGZIPContentDecoder(int bufferSize) GZIPContentDecoder(org.eclipse.jetty.io.ByteBufferPool byteBufferPool, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterDecoding(Response response) Processes the exchange after the response content has been decoded.voidbeforeDecoding(Response response) Processes the response just before the decoding of the response content.protected booleandecodedChunk(org.eclipse.jetty.io.RetainableByteBuffer chunk) Methods inherited from class org.eclipse.jetty.http.GZIPContentDecoder
acquire, decode, decodeChunks, destroy, isFinishedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.client.ContentDecoder
decode
-
Field Details
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE- See Also:
-
-
Constructor Details
-
GZIPContentDecoder
public GZIPContentDecoder() -
GZIPContentDecoder
public GZIPContentDecoder(int bufferSize) -
GZIPContentDecoder
public GZIPContentDecoder(org.eclipse.jetty.io.ByteBufferPool byteBufferPool, int bufferSize)
-
-
Method Details
-
beforeDecoding
Description copied from interface:ContentDecoderProcesses the response just before the decoding of the response content.
Typical processing may involve modifying the response headers, for example by temporarily removing the
Content-Lengthheader, or modifying theContent-Encodingheader.- Specified by:
beforeDecodingin interfaceContentDecoder
-
decodedChunk
protected boolean decodedChunk(org.eclipse.jetty.io.RetainableByteBuffer chunk) - Overrides:
decodedChunkin classorg.eclipse.jetty.http.GZIPContentDecoder
-
afterDecoding
Description copied from interface:ContentDecoderProcesses the exchange after the response content has been decoded.
Typical processing may involve modifying the response headers, for example updating the
Content-Lengthheader to the length of the decoded response content.- Specified by:
afterDecodingin interfaceContentDecoder
-