Package org.apache.http.impl.execchain
Class RequestEntityProxy
- java.lang.Object
-
- org.apache.http.impl.execchain.RequestEntityProxy
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
class RequestEntityProxy extends java.lang.Object implements org.apache.http.HttpEntityA Proxy class forHttpEntityenclosed in a request message.- Since:
- 4.3
-
-
Constructor Summary
Constructors Constructor Description RequestEntityProxy(org.apache.http.HttpEntity original)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeContent()(package private) static voidenhance(org.apache.http.HttpEntityEnclosingRequest request)java.io.InputStreamgetContent()org.apache.http.HeadergetContentEncoding()longgetContentLength()org.apache.http.HeadergetContentType()org.apache.http.HttpEntitygetOriginal()booleanisChunked()booleanisConsumed()(package private) static booleanisEnhanced(org.apache.http.HttpEntity entity)booleanisRepeatable()(package private) static booleanisRepeatable(org.apache.http.HttpRequest request)booleanisStreaming()java.lang.StringtoString()voidwriteTo(java.io.OutputStream outStream)
-
-
-
Method Detail
-
enhance
static void enhance(org.apache.http.HttpEntityEnclosingRequest request)
-
isEnhanced
static boolean isEnhanced(org.apache.http.HttpEntity entity)
-
isRepeatable
static boolean isRepeatable(org.apache.http.HttpRequest request)
-
getOriginal
public org.apache.http.HttpEntity getOriginal()
-
isConsumed
public boolean isConsumed()
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatablein interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()
- Specified by:
isChunkedin interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentTypein interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncodingin interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent() throws java.io.IOException, java.lang.IllegalStateException- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Throws:
java.io.IOExceptionjava.lang.IllegalStateException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreamingin interfaceorg.apache.http.HttpEntity
-
consumeContent
public void consumeContent() throws java.io.IOException- Specified by:
consumeContentin interfaceorg.apache.http.HttpEntity- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-