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, toString
public HttpResponseMessage getHttpResponse()
public InputStream getBodyAsStream() throws IOException
OAuthMessage
getBodyAsStream
in class OAuthMessage
IOException
public String getBodyEncoding()
OAuthMessage
getBodyEncoding
in class OAuthMessage
public void requireParameters(String... names) throws OAuthProblemException, IOException
OAuthMessage
requireParameters
in class OAuthMessage
OAuthProblemException
- one or more parameters are absent.IOException
public OAuthProblemException toOAuthProblemException() throws IOException
IOException
protected void completeParameters() throws IOException
OAuthMessage
completeParameters
in class OAuthMessage
IOException
protected void dump(Map<String,Object> into) throws IOException
dump
in class OAuthMessage
IOException
Copyright © 2023. All rights reserved.