java.lang.Object | |
↳ | org.apache.http.entity.AbstractHttpEntity |
Known Direct Subclasses |
Abstract base class for entities.
Provides the commonly used attributes for streamed and self-contained
implementations of HttpEntity
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
chunked | |||||||||||
contentEncoding | |||||||||||
contentType |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Either use
getContent() and call close() on that;
otherwise call writeTo(OutputStream) which is required to free the resources.
| |||||||||||
Obtains the Content-Encoding header.
| |||||||||||
Obtains the Content-Type header.
| |||||||||||
Obtains the 'chunked' flag.
| |||||||||||
Specifies the 'chunked' flag.
| |||||||||||
Specifies the Content-Encoding header, as a string.
| |||||||||||
Specifies the Content-Encoding header.
| |||||||||||
Specifies the Content-Type header.
| |||||||||||
Specifies the Content-Type header, as a string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpEntity
|
Protected default constructor.
The attributes of the created object remain
null
and false
, respectively.
This method is deprecated.
Either use getContent()
and call close()
on that;
otherwise call writeTo(OutputStream)
which is required to free the resources.
The default implementation does not consume anything.
IOException |
---|
Obtains the Content-Encoding header.
The default implementation returns the value of the
contentEncoding
attribute.
null
Obtains the Content-Type header.
The default implementation returns the value of the
contentType
attribute.
null
Obtains the 'chunked' flag.
The default implementation returns the value of the
chunked
attribute.
Specifies the 'chunked' flag.
The default implementation sets the value of the
chunked
attribute.
b | the new 'chunked' flag |
---|
Specifies the Content-Encoding header, as a string.
The default implementation calls
setContentEncoding(Header)
.
ceString | the new Content-Encoding header, or
null to unset
|
---|
Specifies the Content-Encoding header.
The default implementation sets the value of the
contentEncoding
attribute.
contentEncoding | the new Content-Encoding header, or
null to unset
|
---|
Specifies the Content-Type header.
The default implementation sets the value of the
contentType
attribute.
contentType | the new Content-Encoding header, or
null to unset
|
---|
Specifies the Content-Type header, as a string.
The default implementation calls
setContentType(Header)
.
ctString | the new Content-Type header, or
null to unset
|
---|