Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.jaxrs.context
Class RequestContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.nuxeo.ecm.webengine.jaxrs.context.RequestContext
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class RequestContext
extends HashMap<String,Object>

An HTTP request context

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
RequestContext(HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 void addRequestCleanupHandler(RequestCleanupHandler handler)
           
 void dispose()
           
<T> T
get(String key, Class<T> type)
           
static RequestContext getActiveContext()
           
static RequestContext getActiveContext(ServletRequest request)
           
 HttpServletRequest getRequest()
           
 HttpServletResponse getResponse()
           
 Principal getUserPrincipal()
           
 boolean removeCleanupHandler(RequestCleanupHandler handler)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RequestContext

public RequestContext(HttpServletRequest request,
                      HttpServletResponse response)
Method Detail

getActiveContext

public static RequestContext getActiveContext()

getActiveContext

public static RequestContext getActiveContext(ServletRequest request)

getRequest

public HttpServletRequest getRequest()

getResponse

public HttpServletResponse getResponse()

getUserPrincipal

public Principal getUserPrincipal()

get

public <T> T get(String key,
                 Class<T> type)

addRequestCleanupHandler

public void addRequestCleanupHandler(RequestCleanupHandler handler)

removeCleanupHandler

public boolean removeCleanupHandler(RequestCleanupHandler handler)

dispose

public void dispose()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.