groovyx.net.http
Class DeflateEncoding

java.lang.Object
  extended by groovyx.net.http.ContentEncoding
      extended by groovyx.net.http.DeflateEncoding

public class DeflateEncoding
extends ContentEncoding

Content encoding used to handle Deflate responses.

Author:
Tom Nichols

Nested Class Summary
static class DeflateEncoding.InflaterEntity
          Entity used to interpret a Deflate-encoded response
 
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
DeflateEncoding()
           
 
Method Summary
 String getContentEncoding()
          Returns the ContentEncoding.Type.DEFLATE encoding string which is added to the Accept-Encoding header by the base class.
 org.apache.http.HttpEntity wrapResponseEntity(org.apache.http.HttpEntity raw)
          Wraps the raw entity in a DeflateEncoding.InflaterEntity.
 
Methods inherited from class groovyx.net.http.ContentEncoding
getRequestInterceptor, getResponseInterceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeflateEncoding

public DeflateEncoding()
Method Detail

getContentEncoding

public String getContentEncoding()
Returns the ContentEncoding.Type.DEFLATE encoding string which is added to the Accept-Encoding header by the base class.

Specified by:
getContentEncoding in class ContentEncoding

wrapResponseEntity

public org.apache.http.HttpEntity wrapResponseEntity(org.apache.http.HttpEntity raw)
Wraps the raw entity in a DeflateEncoding.InflaterEntity.

Specified by:
wrapResponseEntity in class ContentEncoding


Copyright © 2008-2012. All Rights Reserved.