Class GZipDecoder

java.lang.Object
io.dropwizard.jersey.gzip.GZipDecoder
All Implemented Interfaces:
jakarta.ws.rs.ext.ReaderInterceptor

@Provider @Priority(4000) public class GZipDecoder extends Object implements jakarta.ws.rs.ext.ReaderInterceptor
GZIP encoding support. Reader interceptor that decodes the input if Content-Encoding header value equals to gzip or x-gzip. We're using this instead of Jersey's built in GZipEncoder because that unconditionally encodes on writing, whereas dropwizard-client needs the encoding to be configurable. See ConfiguredGZipEncoder
  • Constructor Details

    • GZipDecoder

      public GZipDecoder()
  • Method Details

    • aroundReadFrom

      public Object aroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext context) throws IOException
      Specified by:
      aroundReadFrom in interface jakarta.ws.rs.ext.ReaderInterceptor
      Throws:
      IOException