HttpEntity.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected Header | |
| protected Header | |
| protected static final int | OUTPUT_BUFFER_SIZE
Buffer size for output stream processing. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | consumeContent()
Implements org.
Deprecated
(4.1) Either use
The default implementation does not consume anything.
getContent() and call java. on that;
otherwise call writeTo(java. which is required to free the resources.
|
| public Header | Returns: the Content-Encoding header, ornullImplements org. |
| public Header | Returns: the Content-Type header, ornullImplements org. |
| public boolean | Returns: the 'chunked' flagImplements org. |
| public void | |
| public void | setContentEncoding(final Header
the new Content-Encoding header, or
contentEncoding)null to unsetSpecifies the Content-Encoding header. |
| public void | setContentEncoding(final String
the new Content-Encoding header, or
ceString)null to unsetSpecifies the Content-Encoding header, as a string. |
| public void | setContentType(final Header
the new Content-Type header, or
contentType)null to unsetSpecifies the Content-Type header. |
| public void | setContentType(final String
the new Content-Type header, or
ctString)null to unsetSpecifies the Content-Type header, as a string. |
| public String |
| chunked | back to summary |
|---|---|
| protected boolean chunked | |
| contentEncoding | back to summary |
|---|---|
| protected Header contentEncoding | |
| contentType | back to summary |
|---|---|
| protected Header contentType | |
| OUTPUT_BUFFER_SIZE | back to summary |
|---|---|
| protected static final int OUTPUT_BUFFER_SIZE Buffer size for output stream processing.
| |
| AbstractHttpEntity | back to summary |
|---|---|
| protected AbstractHttpEntity() Protected default constructor.
The contentType, contentEncoding and chunked attributes of the created object are set to
| |
| consumeContent | back to summary |
|---|---|
| public void consumeContent() throws IOException Implements org. Deprecated (4.1) Either use The default implementation does not consume anything.
| |
| getContentEncoding | back to summary |
|---|---|
| public Header getContentEncoding() Implements org. Obtains the Content-Encoding header.
The default implementation returns the value of the
| |
| getContentType | back to summary |
|---|---|
| public Header getContentType() Implements org. Obtains the Content-Type header.
The default implementation returns the value of the
| |
| isChunked | back to summary |
|---|---|
| public boolean isChunked() Implements org. Obtains the 'chunked' flag.
The default implementation returns the value of the
| |
| setChunked | back to summary |
|---|---|
| public void setChunked(final boolean b) Specifies the 'chunked' flag. Note that the chunked setting is a hint only. If using HTTP/1.0, chunking is never performed. Otherwise, even if chunked is false, HttpClient must use chunk coding if the entity content length is unknown (-1).
The default implementation sets the value of the
| |
| setContentEncoding | back to summary |
|---|---|
| public void setContentEncoding(final Header contentEncoding) Specifies the Content-Encoding header.
The default implementation sets the value of the
| |
| setContentEncoding | back to summary |
|---|---|
| public void setContentEncoding(final String ceString) Specifies the Content-Encoding header, as a string.
The default implementation calls
| |
| setContentType | back to summary |
|---|---|
| public void setContentType(final Header contentType) Specifies the Content-Type header.
The default implementation sets the value of the
| |
| setContentType | back to summary |
|---|---|
| public void setContentType(final String ctString) Specifies the Content-Type header, as a string.
The default implementation calls
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |