Class ContentEncoding.ResponseInterceptor

java.lang.Object
groovyx.net.http.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.
  • Constructor Details

    • ResponseInterceptor

      protected ResponseInterceptor()
  • Method Details

    • 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)