Package io.dropwizard.jersey.gzip
Class ConfiguredGZipEncoder
- java.lang.Object
-
- io.dropwizard.jersey.gzip.ConfiguredGZipEncoder
-
- All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestFilter
,jakarta.ws.rs.ext.WriterInterceptor
@Provider @Priority(4000) public class ConfiguredGZipEncoder extends Object implements jakarta.ws.rs.ext.WriterInterceptor, jakarta.ws.rs.client.ClientRequestFilter
GZIP encoding support. Writer interceptor that encodes the output ifContent-Encoding header
value equals togzip
orx-gzip
. If so configured, it will encode the output even if thegzip
andx-gzip
Content-Encoding header
is missing, and insert a value ofgzip
for that header.
-
-
Constructor Summary
Constructors Constructor Description ConfiguredGZipEncoder(boolean forceEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context)
void
filter(jakarta.ws.rs.client.ClientRequestContext context)
-
-
-
Method Detail
-
filter
public void filter(jakarta.ws.rs.client.ClientRequestContext context) throws IOException
- Specified by:
filter
in interfacejakarta.ws.rs.client.ClientRequestFilter
- Throws:
IOException
-
aroundWriteTo
public final void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException
- Specified by:
aroundWriteTo
in interfacejakarta.ws.rs.ext.WriterInterceptor
- Throws:
IOException
-
-