Class ResponseContentEncoding

  • All Implemented Interfaces:
    org.apache.http.HttpResponseInterceptor

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

      • decoderRegistry

        private final org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry
      • ignoreUnknown

        private final boolean ignoreUnknown
    • Constructor Detail

      • ResponseContentEncoding

        public ResponseContentEncoding​(org.apache.http.config.Lookup<InputStreamFactory> decoderRegistry,
                                       boolean ignoreUnknown)
        Since:
        4.5
      • ResponseContentEncoding

        public ResponseContentEncoding​(boolean ignoreUnknown)
        Since:
        4.5
      • ResponseContentEncoding

        public ResponseContentEncoding​(org.apache.http.config.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​(org.apache.http.HttpResponse response,
                            org.apache.http.protocol.HttpContext context)
                     throws org.apache.http.HttpException,
                            java.io.IOException
        Specified by:
        process in interface org.apache.http.HttpResponseInterceptor
        Throws:
        org.apache.http.HttpException
        java.io.IOException