public class WebSessionKey extends DefaultSessionKeyimplements RequestPairSource
SessionKey implementation that also retains the
ServletRequest and
ServletResponse associated with the web request that is performing the session lookup.
| Constructor and Description |
|---|
WebSessionKey(Serializable
|
WebSessionKey(ServletRequest request, ServletResponse response)
|
| Modifier and Type | Method and Description |
|---|---|
ServletRequest |
getServletRequest()
Returns the incoming
ServletRequest associated with the component.
|
ServletResponse |
getServletResponse()
Returns the outgoing
ServletResponse paired with the incoming
servletRequest.
|
getSessionId, setSessionIdpublic WebSessionKey(ServletRequest request,
ServletResponse response)public WebSessionKey(SerializablesessionId, ServletRequest request, ServletResponse response)
public ServletRequest getServletRequest()
RequestPairSource
ServletRequest associated with the component.
getServletRequest in interface
RequestPairSource
ServletRequest associated with the component.
public ServletResponse getServletResponse()
RequestPairSource
ServletResponse paired with the incoming
servletRequest.
getServletResponse in interface
RequestPairSource
ServletResponse paired with the incoming
servletRequest.