public class RequestContext extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RequestContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(javax.servlet.ServletRequest request) |
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static RequestContext getActiveContext()
public static RequestContext getActiveContext(javax.servlet.ServletRequest request)
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public Principal getUserPrincipal()
public void addRequestCleanupHandler(RequestCleanupHandler handler)
public boolean removeCleanupHandler(RequestCleanupHandler handler)
public void dispose()
Copyright © 2015 Nuxeo SA. All rights reserved.