org.apache.http.client.protocol
Class ResponseContentEncoding
java.lang.Object
org.apache.http.client.protocol.ResponseContentEncoding
- All Implemented Interfaces:
- HttpResponseInterceptor
@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.
- Since:
- 4.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNCOMPRESSED
public static final String UNCOMPRESSED
- See Also:
- Constant Field Values
ResponseContentEncoding
public ResponseContentEncoding()
process
public void process(HttpResponse response,
HttpContext context)
throws HttpException,
IOException
- Handles the following
Content-Encodings by
using the appropriate decompressor to wrap the response Entity:
- Specified by:
process in interface HttpResponseInterceptor
- Parameters:
response - the response which contains the entitycontext - not currently used
- Throws:
HttpException - if the Content-Encoding is none of the above
IOException
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.