@Immutable public class ResponseContentEncoding extends java.lang.Object implements HttpResponseInterceptor
HttpResponseInterceptor
responsible for processing Content-Encoding
responses.
Instances of this class are stateless and immutable, therefore threadsafe.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNCOMPRESSED |
Constructor and Description |
---|
ResponseContentEncoding()
Handles
gzip and deflate compressed entities by using the following
decoders:
gzip - see GZIPInputStream
deflate - see DeflateInputStream
|
ResponseContentEncoding(boolean ignoreUnknown) |
ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry) |
ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry,
boolean ignoreUnknown) |
Modifier and Type | Method and Description |
---|---|
void |
process(HttpResponse response,
HttpContext context)
Processes a response.
|
public static final java.lang.String UNCOMPRESSED
public ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry, boolean ignoreUnknown)
public ResponseContentEncoding(boolean ignoreUnknown)
public ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry)
public ResponseContentEncoding()
gzip
and deflate
compressed entities by using the following
decoders:
GZIPInputStream
DeflateInputStream
public void process(HttpResponse response, HttpContext context) throws HttpException, java.io.IOException
HttpResponseInterceptor
process
in interface HttpResponseInterceptor
response
- the response to postprocesscontext
- the context for the requestHttpException
- in case of an HTTP protocol violationjava.io.IOException
- in case of an I/O error