Class ResponseContentEncoding
java.lang.Object
org.apache.http.client.protocol.ResponseContentEncoding
- All Implemented Interfaces:
HttpResponseInterceptor
HttpResponseInterceptor responsible for processing Content-Encoding
responses.
Instances of this class are stateless and immutable, therefore threadsafe.
- Since:
- 4.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(HttpResponse response, HttpContext context) Handles the followingContent-Encodings by using the appropriate decompressor to wrap the response Entity: gzip - seeGzipDecompressingEntitydeflate - seeDeflateDecompressingEntityidentity - no action needed
-
Field Details
-
UNCOMPRESSED
- See Also:
-
-
Constructor Details
-
ResponseContentEncoding
public ResponseContentEncoding()
-
-
Method Details
-
process
Handles the followingContent-Encodings by using the appropriate decompressor to wrap the response Entity:- gzip - see
GzipDecompressingEntity - deflate - see
DeflateDecompressingEntity - identity - no action needed
- Specified by:
processin interfaceHttpResponseInterceptor- Parameters:
response- the response which contains the entitycontext- not currently used- Throws:
HttpException- if theContent-Encodingis none of the aboveIOException
- gzip - see
-