Class ResponseEntityProxy
java.lang.Object
org.apache.hc.core5.http.io.entity.HttpEntityWrapper
org.apache.hc.client5.http.impl.classic.ResponseEntityProxy
- All Implemented Interfaces:
Closeable
,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 -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResponseEntityProxy
(org.apache.hc.core5.http.HttpEntity entity, ExecRuntime execRuntime) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
cleanup()
void
close()
private void
static void
enhance
(org.apache.hc.core5.http.ClassicHttpResponse response, ExecRuntime execRuntime) boolean
eofDetected
(InputStream wrapped) org.apache.hc.core5.function.Supplier
<List<? extends org.apache.hc.core5.http.Header>> boolean
void
boolean
streamAbort
(InputStream wrapped) boolean
streamClosed
(InputStream wrapped) void
writeTo
(OutputStream outStream) Methods inherited from class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
getContentEncoding, getContentLength, getContentType, getTrailerNames, isChunked, isStreaming, toString
-
Field Details
-
execRuntime
-
-
Constructor Details
-
ResponseEntityProxy
ResponseEntityProxy(org.apache.hc.core5.http.HttpEntity entity, ExecRuntime execRuntime)
-
-
Method Details
-
enhance
public static void enhance(org.apache.hc.core5.http.ClassicHttpResponse response, ExecRuntime execRuntime) -
cleanup
- Throws:
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
- Specified by:
getContent
in interfaceorg.apache.hc.core5.http.HttpEntity
- Overrides:
getContent
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.hc.core5.http.HttpEntity
- Overrides:
writeTo
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
- Throws:
IOException
-
eofDetected
- Specified by:
eofDetected
in interfaceorg.apache.hc.core5.http.io.EofSensorWatcher
- Throws:
IOException
-
streamClosed
- Specified by:
streamClosed
in interfaceorg.apache.hc.core5.http.io.EofSensorWatcher
- Throws:
IOException
-
streamAbort
- Specified by:
streamAbort
in interfaceorg.apache.hc.core5.http.io.EofSensorWatcher
- Throws:
IOException
-
getTrailers
public org.apache.hc.core5.function.Supplier<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
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
- Throws:
IOException
-