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
Method Summary |
protected boolean |
hasEncoding(org.apache.http.HttpResponse response,
String encoding)
|
void |
process(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentEncoding.ResponseInterceptor
protected ContentEncoding.ResponseInterceptor()
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)
Copyright © 2008-2012. All Rights Reserved.