public class OAuthResponseMessage extends OAuthMessage
AUTH_SCHEME, DELETE, GET, method, POST, PUT, URL| 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(Map<String,Object> into) |
InputStream |
getBodyAsStream()
Get a stream from which to read the body of the HTTP request or response.
|
String |
getBodyEncoding()
The character encoding of the body of this message.
|
HttpResponseMessage |
getHttpResponse() |
void |
requireParameters(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, toHttpRequest, toString, validateMessagepublic HttpResponseMessage getHttpResponse()
public InputStream getBodyAsStream() throws IOException
OAuthMessagegetBodyAsStream in class OAuthMessageIOExceptionpublic String getBodyEncoding()
OAuthMessagegetBodyEncoding in class OAuthMessagepublic void requireParameters(String... names) throws OAuthProblemException, IOException
OAuthMessagerequireParameters in class OAuthMessageOAuthProblemException - one or more parameters are absent.IOExceptionpublic OAuthProblemException toOAuthProblemException() throws IOException
IOExceptionprotected void completeParameters()
throws IOException
OAuthMessagecompleteParameters in class OAuthMessageIOExceptionprotected void dump(Map<String,Object> into) throws IOException
dump in class OAuthMessageIOExceptionCopyright 2015- Charles R. Severance and licensed CC-BY Attribution 4.0