Class RequestContext
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
An HTTP request context
- Author:
- Bogdan Stefanescu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Modifier and TypeFieldDescriptionprotected List<RequestCleanupHandler>
protected javax.servlet.http.HttpServletRequest
protected javax.servlet.http.HttpServletResponse
-
Constructor Summary
ConstructorDescriptionRequestContext
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dispose()
<T> T
static RequestContext
static RequestContext
getActiveContext
(javax.servlet.ServletRequest request) javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
boolean
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
request
protected javax.servlet.http.HttpServletRequest request -
response
protected javax.servlet.http.HttpServletResponse response -
cleanupHandlers
-
-
Constructor Details
-
RequestContext
public RequestContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
Method Details
-
getActiveContext
-
getActiveContext
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest() -
getResponse
public javax.servlet.http.HttpServletResponse getResponse() -
getUserPrincipal
-
get
-
addRequestCleanupHandler
-
removeCleanupHandler
-
dispose
public void dispose()
-