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 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 StringACCEPT_ENC_HDRstatic 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 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 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()
-
-