public final class SimpleHttpRequest extends ConfigurableHttpRequest
SimpleBody,
Serialized Form| Constructor and Description |
|---|
SimpleHttpRequest(String method,
HttpHost host,
String path) |
SimpleHttpRequest(String method,
String path) |
SimpleHttpRequest(String method,
URI requestUri) |
| Modifier and Type | Method and Description |
|---|---|
static SimpleHttpRequest |
copy(HttpRequest original) |
SimpleBody |
getBody() |
byte[] |
getBodyBytes() |
String |
getBodyText() |
ContentType |
getContentType() |
void |
setBody(byte[] bodyBytes,
ContentType contentType) |
void |
setBody(SimpleBody body) |
void |
setBody(String bodyText,
ContentType contentType) |
getConfig, setConfigaddHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAuthority, setHeader, setPath, setScheme, setUri, setVersion, toStringaddHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeadersclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHeader, removeHeader, removeHeaders, setHeader, setHeaderscontainsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIteratorpublic static SimpleHttpRequest copy(HttpRequest original)
public SimpleBody getBody()
public byte[] getBodyBytes()
public String getBodyText()
public ContentType getContentType()
public void setBody(byte[] bodyBytes,
ContentType contentType)
public void setBody(SimpleBody body)
public void setBody(String bodyText, ContentType contentType)