public class RequestContext extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected List<RequestCleanupHandler> |
cleanupHandlers |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
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, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected List<RequestCleanupHandler> cleanupHandlers
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 © 2018 Nuxeo. All rights reserved.