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, toString
private final HttpResponseMessage http
OAuthResponseMessage(HttpResponseMessage http) throws java.io.IOException
java.io.IOException
public HttpResponseMessage getHttpResponse()
public java.io.InputStream getBodyAsStream() throws java.io.IOException
OAuthMessage
getBodyAsStream
in class OAuthMessage
java.io.IOException
public java.lang.String getBodyEncoding()
OAuthMessage
getBodyEncoding
in class OAuthMessage
public void requireParameters(java.lang.String... names) throws OAuthProblemException, java.io.IOException
OAuthMessage
requireParameters
in class OAuthMessage
OAuthProblemException
- one or more parameters are absent.java.io.IOException
public OAuthProblemException toOAuthProblemException() throws java.io.IOException
java.io.IOException
protected void completeParameters() throws java.io.IOException
OAuthMessage
completeParameters
in class OAuthMessage
java.io.IOException
protected void dump(java.util.Map<java.lang.String,java.lang.Object> into) throws java.io.IOException
dump
in class OAuthMessage
java.io.IOException