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.- Author:
- Tom Nichols
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResponseInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
hasEncoding(org.apache.http.HttpResponse response, String encoding)
void
process(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
-
-
-
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 interfaceorg.apache.http.HttpResponseInterceptor
- Throws:
org.apache.http.HttpException
IOException
-
hasEncoding
protected boolean hasEncoding(org.apache.http.HttpResponse response, String encoding)
-
-