|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.oauth.server.OAuthServerRequest
public class OAuthServerRequest
Wraps a Jersey HttpRequestContext
object, implementing the
OAuth signature library OAuthRequest
interface.
Constructor Summary | |
---|---|
OAuthServerRequest(HttpRequestContext context)
|
Method Summary | |
---|---|
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()
Returns an Set of String objects containing the
names of the parameters contained in the request. |
List<String> |
getParameterValues(String name)
Returns an List of String objects containing the
values of the specified request parameter, or null if the parameter does
not exist. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OAuthServerRequest(HttpRequestContext context)
Method Detail |
---|
public String getRequestMethod()
OAuthRequest
getRequestMethod
in interface OAuthRequest
public URL getRequestURL()
OAuthRequest
getRequestURL
in interface OAuthRequest
public Set<String> getParameterNames()
OAuthRequest
Set
of String
objects containing the
names of the parameters contained in the request.
getParameterNames
in interface OAuthRequest
public List<String> getParameterValues(String name)
OAuthRequest
List
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 OAuthRequest
name
- the name of the parameter.
public List<String> getHeaderValues(String name)
OAuthRequest
getHeaderValues
in interface OAuthRequest
name
- the header name.
public void addHeaderValue(String name, String value) throws IllegalStateException
OAuthRequest
addHeaderValue
in interface OAuthRequest
name
- the name of the header.value
- the header value.
IllegalStateException
- if this method cannot be implemented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |