@Provider @Priority(value=4000) public class ConfiguredGZipEncoder extends Object implements javax.ws.rs.ext.WriterInterceptor, javax.ws.rs.client.ClientRequestFilter
Content-Encoding header value equals
to gzip or x-gzip.
If so configured, it will encode the output even if the gzip and x-gzip
Content-Encoding header is missing, and insert a value
of gzip for that header.| Constructor and Description |
|---|
ConfiguredGZipEncoder(boolean forceEncoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) |
void |
filter(javax.ws.rs.client.ClientRequestContext context) |
public void filter(javax.ws.rs.client.ClientRequestContext context)
throws IOException
filter in interface javax.ws.rs.client.ClientRequestFilterIOExceptionpublic final void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
throws IOException,
javax.ws.rs.WebApplicationException
aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptorIOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2015. All rights reserved.