Package groovyx.net.http
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
hasEncoding
(org.apache.http.HttpResponse response, String encoding) void
process
(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
-
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 interfaceorg.apache.http.HttpResponseInterceptor
- Throws:
org.apache.http.HttpException
IOException
-
hasEncoding
-