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,
                            java.lang.String url)
        Default constructor.
        Parameters:
        verb - Http verb/method
        url - 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 parameter
        value - 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 the Map containing the key-value pair of parameters.
        Returns:
        parameters as map
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Request