class RequestEntityProxy
extends java.lang.Object
implements org.apache.http.HttpEntity
HttpEntity
enclosed in a request message.Modifier and Type | Field and Description |
---|---|
private boolean |
consumed |
private org.apache.http.HttpEntity |
original |
Constructor and Description |
---|
RequestEntityProxy(org.apache.http.HttpEntity original) |
Modifier and Type | Method and Description |
---|---|
void |
consumeContent()
Deprecated.
|
(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) |
private final org.apache.http.HttpEntity original
private boolean consumed
static void enhance(org.apache.http.HttpEntityEnclosingRequest request)
static boolean isEnhanced(org.apache.http.HttpEntity entity)
static boolean isRepeatable(org.apache.http.HttpRequest request)
public org.apache.http.HttpEntity getOriginal()
public boolean isConsumed()
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
public boolean isChunked()
isChunked
in interface org.apache.http.HttpEntity
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentType()
getContentType
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentEncoding()
getContentEncoding
in interface org.apache.http.HttpEntity
public java.io.InputStream getContent() throws java.io.IOException, java.lang.IllegalStateException
getContent
in interface org.apache.http.HttpEntity
java.io.IOException
java.lang.IllegalStateException
public void writeTo(java.io.OutputStream outstream) throws java.io.IOException
writeTo
in interface org.apache.http.HttpEntity
java.io.IOException
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
@Deprecated public void consumeContent() throws java.io.IOException
consumeContent
in interface org.apache.http.HttpEntity
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object