org.apache.http.client.protocol
@Immutable public class ResponseContentEncoding extends 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 String |
UNCOMPRESSED |
| Constructor and Description |
|---|
ResponseContentEncoding()
Handles
gzip and deflate compressed entities by using the following
decoders:
gzip - see GZIPInputStream
deflate - see DeflateInputStream
|
ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry) |
public static final String UNCOMPRESSED
public ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry)
public ResponseContentEncoding()
gzip and deflate compressed entities by using the following
decoders:
GZIPInputStreamDeflateInputStreampublic void process(HttpResponse response, HttpContext context) throws HttpException, IOException
process in interface HttpResponseInterceptorHttpExceptionIOExceptionCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.