public class RequestEntity
extends java.lang.Object
implements org.apache.http.HttpEntity
| Constructor and Description |
|---|
RequestEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.http.NameValuePair kv)
Adds a new KV pair to the entity
|
void |
add(java.lang.String key,
java.lang.String value)
Adds a new KV pair to the entity
|
void |
consumeContent() |
java.io.InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
public void add(java.lang.String key,
java.lang.String value)
key - The key to addvalue - The value to addpublic void add(org.apache.http.NameValuePair kv)
kv - The KV pair objectpublic void consumeContent()
throws java.io.IOException
consumeContent in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic java.io.InputStream getContent()
throws java.io.IOException,
java.lang.IllegalStateException
getContent in interface org.apache.http.HttpEntityjava.io.IOExceptionjava.lang.IllegalStateExceptionpublic org.apache.http.Header getContentEncoding()
getContentEncoding in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentType()
getContentType in interface org.apache.http.HttpEntitypublic boolean isChunked()
isChunked in interface org.apache.http.HttpEntitypublic boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntitypublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntityjava.io.IOException