@Contract(threading=IMMUTABLE_CONDITIONAL) public class ResponseContentEncoding extends Object implements org.apache.http.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 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(org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry) |
ResponseContentEncoding(org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry,
boolean ignoreUnknown) |
public static final String UNCOMPRESSED
public ResponseContentEncoding(org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry, boolean ignoreUnknown)
public ResponseContentEncoding(boolean ignoreUnknown)
public ResponseContentEncoding(org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry)
public ResponseContentEncoding()
gzip and deflate compressed entities by using the following
decoders:
GZIPInputStreamDeflateInputStreampublic void process(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.HttpException,
IOException
process in interface org.apache.http.HttpResponseInterceptororg.apache.http.HttpExceptionIOExceptionCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.