Class Request

java.lang.Object
com.atlassian.oauth.Request

@Immutable public class Request extends Object
Represents an HTTP request. An HTTP request consists of the HTTP method - GET or POST in this case, the URI, and any parameters to be sent.
  • Field Details

  • Constructor Details

  • Method Details

    • getMethod

      public Request.HttpMethod getMethod()
      Returns the HTTP method to use when making the request - either GET or POST.
      Returns:
      the HTTP method to use when making the request
    • getUri

      public URI getUri()
      Returns the URI to make the request to.
      Returns:
      the URI to make the request to.
    • getParameters

      public Iterable<Request.Parameter> getParameters()
      Returns the parameters to be sent as part of the request.
      Returns:
      the parameters to be sent as part of the request
    • getParameter

      public String getParameter(String parameterName)
      Returns the value of the parameter. If there are multiple parameters for the value, only the first is returned.
      Returns:
      the value of the parameter