Class ResponseEntityProxy
- java.lang.Object
-
- org.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
- org.apache.hc.client5.http.impl.classic.ResponseEntityProxy
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.hc.core5.http.EntityDetails,org.apache.hc.core5.http.HttpEntity,org.apache.hc.core5.http.io.EofSensorWatcher
class ResponseEntityProxy extends org.apache.hc.core5.http.io.entity.HttpEntityWrapper implements org.apache.hc.core5.http.io.EofSensorWatcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classResponseEntityProxy.NullOutputStream
-
Field Summary
Fields Modifier and Type Field Description private ExecRuntimeexecRuntime
-
Constructor Summary
Constructors Constructor Description ResponseEntityProxy(org.apache.hc.core5.http.HttpEntity entity, ExecRuntime execRuntime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcleanup()voidclose()private voiddiscardConnection()static voidenhance(org.apache.hc.core5.http.ClassicHttpResponse response, ExecRuntime execRuntime)booleaneofDetected(java.io.InputStream wrapped)java.io.InputStreamgetContent()org.apache.hc.core5.function.Supplier<java.util.List<? extends org.apache.hc.core5.http.Header>>getTrailers()booleanisRepeatable()voidreleaseConnection()booleanstreamAbort(java.io.InputStream wrapped)booleanstreamClosed(java.io.InputStream wrapped)voidwriteTo(java.io.OutputStream outStream)
-
-
-
Field Detail
-
execRuntime
private final ExecRuntime execRuntime
-
-
Constructor Detail
-
ResponseEntityProxy
ResponseEntityProxy(org.apache.hc.core5.http.HttpEntity entity, ExecRuntime execRuntime)
-
-
Method Detail
-
enhance
public static void enhance(org.apache.hc.core5.http.ClassicHttpResponse response, ExecRuntime execRuntime)
-
cleanup
private void cleanup() throws java.io.IOException- Throws:
java.io.IOException
-
discardConnection
private void discardConnection()
-
releaseConnection
public void releaseConnection()
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatablein interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
isRepeatablein classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
getContent
public java.io.InputStream getContent() throws java.io.IOException- Specified by:
getContentin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
getContentin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
writeToin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
java.io.IOException
-
eofDetected
public boolean eofDetected(java.io.InputStream wrapped) throws java.io.IOException- Specified by:
eofDetectedin interfaceorg.apache.hc.core5.http.io.EofSensorWatcher- Throws:
java.io.IOException
-
streamClosed
public boolean streamClosed(java.io.InputStream wrapped) throws java.io.IOException- Specified by:
streamClosedin interfaceorg.apache.hc.core5.http.io.EofSensorWatcher- Throws:
java.io.IOException
-
streamAbort
public boolean streamAbort(java.io.InputStream wrapped) throws java.io.IOException- Specified by:
streamAbortin interfaceorg.apache.hc.core5.http.io.EofSensorWatcher- Throws:
java.io.IOException
-
getTrailers
public org.apache.hc.core5.function.Supplier<java.util.List<? extends org.apache.hc.core5.http.Header>> getTrailers()
- Specified by:
getTrailersin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
getTrailersin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
java.io.IOException
-
-