Package io.dropwizard.jersey.gzip
Class ConfiguredGZipEncoder
- java.lang.Object
-
- io.dropwizard.jersey.gzip.ConfiguredGZipEncoder
-
- All Implemented Interfaces:
javax.ws.rs.client.ClientRequestFilter,javax.ws.rs.ext.WriterInterceptor
@Provider @Priority(4000) public class ConfiguredGZipEncoder extends Object implements javax.ws.rs.ext.WriterInterceptor, javax.ws.rs.client.ClientRequestFilter
GZIP encoding support. Writer interceptor that encodes the output ifContent-Encoding headervalue equals togziporx-gzip. If so configured, it will encode the output even if thegzipandx-gzipContent-Encoding headeris missing, and insert a value ofgzipfor that header.
-
-
Constructor Summary
Constructors Constructor Description ConfiguredGZipEncoder(boolean forceEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)voidfilter(javax.ws.rs.client.ClientRequestContext context)
-
-
-
Method Detail
-
filter
public void filter(javax.ws.rs.client.ClientRequestContext context) throws IOException- Specified by:
filterin interfacejavax.ws.rs.client.ClientRequestFilter- Throws:
IOException
-
aroundWriteTo
public final void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws IOException- Specified by:
aroundWriteToin interfacejavax.ws.rs.ext.WriterInterceptor- Throws:
IOException
-
-