public class HttpMessageDecoder extends HttpResponseMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCEPTED |
static java.lang.String |
DEFLATE |
static java.lang.String |
GZIP |
private HttpResponseMessage |
in |
EOL, LOCATION, STATUS_CODE, STATUS_OK
ACCEPT_ENCODING, body, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CHARSET, headers, method, REQUEST, RESPONSE, url
Modifier | Constructor and Description |
---|---|
private |
HttpMessageDecoder(HttpResponseMessage in,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
static HttpResponseMessage |
decode(HttpResponseMessage message)
Decode the given message if necessary and possible.
|
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.
|
private static java.lang.String |
getEncoding(HttpMessage message) |
int |
getStatusCode() |
getBody, getContentCharset, getHeader, newRequest, openBody, removeHeaders
public static final java.lang.String GZIP
public static final java.lang.String DEFLATE
public static final java.lang.String ACCEPTED
private final HttpResponseMessage in
private HttpMessageDecoder(HttpResponseMessage in, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public static HttpResponseMessage decode(HttpResponseMessage message) throws java.io.IOException
java.io.IOException
private static java.lang.String getEncoding(HttpMessage message)
public void dump(java.util.Map<java.lang.String,java.lang.Object> into) throws java.io.IOException
HttpMessage
dump
in class HttpResponseMessage
java.io.IOException
public int getStatusCode() throws java.io.IOException
getStatusCode
in class HttpResponseMessage
java.io.IOException