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 voidcleanup()voidclose()private voidstatic voidenhance(org.apache.hc.core5.http.ClassicHttpResponse response, ExecRuntime execRuntime) booleaneofDetected(InputStream wrapped) org.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> booleanvoidbooleanstreamAbort(InputStream wrapped) booleanstreamClosed(InputStream wrapped) voidwriteTo(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:
isRepeatablein interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
isRepeatablein classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
getContent
- Specified by:
getContentin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
getContentin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
writeToin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
IOException
-
eofDetected
- Specified by:
eofDetectedin interfaceorg.apache.hc.core5.http.io.EofSensorWatcher- Throws:
IOException
-
streamClosed
- Specified by:
streamClosedin interfaceorg.apache.hc.core5.http.io.EofSensorWatcher- Throws:
IOException
-
streamAbort
- Specified by:
streamAbortin 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:
getTrailersin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
getTrailersin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
IOException
-