public final class SimpleHttpRequest extends ConfigurableHttpRequest
SimpleBody
,
Serialized FormConstructor 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, setConfig
addHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAuthority, setHeader, setPath, setScheme, setUri, setVersion, toString
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addHeader, removeHeader, removeHeaders, setHeader, setHeaders
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
public 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)