Home » HttpComponents-Core-4.0.1 » org.apache.http.entity » [javadoc | source]
org.apache.http.entity
abstract public class: AbstractHttpEntity [javadoc | source]
java.lang.Object
   org.apache.http.entity.AbstractHttpEntity

All Implemented Interfaces:
    HttpEntity

Direct Known Subclasses:
    SerializableEntity, StringEntity, FileEntity, StringNIOEntity, EntityTemplate, ByteArrayEntity, NStringEntity, ContentBufferEntity, BasicHttpEntity, NullHttpEntity, ByteArrayNIOEntity, HttpEntityMockup, InputStreamEntity, NByteArrayEntity, NFileEntity, FileNIOEntity

Abstract base class for entities. Provides the commonly used attributes for streamed and self-contained implementations of HttpEntity .
Field Summary
protected  Header contentType     
protected  Header contentEncoding     
protected  boolean chunked     
Constructor:
 protected AbstractHttpEntity() 
Method from org.apache.http.entity.AbstractHttpEntity Summary:
consumeContent,   getContentEncoding,   getContentType,   isChunked,   setChunked,   setContentEncoding,   setContentEncoding,   setContentType,   setContentType
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.http.entity.AbstractHttpEntity Detail:
 public  void consumeContent() throws IOException, UnsupportedOperationException 
    Does not consume anything. The default implementation does nothing if isStreaming returns false, and throws an exception if it returns true. This removes the burden of implementing an empty method for non-streaming entities.
 public Header getContentEncoding() 
    Obtains the Content-Encoding header. The default implementation returns the value of the contentEncoding attribute.
 public Header getContentType() 
    Obtains the Content-Type header. The default implementation returns the value of the contentType attribute.
 public boolean isChunked() 
    Obtains the 'chunked' flag. The default implementation returns the value of the chunked attribute.
 public  void setChunked(boolean b) 
    Specifies the 'chunked' flag. The default implementation sets the value of the chunked attribute.
 public  void setContentEncoding(Header contentEncoding) 
    Specifies the Content-Encoding header. The default implementation sets the value of the contentEncoding attribute.
 public  void setContentEncoding(String ceString) 
 public  void setContentType(Header contentType) 
    Specifies the Content-Type header. The default implementation sets the value of the contentType attribute.
 public  void setContentType(String ctString)