public class WebSessionKey extends DefaultSessionKey implements 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 sessionId,
ServletRequest request,
ServletResponse response) |
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, setSessionId
public WebSessionKey(ServletRequest request, ServletResponse response)
public WebSessionKey(Serializable sessionId, 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
.Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.