Package org.scribe.model
Class OAuthRequest
- java.lang.Object
-
- org.scribe.model.Request
-
- org.scribe.model.OAuthRequest
-
-
Field Summary
-
Fields inherited from class org.scribe.model.Request
DEFAULT_CONTENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description OAuthRequest(Verb verb, java.lang.String url)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOAuthParameter(java.lang.String key, java.lang.String value)
Adds an OAuth parameter.java.util.Map<java.lang.String,java.lang.String>
getOauthParameters()
Returns theMap
containing the key-value pair of parameters.java.lang.String
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 Detail
-
OAuthRequest
public OAuthRequest(Verb verb, java.lang.String url)
Default constructor.- Parameters:
verb
- Http verb/methodurl
- resource URL
-
-
Method Detail
-
addOAuthParameter
public void addOAuthParameter(java.lang.String key, java.lang.String value)
Adds an OAuth parameter.- Parameters:
key
- name of the parametervalue
- value of the parameter- Throws:
java.lang.IllegalArgumentException
- if the parameter is not an OAuth parameter
-
getOauthParameters
public java.util.Map<java.lang.String,java.lang.String> getOauthParameters()
Returns theMap
containing the key-value pair of parameters.- Returns:
- parameters as map
-
-