@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() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(HttpResponse response,
HttpContext context)
Handles the following
Content-Encodings by
using the appropriate decompressor to wrap the response Entity:
gzip - see GzipDecompressingEntity
deflate - see DeflateDecompressingEntity
identity - no action needed
|
public static final String UNCOMPRESSED
public void process(HttpResponse response, HttpContext context) throws HttpException, IOException
Content-Encodings by
using the appropriate decompressor to wrap the response Entity:
GzipDecompressingEntityDeflateDecompressingEntityprocess in interface HttpResponseInterceptorresponse - the response which contains the entitycontext - not currently usedHttpException - if the Content-Encoding is none of the aboveIOExceptionCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.