Package groovyx.net.http
Class GZIPEncoding
- java.lang.Object
-
- groovyx.net.http.ContentEncoding
-
- groovyx.net.http.GZIPEncoding
-
public class GZIPEncoding extends ContentEncoding
Content encoding used to handle GZIP responses.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class groovyx.net.http.ContentEncoding
ContentEncoding.RequestInterceptor, ContentEncoding.ResponseInterceptor, ContentEncoding.Type
-
-
Field Summary
-
Fields inherited from class groovyx.net.http.ContentEncoding
ACCEPT_ENC_HDR, CONTENT_ENC_HDR
-
-
Constructor Summary
Constructors Constructor Description GZIPEncoding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentEncoding()
Returns theContentEncoding.Type.GZIP
encoding string which is added to theAccept-Encoding
header by the base class.org.apache.http.HttpEntity
wrapResponseEntity(org.apache.http.HttpEntity raw)
Wraps the raw entity in aGZIPDecompressingEntity
.-
Methods inherited from class groovyx.net.http.ContentEncoding
getRequestInterceptor, getResponseInterceptor
-
-
-
-
Method Detail
-
getContentEncoding
public java.lang.String getContentEncoding()
Returns theContentEncoding.Type.GZIP
encoding string which is added to theAccept-Encoding
header by the base class.- Specified by:
getContentEncoding
in classContentEncoding
-
wrapResponseEntity
public org.apache.http.HttpEntity wrapResponseEntity(org.apache.http.HttpEntity raw)
Wraps the raw entity in aGZIPDecompressingEntity
.- Specified by:
wrapResponseEntity
in classContentEncoding
-
-