Class OAuthServerRequest
java.lang.Object
org.glassfish.jersey.server.oauth1.internal.OAuthServerRequest
- All Implemented Interfaces:
OAuth1Request
Wraps a Jersey
ContainerRequestContext object, implementing the
OAuth signature library OAuth1Request interface.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuthServerRequest(javax.ws.rs.container.ContainerRequestContext context) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHeaderValue(String name, String value) Adds a header with the given name and value.getHeaderValues(String name) Returns the value(s) of the specified request header.getParameterValues(String name) Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.Returns the URL of the request, including protocol, server name, optional port number, and server path.
-
Field Details
-
context
private final javax.ws.rs.container.ContainerRequestContext context -
EMPTY_SET
-
EMPTY_LIST
-
formParams
-
-
Constructor Details
-
OAuthServerRequest
public OAuthServerRequest(javax.ws.rs.container.ContainerRequestContext context) Create a new instance.- Parameters:
context- Container request context.
-
-
Method Details
-
getRequestMethod
Description copied from interface:OAuth1RequestReturns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.- Specified by:
getRequestMethodin interfaceOAuth1Request- Returns:
- the name of the method with which this request was made.
-
getRequestURL
Description copied from interface:OAuth1RequestReturns the URL of the request, including protocol, server name, optional port number, and server path.- Specified by:
getRequestURLin interfaceOAuth1Request- Returns:
- the request URL.
-
keys
-
values
-
getParameterNames
Description copied from interface:OAuth1Request- Specified by:
getParameterNamesin interfaceOAuth1Request- Returns:
- the names of the parameters.
-
getParameterValues
Description copied from interface:OAuth1RequestReturns anListofStringobjects containing the values of the specified request parameter, or null if the parameter does not exist. For HTTP requests, parameters are contained in the query string and/or posted form data.- Specified by:
getParameterValuesin interfaceOAuth1Request- Parameters:
name- the name of the parameter.- Returns:
- the values of the parameter.
-
getHeaderValues
Description copied from interface:OAuth1RequestReturns the value(s) of the specified request header. If the request did not include a header of the specified name, this method returns null.- Specified by:
getHeaderValuesin interfaceOAuth1Request- Parameters:
name- the header name.- Returns:
- the value(s) of the requested header, or null if none exist.
-
addHeaderValue
Description copied from interface:OAuth1RequestAdds a header with the given name and value.- Specified by:
addHeaderValuein interfaceOAuth1Request- Parameters:
name- the name of the header.value- the header value.- Throws:
IllegalStateException- if this method cannot be implemented.
-