public class OAuthServerRequest extends Object implements OAuthRequest
HttpRequestContext object, implementing the
OAuth signature library OAuthRequest interface.| Constructor and Description |
|---|
OAuthServerRequest(HttpRequestContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeaderValue(String name,
String value)
Adds a header with the given name and value.
|
List<String> |
getHeaderValues(String name)
Returns the value(s) of the specified request header.
|
Set<String> |
getParameterNames()
|
List<String> |
getParameterValues(String name)
|
String |
getRequestMethod()
Returns the name of the HTTP method with which this request was made,
for example, GET, POST, or PUT.
|
URL |
getRequestURL()
Returns the URL of the request, including protocol, server name,
optional port number, and server path.
|
public OAuthServerRequest(HttpRequestContext context)
public String getRequestMethod()
OAuthRequestgetRequestMethod in interface OAuthRequestpublic URL getRequestURL()
OAuthRequestgetRequestURL in interface OAuthRequestpublic Set<String> getParameterNames()
OAuthRequestgetParameterNames in interface OAuthRequestpublic List<String> getParameterValues(String name)
OAuthRequestList of String objects 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.getParameterValues in interface OAuthRequestname - the name of the parameter.public List<String> getHeaderValues(String name)
OAuthRequestgetHeaderValues in interface OAuthRequestname - the header name.public void addHeaderValue(String name, String value) throws IllegalStateException
OAuthRequestaddHeaderValue in interface OAuthRequestname - the name of the header.value - the header value.IllegalStateException - if this method cannot be implemented.Copyright © 2016 Oracle Corporation. All rights reserved.