public abstract class HttpResponseMessage extends HttpMessage
Modifier and Type | Field and Description |
---|---|
static String |
EOL
The standard end-of-line marker in an HTTP message.
|
static String |
LOCATION
The name of a dump entry whose value is the response Location header.
|
static 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(String method,
URL url) |
Modifier and Type | Method and Description |
---|---|
void |
dump(Map<String,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 String LOCATION
public static final String STATUS_CODE
public static final int STATUS_OK
public static final String EOL
public void dump(Map<String,Object> into) throws IOException
HttpMessage
dump
in class HttpMessage
IOException
public abstract int getStatusCode() throws IOException
IOException
Copyright © 2023. All rights reserved.