com.unboundid.scim.wink
Class RequestContext

java.lang.Object
  extended by com.unboundid.scim.wink.RequestContext

public class RequestContext
extends Object


Constructor Summary
RequestContext(javax.servlet.ServletContext servletContext, 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.
 
Method Summary
 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.ws.rs.core.SecurityContext getSecurityContext()
          Retrieve the security context for the request.
 javax.servlet.ServletContext getServletContext()
          Retrieve the servlet context of the request.
 javax.ws.rs.core.UriInfo getUriInfo()
          Retrieve the URI info for the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestContext

public RequestContext(javax.servlet.ServletContext servletContext,
                      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.

Parameters:
servletContext - The servlet context for the request.
securityContext - The security context for the 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.
Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()
Retrieve the servlet context of the request.

Returns:
The servlet context of the request.

getSecurityContext

public javax.ws.rs.core.SecurityContext getSecurityContext()
Retrieve the security context for the request.

Returns:
The security context for the request.

getHeaders

public javax.ws.rs.core.HttpHeaders getHeaders()
Retrieve the request headers.

Returns:
The request headers.

getUriInfo

public javax.ws.rs.core.UriInfo getUriInfo()
Retrieve the URI info for the request.

Returns:
The URI info for the request.

getAuthID

public String getAuthID()
Retrieve the HTTP authenticated user ID.

Returns:
The the HTTP authenticated user ID.

getOrigin

public String getOrigin()
Retrieve the value of the HTTP Origin header.

Returns:
The value of the HTTP Origin header.

getConsumeMediaType

public javax.ws.rs.core.MediaType getConsumeMediaType()
Retrieve the media type to be consumed.

Returns:
The media type to be consumed.

getProduceMediaType

public javax.ws.rs.core.MediaType getProduceMediaType()
Retrieve the media type to be produced.

Returns:
The media type to be produced.

getContentLength

public long getContentLength()
Retrieve the value of the HTTP Content-Length header.

Returns:
The value of the HTTP Content-Length header, or -1 if it is not present.


Copyright © 2011-2012 UnboundID. All Rights Reserved.