public class HttpResponse extends HttpMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTTP_TARGET_HOST |
private int |
status |
Constructor and Description |
---|
HttpResponse() |
Modifier and Type | Method and Description |
---|---|
int |
getStatus() |
java.lang.String |
getTargetHost()
Returns the host this response was received from, or null if it was not set.
|
void |
setStatus(int status) |
void |
setTargetHost(java.lang.String host)
Sets the host this response was received from.
|
addHeader, getAttribute, getContent, getContentString, getHeader, getHeaderNames, getHeaders, removeAttribute, removeHeader, setAttribute, setContent, setHeader
public static final java.lang.String HTTP_TARGET_HOST
private int status
public int getStatus()
public void setStatus(int status)
public void setTargetHost(java.lang.String host)
host
- originating hostpublic java.lang.String getTargetHost()