org.openrdf.http.object.filters
Class GZipEntity

java.lang.Object
  extended by org.openrdf.http.object.filters.HttpEntityWrapper
      extended by org.openrdf.http.object.filters.GZipEntity
All Implemented Interfaces:
org.apache.http.HttpEntity, org.apache.http.nio.entity.ProducingNHttpEntity

public class GZipEntity
extends HttpEntityWrapper

Compresses the message body.


Constructor Summary
GZipEntity(org.apache.http.HttpEntity entity)
           
 
Method Summary
 org.apache.http.Header getContentEncoding()
           
 long getContentLength()
           
protected  InputStream getDelegateContent()
           
 boolean isChunked()
           
 
Methods inherited from class org.openrdf.http.object.filters.HttpEntityWrapper
consumeContent, finish, getContent, getContentType, getEntityDelegate, isRepeatable, isStreaming, produceContent, toString, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GZipEntity

public GZipEntity(org.apache.http.HttpEntity entity)
Method Detail

getDelegateContent

protected InputStream getDelegateContent()
                                  throws IOException,
                                         IllegalStateException
Overrides:
getDelegateContent in class HttpEntityWrapper
Throws:
IOException
IllegalStateException

getContentEncoding

public org.apache.http.Header getContentEncoding()
Specified by:
getContentEncoding in interface org.apache.http.HttpEntity
Overrides:
getContentEncoding in class HttpEntityWrapper

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface org.apache.http.HttpEntity
Overrides:
getContentLength in class HttpEntityWrapper

isChunked

public boolean isChunked()
Specified by:
isChunked in interface org.apache.http.HttpEntity
Overrides:
isChunked in class HttpEntityWrapper


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.