public class OAuthResponseMessage extends OAuthMessage
| Modifier and Type | Field and Description |
|---|---|
private HttpResponseMessage |
http |
AUTH_SCHEME, DELETE, GET, method, POST, PUT, URL| Constructor and Description |
|---|
OAuthResponseMessage(HttpResponseMessage http) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
completeParameters()
Finish adding parameters; for example read an HTTP response body and
parse parameters from it.
|
protected void |
dump(java.util.Map<java.lang.String,java.lang.Object> into) |
java.io.InputStream |
getBodyAsStream()
Get a stream from which to read the body of the HTTP request or response.
|
java.lang.String |
getBodyEncoding()
The character encoding of the body of this message.
|
HttpResponseMessage |
getHttpResponse() |
void |
requireParameters(java.lang.String... names)
Verify that the required parameter names are contained in the actual
collection.
|
OAuthProblemException |
toOAuthProblemException()
Encapsulate this message as an exception.
|
addParameter, addParameter, addParameters, addRequiredParameters, decodeAuthorization, getAuthorizationHeader, getBodyType, getConsumerKey, getDump, getHeader, getHeaders, getParameter, getParameterMap, getParameters, getSignature, getSignatureMethod, getToken, readAll, readBodyAsString, sign, toStringprivate final HttpResponseMessage http
OAuthResponseMessage(HttpResponseMessage http) throws java.io.IOException
java.io.IOExceptionpublic HttpResponseMessage getHttpResponse()
public java.io.InputStream getBodyAsStream()
throws java.io.IOException
OAuthMessagegetBodyAsStream in class OAuthMessagejava.io.IOExceptionpublic java.lang.String getBodyEncoding()
OAuthMessagegetBodyEncoding in class OAuthMessagepublic void requireParameters(java.lang.String... names)
throws OAuthProblemException,
java.io.IOException
OAuthMessagerequireParameters in class OAuthMessageOAuthProblemException - one or more parameters are absent.java.io.IOExceptionpublic OAuthProblemException toOAuthProblemException() throws java.io.IOException
java.io.IOExceptionprotected void completeParameters()
throws java.io.IOException
OAuthMessagecompleteParameters in class OAuthMessagejava.io.IOExceptionprotected void dump(java.util.Map<java.lang.String,java.lang.Object> into)
throws java.io.IOException
dump in class OAuthMessagejava.io.IOException