@Contract(threading=IMMUTABLE_CONDITIONAL)
public class ResponseContentEncoding
extends java.lang.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 |
|---|---|
private org.apache.http.config.Lookup<InputStreamFactory> |
decoderRegistry |
private boolean |
ignoreUnknown |
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(org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry) |
ResponseContentEncoding(org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry,
boolean ignoreUnknown) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
public static final java.lang.String UNCOMPRESSED
private final org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry
private final boolean ignoreUnknown
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,
java.io.IOException
process in interface org.apache.http.HttpResponseInterceptororg.apache.http.HttpExceptionjava.io.IOException