org.apache.http.client.protocol
Class ResponseContentEncoding

java.lang.Object
  extended by org.apache.http.client.protocol.ResponseContentEncoding
All Implemented Interfaces:
HttpResponseInterceptor

@Contract(threading=IMMUTABLE_CONDITIONAL)
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

Field Summary
static String UNCOMPRESSED
           
 
Constructor Summary
ResponseContentEncoding()
          Handles gzip and deflate compressed entities by using the following decoders: gzip - see GZIPInputStream deflate - see DeflateInputStream
ResponseContentEncoding(boolean ignoreUnknown)
           
ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry)
           
ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry, boolean ignoreUnknown)
           
 
Method Summary
 void process(HttpResponse response, HttpContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNCOMPRESSED

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

ResponseContentEncoding

public ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry,
                               boolean ignoreUnknown)
Since:
4.5

ResponseContentEncoding

public ResponseContentEncoding(boolean ignoreUnknown)
Since:
4.5

ResponseContentEncoding

public ResponseContentEncoding(Lookup<InputStreamFactory> decoderRegistry)
Since:
4.4

ResponseContentEncoding

public ResponseContentEncoding()
Handles gzip and deflate compressed entities by using the following decoders:

Method Detail

process

public void process(HttpResponse response,
                    HttpContext context)
             throws HttpException,
                    IOException
Specified by:
process in interface HttpResponseInterceptor
Throws:
HttpException
IOException


Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.