org.apache.http.client.protocol
Class ResponseContentEncoding
java.lang.Object
org.apache.http.client.protocol.ResponseContentEncoding
- All Implemented Interfaces:
- org.apache.http.HttpResponseInterceptor
@Immutable
public class ResponseContentEncoding
- extends java.lang.Object
- implements org.apache.http.HttpResponseInterceptor
HttpResponseInterceptor
responsible for processing Content-Encoding
responses.
Instances of this class are stateless and immutable, therefore threadsafe.
- Since:
- 4.1
Method Summary |
void |
process(org.apache.http.HttpResponse response,
org.apache.http.protocol.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseContentEncoding
public ResponseContentEncoding()
process
public void process(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.HttpException,
java.io.IOException
- Handles the following
Content-Encoding
s by
using the appropriate decompressor to wrap the response Entity:
- Specified by:
process
in interface org.apache.http.HttpResponseInterceptor
- Parameters:
response
- the response which contains the entitycontext
- not currently used
- Throws:
org.apache.http.HttpException
- if the Content-Encoding
is none of the above
java.io.IOException
Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.