Package com.atlassian.oauth
Class Request
java.lang.Object
com.atlassian.oauth.Request
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of the HTTP methods that may be used when making OAuth requests.static classRepresentation of parameters that may be added to an HTTP request. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRequest(Request.HttpMethod method, URI uri, Iterable<Request.Parameter> parameters) -
Method Summary
Modifier and TypeMethodDescriptionReturns the HTTP method to use when making the request - either GET or POST.getParameter(String parameterName) Returns the value of the parameter.Returns the parameters to be sent as part of the request.getUri()Returns theURIto make the request to.
-
Field Details
-
OAUTH_SESSION_HANDLE
- See Also:
-
OAUTH_EXPIRES_IN
- See Also:
-
OAUTH_AUTHORIZATION_EXPIRES_IN
- See Also:
-
-
Constructor Details
-
Request
-
-
Method Details
-
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
Returns theURIto make the request to.- Returns:
- the
URIto make the request to.
-
getParameters
Returns the parameters to be sent as part of the request.- Returns:
- the parameters to be sent as part of the request
-
getParameter
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
-