public class RequestContext extends Object
| Constructor and Description |
|---|
RequestContext(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.SecurityContext securityContext,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.MediaType consumeMediaType,
javax.ws.rs.core.MediaType produceMediaType)
Creates the resource implementation for a request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthID()
Retrieve the HTTP authenticated user ID.
|
javax.ws.rs.core.MediaType |
getConsumeMediaType()
Retrieve the media type to be consumed.
|
long |
getContentLength()
Retrieve the value of the HTTP Content-Length header.
|
javax.ws.rs.core.HttpHeaders |
getHeaders()
Retrieve the request headers.
|
String |
getOrigin()
Retrieve the value of the HTTP Origin header.
|
javax.ws.rs.core.MediaType |
getProduceMediaType()
Retrieve the media type to be produced.
|
javax.servlet.http.HttpServletRequest |
getRequest()
Retrieve the servlet context of the request.
|
javax.ws.rs.core.SecurityContext |
getSecurityContext()
Retrieve the security context for the request.
|
javax.ws.rs.core.UriInfo |
getUriInfo()
Retrieve the URI info for the request.
|
public RequestContext(javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.MediaType consumeMediaType, javax.ws.rs.core.MediaType produceMediaType)
request - The servlet context for the request.securityContext - The HTTP servlet request.headers - The request headers.uriInfo - The URI info for the request.consumeMediaType - The media type to be consumed, if any.produceMediaType - The media type to be produced, if any.public javax.servlet.http.HttpServletRequest getRequest()
public javax.ws.rs.core.SecurityContext getSecurityContext()
public javax.ws.rs.core.HttpHeaders getHeaders()
public javax.ws.rs.core.UriInfo getUriInfo()
public String getAuthID()
public String getOrigin()
public javax.ws.rs.core.MediaType getConsumeMediaType()
public javax.ws.rs.core.MediaType getProduceMediaType()
public long getContentLength()
Copyright © 2011–2016 UnboundID. All rights reserved.