HttpEntity enclosed in a response message.
| Modifier and Type | Field and Description |
|---|---|
| private final ConnectionHolder |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public void | consumeContent()
Overrides org. Implements org. |
| public static void | |
| public boolean | eofDetected(final InputStream
the underlying stream which has reached EOF wrapped)Implements org. |
| public InputStream | getContent()
Overrides org. Implements org. |
| public boolean | isRepeatable()
Overrides org. Implements org. |
| public void | |
| public boolean | streamAbort(final InputStream
the underlying stream which has not reached EOF wrapped)Implements org. stream is aborted.
|
| public boolean | streamClosed(final InputStream
the underlying stream which has not reached EOF wrapped)Implements org. stream is closed.
|
| public String | |
| public void | writeTo(final OutputStream
the output stream to write entity content to outStream)Overrides org. Implements org. |
| connHolder | back to summary |
|---|---|
| private final ConnectionHolder connHolder | |
| ResponseEntityProxy | back to summary |
|---|---|
| pack-priv ResponseEntityProxy(final HttpEntity entity, final ConnectionHolder connHolder) | |
| abortConnection | back to summary |
|---|---|
| private void abortConnection() | |
| cleanup | back to summary |
|---|---|
| private void cleanup() throws IOException | |
| consumeContent | back to summary |
|---|---|
| public void consumeContent() throws IOException Overrides org. Implements org. Doc from org. This method is deprecated since version 4.1. Please use standard
java convention to ensure resource deallocation by calling
This method is called to indicate that the content of this entity is no longer required. All entity implementations are expected to release all allocated resources as a result of this method invocation. Content streaming entities are also expected to dispose of the remaining content, if any. Wrapping entities should delegate this call to the wrapped entity.
This method is of particular importance for entities being
received from a
| |
| enchance | back to summary |
|---|---|
| public static void enchance(final HttpResponse response, final ConnectionHolder connHolder) | |
| eofDetected | back to summary |
|---|---|
| public boolean eofDetected(final InputStream wrapped) throws IOException Implements org. Doc from org. Indicates that EOF is detected.
| |
| getContent | back to summary |
|---|---|
| public InputStream getContent() throws IOException Overrides org. Implements org. Doc from org. Returns a content stream of the entity.
Important Note Please note all entity implementations must ensure that
all allocated resources are properly deallocated after
the
| |
| isRepeatable | back to summary |
|---|---|
| public boolean isRepeatable() Overrides org. Implements org. Doc from org. Tells if the entity is capable of producing its data more than once. A repeatable entity's getContent() and writeTo(OutputStream) methods can be called more than once whereas a non-repeatable entity's can not.
| |
| releaseConnection | back to summary |
|---|---|
| public void releaseConnection() | |
| streamAbort | back to summary |
|---|---|
| public boolean streamAbort(final InputStream wrapped) throws IOException Implements org. Doc from org. Indicates that the This method will also be invoked when an input operation causes an IOException to be thrown to make sure the input stream gets shut down.
| |
| streamClosed | back to summary |
|---|---|
| public boolean streamClosed(final InputStream wrapped) throws IOException Implements org. Doc from org. Indicates that the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(final OutputStream outStream) throws IOException Overrides org. Implements org. Doc from org. Writes the entity content out to the output stream. Important Note Please note all entity implementations must ensure that all allocated resources are properly deallocated when this method returns.
| |