Class OAuthRequest


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

      • OAuthRequest

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

      • 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