| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ExecRuntime |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Overrides org. Implements java. |
| private void | |
| 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 Supplier | getTrailers()
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 void | writeTo(final OutputStream
the output stream to write entity content to outStream)Overrides org. Implements org. |
| execRuntime | back to summary |
|---|---|
| private final ExecRuntime execRuntime | |
| ResponseEntityProxy | back to summary |
|---|---|
| pack-priv ResponseEntityProxy(final HttpEntity entity, final ExecRuntime execRuntime) | |
| cleanup | back to summary |
|---|---|
| private void cleanup() throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides org. Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| discardConnection | back to summary |
|---|---|
| private void discardConnection() | |
| enhance | back to summary |
|---|---|
| public static void enhance(final ClassicHttpResponse response, final ExecRuntime execRuntime) | |
| 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.
If this entity belongs to an incoming HTTP message, calling
Important Note Please note all entity implementations must ensure that
all allocated resources are properly deallocated after
the
| |
| getTrailers | back to summary |
|---|---|
| public Supplier Overrides org. Implements org. Doc from org. Returns supplier of message trailers - headers sent after message body.
May return
| |
| 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
| |
| 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final ResponseEntityProxy. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | flush()
Overrides java. Implements java. |
| public String | |
| public void | write(final int
the byteValue)byte.Implements abstract java. |
| public void | write(final byte[]
the data. buffer)Overrides java. b.length bytes from the specified byte array
to this output stream.
|
| public void | write(final byte[]
the data. buffer, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| INSTANCE | back to summary |
|---|---|
| private static final ResponseEntityProxy. | |
| NullOutputStream | back to summary |
|---|---|
| private NullOutputStream() | |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| write | back to summary |
|---|---|
| public void write(final int byteValue) Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(final byte[] buffer) Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(final byte[] buffer, final int off, final int len) Overrides java. Doc from java. Writes
If
If
| |