Package groovyx.net.http
Class ContentEncoding
java.lang.Object
groovyx.net.http.ContentEncoding
- Direct Known Subclasses:
DeflateEncoding
,GZIPEncoding
Base class for handing content-encoding.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Request interceptor that adds the correctAccept
header to the outgoing request.protected class
Response interceptor that filters the response stream to decode the compressed content before it is passed on to the parser.static enum
Enumeration of common content-encodings. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
org.apache.http.HttpRequestInterceptor
org.apache.http.HttpResponseInterceptor
protected abstract org.apache.http.HttpEntity
wrapResponseEntity
(org.apache.http.HttpEntity raw)
-
Field Details
-
ACCEPT_ENC_HDR
- See Also:
-
CONTENT_ENC_HDR
- See Also:
-
-
Constructor Details
-
ContentEncoding
public ContentEncoding()
-
-
Method Details
-
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()
-