public interface WebSessionContext extends SessionContext, RequestPairSource
WebSubjectContext
is a SessionContext
that additionally provides for type-safe
methods to set and retrieve a ServletRequest
and ServletResponse
, as the request/response pair will
often need to be referenced during construction of web-initiated Session
instances.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, setSessionId
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
ServletRequest getServletRequest()
ServletRequest
received by the servlet container triggering the creation of the
Session
instance.getServletRequest
in interface RequestPairSource
ServletRequest
received by the servlet container triggering the creation of the
Session
instance.void setServletRequest(ServletRequest request)
ServletRequest
received by the servlet container triggering the creation of the
Session
instance.request
- the ServletRequest
received by the servlet container triggering the creation of the
Session
instance.ServletResponse getServletResponse()
ServletResponse
corresponding to the associated servletRequest
.getServletResponse
in interface RequestPairSource
ServletResponse
corresponding to the associated
servletRequest
.void setServletResponse(ServletResponse response)
ServletResponse
corresponding to the associated servletRequest
.response
- The paired ServletResponse
corresponding to the associated
servletRequest
.Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.