Class RequestEntityProxy
- java.lang.Object
-
- org.apache.hc.client5.http.impl.classic.RequestEntityProxy
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.apache.hc.core5.http.EntityDetails
,org.apache.hc.core5.http.HttpEntity
class RequestEntityProxy extends java.lang.Object implements org.apache.hc.core5.http.HttpEntity
-
-
Constructor Summary
Constructors Constructor Description RequestEntityProxy(org.apache.hc.core5.http.HttpEntity original)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
(package private) static void
enhance(org.apache.hc.core5.http.ClassicHttpRequest request)
java.io.InputStream
getContent()
java.lang.String
getContentEncoding()
long
getContentLength()
java.lang.String
getContentType()
org.apache.hc.core5.http.HttpEntity
getOriginal()
java.util.Set<java.lang.String>
getTrailerNames()
org.apache.hc.core5.function.Supplier<java.util.List<? extends org.apache.hc.core5.http.Header>>
getTrailers()
boolean
isChunked()
boolean
isConsumed()
(package private) static boolean
isEnhanced(org.apache.hc.core5.http.HttpEntity entity)
boolean
isRepeatable()
boolean
isStreaming()
java.lang.String
toString()
void
writeTo(java.io.OutputStream outStream)
-
-
-
Method Detail
-
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
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentEncoding
public java.lang.String getContentEncoding()
- Specified by:
getContentEncoding
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContent
public java.io.InputStream getContent() throws java.io.IOException, java.lang.IllegalStateException
- Specified by:
getContent
in interfaceorg.apache.hc.core5.http.HttpEntity
- Throws:
java.io.IOException
java.lang.IllegalStateException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
writeTo
in interfaceorg.apache.hc.core5.http.HttpEntity
- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreaming
in interfaceorg.apache.hc.core5.http.HttpEntity
-
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
-
getTrailerNames
public java.util.Set<java.lang.String> getTrailerNames()
- Specified by:
getTrailerNames
in interfaceorg.apache.hc.core5.http.EntityDetails
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-