Package groovyx.net.http
Class ContentEncoding
- java.lang.Object
-
- groovyx.net.http.ContentEncoding
-
- Direct Known Subclasses:
DeflateEncoding
,GZIPEncoding
public abstract class ContentEncoding extends Object
Base class for handing content-encoding.- Author:
- Tom Nichols
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ContentEncoding.RequestInterceptor
Request interceptor that adds the correctAccept
header to the outgoing request.protected class
ContentEncoding.ResponseInterceptor
Response interceptor that filters the response stream to decode the compressed content before it is passed on to the parser.static class
ContentEncoding.Type
Enumeration of common content-encodings.
-
Field Summary
Fields Modifier and Type Field Description static String
ACCEPT_ENC_HDR
static String
CONTENT_ENC_HDR
-
Constructor Summary
Constructors Constructor Description ContentEncoding()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getContentEncoding()
org.apache.http.HttpRequestInterceptor
getRequestInterceptor()
org.apache.http.HttpResponseInterceptor
getResponseInterceptor()
protected abstract org.apache.http.HttpEntity
wrapResponseEntity(org.apache.http.HttpEntity raw)
-
-
-
Field Detail
-
ACCEPT_ENC_HDR
public static final String ACCEPT_ENC_HDR
- See Also:
- Constant Field Values
-
CONTENT_ENC_HDR
public static final String CONTENT_ENC_HDR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentEncoding
protected abstract String getContentEncoding()
-
wrapResponseEntity
protected abstract org.apache.http.HttpEntity wrapResponseEntity(org.apache.http.HttpEntity raw)
-
getRequestInterceptor
public org.apache.http.HttpRequestInterceptor getRequestInterceptor()
-
getResponseInterceptor
public org.apache.http.HttpResponseInterceptor getResponseInterceptor()
-
-