|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpRequestContext
An abstraction for a HTTP request
| Field Summary |
|---|
| Fields inherited from interface javax.ws.rs.core.SecurityContext |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Method Summary | ||
|---|---|---|
javax.ws.rs.core.MediaType |
getAcceptableMediaType(java.util.List<javax.ws.rs.core.MediaType> mediaTypes)
Select the first media type, from a list of media types, that is most acceptable according to the requested acceptable media types. |
|
|
getEntity(java.lang.Class<T> type)
Get the request entity, returns null if the request does not contain an entity body. |
|
java.lang.String |
getHeaderValue(java.lang.String name)
Get a HTTP header value. |
|
java.lang.String |
getHttpMethod()
Get the HTTP method name |
|
| Methods inherited from interface javax.ws.rs.core.HttpHeaders |
|---|
getAcceptableMediaTypes, getCookies, getLanguage, getMediaType, getRequestHeaders |
| Methods inherited from interface javax.ws.rs.core.UriInfo |
|---|
getAbsolutePath, getAbsolutePathBuilder, getBaseUri, getBaseUriBuilder, getPath, getPath, getPathSegments, getPathSegments, getQueryParameters, getQueryParameters, getRequestUri, getRequestUriBuilder, getTemplateParameters, getTemplateParameters |
| Methods inherited from interface javax.ws.rs.core.Request |
|---|
evaluatePreconditions, evaluatePreconditions, evaluatePreconditions, selectVariant |
| Methods inherited from interface javax.ws.rs.core.SecurityContext |
|---|
getAuthenticationScheme, getUserPrincipal, isSecure, isUserInRole |
| Method Detail |
|---|
java.lang.String getHeaderValue(java.lang.String name)
name - the HTTP header
javax.ws.rs.core.MediaType getAcceptableMediaType(java.util.List<javax.ws.rs.core.MediaType> mediaTypes)
mediaTypes - the list of media types
<T> T getEntity(java.lang.Class<T> type)
throws java.lang.IllegalArgumentException
type - the type of entity
java.lang.IllegalArgumentException - if the content of the request
cannot be mapped to an entity of the requested typejava.lang.String getHttpMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||