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 class
ResponseEntityProxy.NullOutputStream
-
Field Summary
Fields Modifier and Type Field Description private ExecRuntime
execRuntime
-
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 void
cleanup()
void
close()
private void
discardConnection()
static void
enhance(org.apache.hc.core5.http.ClassicHttpResponse response, ExecRuntime execRuntime)
boolean
eofDetected(java.io.InputStream wrapped)
java.io.InputStream
getContent()
org.apache.hc.core5.function.Supplier<java.util.List<? extends org.apache.hc.core5.http.Header>>
getTrailers()
boolean
isRepeatable()
void
releaseConnection()
boolean
streamAbort(java.io.InputStream wrapped)
boolean
streamClosed(java.io.InputStream wrapped)
void
writeTo(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:
isRepeatable
in interfaceorg.apache.hc.core5.http.HttpEntity
- Overrides:
isRepeatable
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
getContent
public java.io.InputStream getContent() throws java.io.IOException
- Specified by:
getContent
in interfaceorg.apache.hc.core5.http.HttpEntity
- Overrides:
getContent
in 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:
writeTo
in interfaceorg.apache.hc.core5.http.HttpEntity
- Overrides:
writeTo
in 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:
eofDetected
in 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:
streamClosed
in 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:
streamAbort
in 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:
getTrailers
in interfaceorg.apache.hc.core5.http.HttpEntity
- Overrides:
getTrailers
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
- Throws:
java.io.IOException
-
-