Class OAuthRequest

java.lang.Object
org.scribe.model.Request
org.scribe.model.OAuthRequest

public class OAuthRequest extends Request
The representation of an OAuth HttpRequest. Adds OAuth-related functionality to the Request
  • Constructor Details

    • OAuthRequest

      public OAuthRequest(Verb verb, String url)
      Default constructor.
      Parameters:
      verb - Http verb/method
      url - resource URL
  • Method Details

    • addOAuthParameter

      public void addOAuthParameter(String key, String value)
      Adds an OAuth parameter.
      Parameters:
      key - name of the parameter
      value - value of the parameter
      Throws:
      IllegalArgumentException - if the parameter is not an OAuth parameter
    • getOauthParameters

      public Map<String,String> getOauthParameters()
      Returns the Map containing the key-value pair of parameters.
      Returns:
      parameters as map
    • toString

      public String toString()
      Overrides:
      toString in class Request