org.apache.http.client.protocol
Class ResponseContentEncoding

java.lang.Object
  extended by 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

Field Summary
static java.lang.String UNCOMPRESSED
           
 
Constructor Summary
ResponseContentEncoding()
           
 
Method Summary
 void process(org.apache.http.HttpResponse response, org.apache.http.protocol.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNCOMPRESSED

public static final java.lang.String UNCOMPRESSED
See Also:
Constant Field Values
Constructor Detail

ResponseContentEncoding

public ResponseContentEncoding()
Method Detail

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-Encodings 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 entity
context - not currently used
Throws:
org.apache.http.HttpException - if the Content-Encoding is none of the above
java.io.IOException