@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.
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
UNCOMPRESSED |
| 构造器和说明 |
|---|
ResponseContentEncoding() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 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