public class DefaultWebSessionContext extends DefaultSessionContextimplements WebSessionContext
WebSessionContext interface which provides getters and setters that wrap interaction with the underlying backing context map.
| Constructor and Description |
|---|
DefaultWebSessionContext()
|
DefaultWebSessionContext(Map
|
| Modifier and Type | Method and Description |
|---|---|
ServletRequest |
getServletRequest()
Returns the
ServletRequest received by the servlet container triggering the creation of the
Session instance.
|
ServletResponse |
getServletResponse()
The paired
ServletResponse corresponding to the associated
servletRequest.
|
void |
setServletRequest(ServletRequest request)
Sets the
ServletRequest received by the servlet container triggering the creation of the
Session instance.
|
void |
setServletResponse(ServletResponse response)
Sets the paired
ServletResponse corresponding to the associated
servletRequest.
|
getHost, getSessionId, setHost, setSessionIdclear, containsKey, containsValue, entrySet, get, getTypedValue, isEmpty, keySet, nullSafePut, put, putAll, remove, size, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHost, getSessionId, setHost, setSessionIdclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic void setServletRequest(ServletRequest request)
WebSessionContext
ServletRequest received by the servlet container triggering the creation of the
Session instance.
setServletRequest in interface
WebSessionContext
request - the
ServletRequest received by the servlet container triggering the creation of the
Session instance.
public ServletRequest getServletRequest()
WebSessionContext
ServletRequest received by the servlet container triggering the creation of the
Session instance.
getServletRequest in interface
WebSessionContext
getServletRequest in interface
RequestPairSource
ServletRequest received by the servlet container triggering the creation of the
Session instance.
public void setServletResponse(ServletResponse response)
WebSessionContext
ServletResponse corresponding to the associated
servletRequest.
setServletResponse in interface
WebSessionContext
response - The paired
ServletResponse corresponding to the associated
servletRequest.
public ServletResponse getServletResponse()
WebSessionContext
ServletResponse corresponding to the associated
servletRequest.
getServletResponse in interface
WebSessionContext
getServletResponse in interface
RequestPairSource
ServletResponse corresponding to the associated
servletRequest.