Package org.scribe.model
Class OAuthRequest
java.lang.Object
org.scribe.model.Request
org.scribe.model.OAuthRequest
The representation of an OAuth HttpRequest.
Adds OAuth-related functionality to the
Request-
Field Summary
Fields inherited from class org.scribe.model.Request
DEFAULT_CONTENT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOAuthParameter(String key, String value) Adds an OAuth parameter.Returns theMapcontaining the key-value pair of parameters.toString()Methods inherited from class org.scribe.model.Request
addBodyParameter, addHeader, addPayload, addPayload, addQuerystringParameter, getBodyContents, getBodyParams, getCharset, getCompleteUrl, getHeaders, getQueryStringParams, getSanitizedUrl, getUrl, getVerb, send, send, setCharset, setConnectionKeepAlive, setConnectTimeout, setFollowRedirects, setReadTimeout
-
Constructor Details
-
OAuthRequest
Default constructor.- Parameters:
verb- Http verb/methodurl- resource URL
-
-
Method Details
-
addOAuthParameter
Adds an OAuth parameter.- Parameters:
key- name of the parametervalue- value of the parameter- Throws:
IllegalArgumentException- if the parameter is not an OAuth parameter
-
getOauthParameters
Returns theMapcontaining the key-value pair of parameters.- Returns:
- parameters as map
-
toString
-