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 TypeMethodDescriptionvoid
close()
(package private) static void
enhance
(org.apache.hc.core5.http.ClassicHttpRequest request) long
org.apache.hc.core5.http.HttpEntity
org.apache.hc.core5.function.Supplier
<List<? extends org.apache.hc.core5.http.Header>> boolean
boolean
(package private) static boolean
isEnhanced
(org.apache.hc.core5.http.HttpEntity entity) boolean
boolean
toString()
void
writeTo
(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:
isRepeatable
in interfaceorg.apache.hc.core5.http.HttpEntity
-
isChunked
public boolean isChunked()- Specified by:
isChunked
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentLength
public long getContentLength()- Specified by:
getContentLength
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentType
- Specified by:
getContentType
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentEncoding
- Specified by:
getContentEncoding
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContent
- Specified by:
getContent
in interfaceorg.apache.hc.core5.http.HttpEntity
- Throws:
IOException
IllegalStateException
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.hc.core5.http.HttpEntity
- Throws:
IOException
-
isStreaming
public boolean isStreaming()- Specified by:
isStreaming
in 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:
getTrailers
in interfaceorg.apache.hc.core5.http.HttpEntity
-
getTrailerNames
- Specified by:
getTrailerNames
in interfaceorg.apache.hc.core5.http.EntityDetails
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
toString
-