Class 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:
    Serialized Form
    • Constructor Detail

      • WebSessionKey

        public WebSessionKey​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response)
      • WebSessionKey

        public WebSessionKey​(Serializable sessionId,
                             javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response)
    • Method Detail

      • getServletRequest

        public javax.servlet.ServletRequest getServletRequest()
        Description copied from interface: RequestPairSource
        Returns the incoming ServletRequest associated with the component.
        Specified by:
        getServletRequest in interface RequestPairSource
        Returns:
        the incoming ServletRequest associated with the component.