Package net.oauth.http
Class HttpResponseMessage
- java.lang.Object
-
- net.oauth.http.HttpMessage
-
- net.oauth.http.HttpResponseMessage
-
- Direct Known Subclasses:
HttpMessageDecoder
public abstract class HttpResponseMessage extends HttpMessage
An HTTP response.- Author:
- John Kristian
-
-
Field Summary
Fields Modifier and Type Field Description static StringEOLThe standard end-of-line marker in an HTTP message.static StringLOCATIONThe name of a dump entry whose value is the response Location header.static StringSTATUS_CODEThe name of a dump entry whose value is the HTTP status code.static intSTATUS_OKThe statusCode that indicates a normal outcome.-
Fields inherited from class net.oauth.http.HttpMessage
ACCEPT_ENCODING, body, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CHARSET, headers, method, REQUEST, RESPONSE, url
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpResponseMessage(String method, URL url)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddump(Map<String,Object> into)Put a description of this message and its origins into the given Map.abstract intgetStatusCode()-
Methods inherited from class net.oauth.http.HttpMessage
getBody, getContentCharset, getHeader, newRequest, openBody, removeHeaders
-
-
-
-
Field Detail
-
LOCATION
public static final String LOCATION
The name of a dump entry whose value is the response Location header.- See Also:
- Constant Field Values
-
STATUS_CODE
public static final String STATUS_CODE
The name of a dump entry whose value is the HTTP status code.- See Also:
- Constant Field Values
-
STATUS_OK
public static final int STATUS_OK
The statusCode that indicates a normal outcome.- See Also:
- Constant Field Values
-
EOL
public static final String EOL
The standard end-of-line marker in an HTTP message.- See Also:
- Constant Field Values
-
-
Method Detail
-
dump
public void dump(Map<String,Object> into) throws IOException
Description copied from class:HttpMessagePut a description of this message and its origins into the given Map.- Overrides:
dumpin classHttpMessage- Throws:
IOException
-
getStatusCode
public abstract int getStatusCode() throws IOException- Throws:
IOException
-
-