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.
  • Field Details

  • Constructor Details

    • GZIPContentDecoder

      public GZIPContentDecoder()
    • GZIPContentDecoder

      public GZIPContentDecoder(int bufferSize)
    • GZIPContentDecoder

      public GZIPContentDecoder(org.eclipse.jetty.io.ByteBufferPool byteBufferPool, int bufferSize)
  • Method Details

    • beforeDecoding

      public void beforeDecoding(Response response)
      Description copied from interface: ContentDecoder

      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 Content-Length header, or modifying the Content-Encoding header.

      Specified by:
      beforeDecoding in interface ContentDecoder
    • decodedChunk

      protected boolean decodedChunk(org.eclipse.jetty.io.RetainableByteBuffer chunk)
      Overrides:
      decodedChunk in class org.eclipse.jetty.http.GZIPContentDecoder
    • afterDecoding

      public void afterDecoding(Response response)
      Description copied from interface: ContentDecoder

      Processes the exchange after the response content has been decoded.

      Typical processing may involve modifying the response headers, for example updating the Content-Length header to the length of the decoded response content.

      Specified by:
      afterDecoding in interface ContentDecoder