public abstract class HttpResponseMessage extends HttpMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EOL
The standard end-of-line marker in an HTTP message.
|
static java.lang.String |
LOCATION
The name of a dump entry whose value is the response Location header.
|
static java.lang.String |
STATUS_CODE
The name of a dump entry whose value is the HTTP status code.
|
static int |
STATUS_OK
The statusCode that indicates a normal outcome.
|
ACCEPT_ENCODING, body, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CHARSET, headers, method, REQUEST, RESPONSE, url
Modifier | Constructor and Description |
---|---|
protected |
HttpResponseMessage(java.lang.String method,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
dump(java.util.Map<java.lang.String,java.lang.Object> into)
Put a description of this message and its origins into the given Map.
|
abstract int |
getStatusCode() |
getBody, getContentCharset, getHeader, newRequest, openBody, removeHeaders
public static final java.lang.String LOCATION
public static final java.lang.String STATUS_CODE
public static final int STATUS_OK
public static final java.lang.String EOL
protected HttpResponseMessage(java.lang.String method, java.net.URL url)
public void dump(java.util.Map<java.lang.String,java.lang.Object> into) throws java.io.IOException
HttpMessage
dump
in class HttpMessage
java.io.IOException
public abstract int getStatusCode() throws java.io.IOException
java.io.IOException