Class ContentEncoding.ResponseInterceptor

  • All Implemented Interfaces:
    org.apache.http.HttpResponseInterceptor
    Enclosing class:
    ContentEncoding

    protected class ContentEncoding.ResponseInterceptor
    extends Object
    implements org.apache.http.HttpResponseInterceptor
    Response interceptor that filters the response stream to decode the compressed content before it is passed on to the parser.
    Author:
    Tom Nichols
    • Constructor Detail

      • ResponseInterceptor

        protected ResponseInterceptor()
    • Method Detail

      • process

        public void process​(org.apache.http.HttpResponse response,
                            org.apache.http.protocol.HttpContext context)
                     throws org.apache.http.HttpException,
                            IOException
        Specified by:
        process in interface org.apache.http.HttpResponseInterceptor
        Throws:
        org.apache.http.HttpException
        IOException
      • hasEncoding

        protected boolean hasEncoding​(org.apache.http.HttpResponse response,
                                      String encoding)