Package org.apache.shiro.web.session.mgt
Class WebSessionKey
java.lang.Object
org.apache.shiro.session.mgt.DefaultSessionKey
org.apache.shiro.web.session.mgt.WebSessionKey
- All Implemented Interfaces:
Serializable,org.apache.shiro.session.mgt.SessionKey,RequestPairSource
public class WebSessionKey
extends org.apache.shiro.session.mgt.DefaultSessionKey
implements RequestPairSource
A
SessionKey implementation that also retains the
ServletRequest and ServletResponse associated with the web request that is performing the
session lookup.- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebSessionKey(Serializable sessionId, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) WebSessionKey(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.ServletRequestReturns the incomingServletRequestassociated with the component.javax.servlet.ServletResponseReturns the outgoingServletResponsepaired with the incomingservletRequest.Methods inherited from class org.apache.shiro.session.mgt.DefaultSessionKey
getSessionId, setSessionId
-
Constructor Details
-
WebSessionKey
-
WebSessionKey
public WebSessionKey(Serializable sessionId, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
-
Method Details
-
getServletRequest
Description copied from interface:RequestPairSourceReturns the incomingServletRequestassociated with the component.- Specified by:
getServletRequestin interfaceRequestPairSource- Returns:
- the incoming
ServletRequestassociated with the component.
-
getServletResponse
Description copied from interface:RequestPairSourceReturns the outgoingServletResponsepaired with the incomingservletRequest.- Specified by:
getServletResponsein interfaceRequestPairSource- Returns:
- the outgoing
ServletResponsepaired with the incomingservletRequest.
-