@Immutable public class ResponseContentEncoding extends java.lang.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 java.lang.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 java.lang.String UNCOMPRESSED
public void process(HttpResponse response, HttpContext context) throws HttpException, java.io.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 abovejava.io.IOException - in case of an I/O error