@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-Encoding s 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-Encoding
s by
using the appropriate decompressor to wrap the response Entity:
GzipDecompressingEntity
DeflateDecompressingEntity
process
in interface HttpResponseInterceptor
response
- the response which contains the entitycontext
- not currently usedHttpException
- if the Content-Encoding
is none of the aboveIOException
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.