Package io.dropwizard.jersey.gzip
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext context)
-
Constructor Details
-
GZipDecoder
public GZipDecoder()
-
-
Method Details
-
aroundReadFrom
- Specified by:
aroundReadFromin interfacejakarta.ws.rs.ext.ReaderInterceptor- Throws:
IOException
-