Package io.dropwizard.jersey.gzip
Class GZipDecoder
- java.lang.Object
-
- io.dropwizard.jersey.gzip.GZipDecoder
-
- All Implemented Interfaces:
javax.ws.rs.ext.ReaderInterceptor
@Provider @Priority(4000) public class GZipDecoder extends Object implements javax.ws.rs.ext.ReaderInterceptor
GZIP encoding support. Reader interceptor that decodes the input ifContent-Encoding header
value equals togzip
orx-gzip
. We're using this instead of Jersey's built inGZipEncoder
because that unconditionally encodes on writing, whereas dropwizard-client needs the encoding to be configurable. SeeConfiguredGZipEncoder
-
-
Constructor Summary
Constructors Constructor Description GZipDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context)
-
-
-
Method Detail
-
aroundReadFrom
public Object aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context) throws IOException
- Specified by:
aroundReadFrom
in interfacejavax.ws.rs.ext.ReaderInterceptor
- Throws:
IOException
-
-