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.HttpEntity
A Proxy class forHttpEntity
enclosed 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 void
consumeContent()
(package private) static void
enhance(org.apache.http.HttpEntityEnclosingRequest request)
java.io.InputStream
getContent()
org.apache.http.Header
getContentEncoding()
long
getContentLength()
org.apache.http.Header
getContentType()
org.apache.http.HttpEntity
getOriginal()
boolean
isChunked()
boolean
isConsumed()
(package private) static boolean
isEnhanced(org.apache.http.HttpEntity entity)
boolean
isRepeatable()
(package private) static boolean
isRepeatable(org.apache.http.HttpRequest request)
boolean
isStreaming()
java.lang.String
toString()
void
writeTo(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:
isRepeatable
in interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()
- Specified by:
isChunked
in interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentType
in interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncoding
in interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent() throws java.io.IOException, java.lang.IllegalStateException
- Specified by:
getContent
in interfaceorg.apache.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.http.HttpEntity
- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
-
consumeContent
public void consumeContent() throws java.io.IOException
- Specified by:
consumeContent
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-