net.oauth.http
Class HttpMessageDecoder
java.lang.Object
net.oauth.http.HttpMessage
net.oauth.http.HttpResponseMessage
net.oauth.http.HttpMessageDecoder
public class HttpMessageDecoder
- extends HttpResponseMessage
A decorator that handles Content-Encoding.
Field Summary |
static java.lang.String |
ACCEPTED
|
static java.lang.String |
DEFLATE
|
static java.lang.String |
GZIP
|
Fields inherited from class net.oauth.http.HttpMessage |
ACCEPT_ENCODING, body, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CHARSET, headers, method, REQUEST, RESPONSE, url |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GZIP
public static final java.lang.String GZIP
- See Also:
- Constant Field Values
DEFLATE
public static final java.lang.String DEFLATE
- See Also:
- Constant Field Values
ACCEPTED
public static final java.lang.String ACCEPTED
- See Also:
- Constant Field Values
decode
public static HttpResponseMessage decode(HttpResponseMessage message)
throws java.io.IOException
- Decode the given message if necessary and possible.
- Returns:
- a decorator that decodes the body of the given message; or the
given message if this class can't decode it.
- Throws:
java.io.IOException
dump
public void dump(java.util.Map<java.lang.String,java.lang.Object> into)
throws java.io.IOException
- Description copied from class:
HttpMessage
- Put a description of this message and its origins into the given Map.
- Overrides:
dump
in class HttpResponseMessage
- Throws:
java.io.IOException
getStatusCode
public int getStatusCode()
throws java.io.IOException
- Specified by:
getStatusCode
in class HttpResponseMessage
- Throws:
java.io.IOException
Copyright © 2009. All Rights Reserved.