Class RequestEntityProxy
java.lang.Object
org.apache.hc.client5.http.impl.classic.RequestEntityProxy
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hc.core5.http.EntityDetails,org.apache.hc.core5.http.HttpEntity
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) static voidenhance(org.apache.hc.core5.http.ClassicHttpRequest request) longorg.apache.hc.core5.http.HttpEntityorg.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> booleanboolean(package private) static booleanisEnhanced(org.apache.hc.core5.http.HttpEntity entity) booleanbooleantoString()voidwriteTo(OutputStream outStream)
-
Field Details
-
original
private final org.apache.hc.core5.http.HttpEntity original -
consumed
private boolean consumed
-
-
Constructor Details
-
RequestEntityProxy
RequestEntityProxy(org.apache.hc.core5.http.HttpEntity original)
-
-
Method Details
-
enhance
static void enhance(org.apache.hc.core5.http.ClassicHttpRequest request) -
isEnhanced
static boolean isEnhanced(org.apache.hc.core5.http.HttpEntity entity) -
getOriginal
public org.apache.hc.core5.http.HttpEntity getOriginal() -
isConsumed
public boolean isConsumed() -
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceorg.apache.hc.core5.http.HttpEntity
-
isChunked
public boolean isChunked()- Specified by:
isChunkedin interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentType
- Specified by:
getContentTypein interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceorg.apache.hc.core5.http.EntityDetails
-
getContent
- Specified by:
getContentin interfaceorg.apache.hc.core5.http.HttpEntity- Throws:
IOExceptionIllegalStateException
-
writeTo
- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Throws:
IOException
-
isStreaming
public boolean isStreaming()- Specified by:
isStreamingin interfaceorg.apache.hc.core5.http.HttpEntity
-
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
-
getTrailerNames
- Specified by:
getTrailerNamesin interfaceorg.apache.hc.core5.http.EntityDetails
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
toString
-