Package groovyx.net.http
Class ContentEncoding
- java.lang.Object
-
- groovyx.net.http.ContentEncoding
-
- Direct Known Subclasses:
DeflateEncoding,GZIPEncoding
public abstract class ContentEncoding extends java.lang.ObjectBase class for handing content-encoding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classContentEncoding.RequestInterceptorRequest interceptor that adds the correctAcceptheader to the outgoing request.protected classContentEncoding.ResponseInterceptorResponse interceptor that filters the response stream to decode the compressed content before it is passed on to the parser.static classContentEncoding.TypeEnumeration of common content-encodings.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACCEPT_ENC_HDRstatic java.lang.StringCONTENT_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 java.lang.StringgetContentEncoding()org.apache.http.HttpRequestInterceptorgetRequestInterceptor()org.apache.http.HttpResponseInterceptorgetResponseInterceptor()protected abstract org.apache.http.HttpEntitywrapResponseEntity(org.apache.http.HttpEntity raw)
-
-
-
Field Detail
-
ACCEPT_ENC_HDR
public static final java.lang.String ACCEPT_ENC_HDR
- See Also:
- Constant Field Values
-
CONTENT_ENC_HDR
public static final java.lang.String CONTENT_ENC_HDR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentEncoding
protected abstract java.lang.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()
-
-