public class WebSessionKey extends org.apache.shiro.session.mgt.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,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
WebSessionKey(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.ServletRequest |
getServletRequest()
Returns the incoming
ServletRequest associated with the component. |
javax.servlet.ServletResponse |
getServletResponse()
Returns the outgoing
ServletResponse paired with the incoming
servletRequest. |
public WebSessionKey(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
public WebSessionKey(Serializable sessionId, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
public javax.servlet.ServletRequest getServletRequest()
RequestPairSourceServletRequest associated with the component.getServletRequest in interface RequestPairSourceServletRequest associated with the component.public javax.servlet.ServletResponse getServletResponse()
RequestPairSourceServletResponse paired with the incoming
servletRequest.getServletResponse in interface RequestPairSourceServletResponse paired with the incoming
servletRequest.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.