groovyx.net.http
Class ContentEncoding

java.lang.Object
  extended by 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
protected  class ContentEncoding.RequestInterceptor
          Request interceptor that adds the correct Accept header to the outgoing request.
protected  class ContentEncoding.ResponseInterceptor
          Response interceptor that filters the response stream to decode the compressed content before it is passed on to the parser.
static class ContentEncoding.Type
          Enumeration of common content-encodings.
 
Field Summary
static String ACCEPT_ENC_HDR
           
static String CONTENT_ENC_HDR
           
 
Constructor Summary
ContentEncoding()
           
 
Method Summary
protected abstract  String getContentEncoding()
           
 org.apache.http.HttpRequestInterceptor getRequestInterceptor()
           
 org.apache.http.HttpResponseInterceptor getResponseInterceptor()
           
protected abstract  org.apache.http.HttpEntity wrapResponseEntity(org.apache.http.HttpEntity raw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

ContentEncoding

public ContentEncoding()
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()


Copyright © 2008-2012. All Rights Reserved.