| java.lang.Object org.apache.http.entity.AbstractHttpEntity
All known Subclasses: org.apache.http.entity.BasicHttpEntity, org.apache.http.entity.InputStreamEntity, org.apache.http.entity.FileEntity, org.apache.http.entity.EntityTemplate, org.apache.http.mockup.HttpEntityMockup, org.apache.http.entity.ByteArrayEntity, org.apache.http.entity.StringEntity,
AbstractHttpEntity | abstract public class AbstractHttpEntity implements HttpEntity(Code) | | Abstract base class for entities.
Provides the commonly used attributes for streamed and self-contained
implementations of
HttpEntity HttpEntity .
author: Oleg Kalnichevski version: $Revision: 496070 $ since: 4.0 |
AbstractHttpEntity | protected AbstractHttpEntity()(Code) | | Protected default constructor.
The attributes of the created object remain
null and false , respectively.
|
getContentEncoding | public Header getContentEncoding()(Code) | | Obtains the Content-Encoding header.
The default implementation returns the value of the
AbstractHttpEntity.contentEncoding contentEncoding attribute.
the Content-Encoding header, or null |
getContentType | public Header getContentType()(Code) | | Obtains the Content-Type header.
The default implementation returns the value of the
AbstractHttpEntity.contentType contentType attribute.
the Content-Type header, or null |
isChunked | public boolean isChunked()(Code) | | Obtains the 'chunked' flag.
The default implementation returns the value of the
AbstractHttpEntity.chunked chunked attribute.
the 'chunked' flag |
setChunked | public void setChunked(boolean b)(Code) | | Specifies the 'chunked' flag.
The default implementation sets the value of the
AbstractHttpEntity.chunked chunked attribute.
Parameters: b - the new 'chunked' flag |
setContentEncoding | public void setContentEncoding(Header contentEncoding)(Code) | | Specifies the Content-Encoding header.
The default implementation sets the value of the
AbstractHttpEntity.contentEncoding contentEncoding attribute.
Parameters: contentEncoding - the new Content-Encoding header, ornull to unset |
setContentEncoding | public void setContentEncoding(String ceString)(Code) | | Specifies the Content-Encoding header, as a string.
The default implementation calls
AbstractHttpEntity.setContentEncoding(Header) setContentEncoding(Header) .
Parameters: ceString - the new Content-Encoding header, ornull to unset |
setContentType | public void setContentType(Header contentType)(Code) | | Specifies the Content-Type header.
The default implementation sets the value of the
AbstractHttpEntity.contentType contentType attribute.
Parameters: contentType - the new Content-Encoding header, ornull to unset |
setContentType | public void setContentType(String ctString)(Code) | | Specifies the Content-Type header, as a string.
The default implementation calls
AbstractHttpEntity.setContentType(Header) setContentType(Header) .
Parameters: ctString - the new Content-Type header, ornull to unset |
|
|