@Provider @Priority(value=4000) public class GZipDecoder extends Object implements javax.ws.rs.ext.ReaderInterceptor
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 and Description |
---|
GZipDecoder() |
Modifier and Type | Method and Description |
---|---|
Object |
aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context) |
public Object aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context) throws IOException
aroundReadFrom
in interface javax.ws.rs.ext.ReaderInterceptor
IOException
Copyright © 2011. All rights reserved.