public class RequestContext extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RequestContext(HttpServletRequest request,
HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
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) |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public RequestContext(HttpServletRequest request, HttpServletResponse response)
public static RequestContext getActiveContext()
public static RequestContext getActiveContext(ServletRequest request)
public HttpServletRequest getRequest()
public HttpServletResponse getResponse()
public Principal getUserPrincipal()
public void addRequestCleanupHandler(RequestCleanupHandler handler)
public boolean removeCleanupHandler(RequestCleanupHandler handler)
public void dispose()
Copyright © 2013 Nuxeo SA. All Rights Reserved.