@Contract(threading=IMMUTABLE_CONDITIONAL) public class ResponseContentEncoding extends Object implements HttpResponseInterceptor
HttpResponseInterceptor 。
这个类的实例是无状态的和不可变的,因此线程安全。
| Modifier and Type | Field and Description |
|---|---|
static String |
UNCOMPRESSED |
| Constructor and Description |
|---|
ResponseContentEncoding()
处理 gzip和deflate压缩实体通过使用以下解码器:gzip - 请参阅GZIPInputStream放气 - 见DeflateInputStream
|
ResponseContentEncoding(boolean ignoreUnknown) |
ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry) |
ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry, boolean ignoreUnknown) |
public static final String UNCOMPRESSED
public ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry, boolean ignoreUnknown)
public ResponseContentEncoding(boolean ignoreUnknown)
public ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry)
public ResponseContentEncoding()
gzip和deflate使用以下解码器的压缩实体:
GZIPInputStream DeflateInputStream public void process(HttpResponse response, HttpContext context) throws HttpException, IOException
process在接口
HttpResponseInterceptor
HttpException
IOException
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.