Class DefaultWebSessionContext

java.lang.Object
org.apache.shiro.util.MapContext
org.apache.shiro.session.mgt.DefaultSessionContext
org.apache.shiro.web.session.mgt.DefaultWebSessionContext
All Implemented Interfaces:
Serializable, Map<String,Object>, org.apache.shiro.session.mgt.SessionContext, WebSessionContext, RequestPairSource

public class DefaultWebSessionContext extends org.apache.shiro.session.mgt.DefaultSessionContext implements WebSessionContext
Default implementation of the WebSessionContext interface which provides getters and setters that wrap interaction with the underlying backing context map.
Since:
1.0
See Also:
  • Constructor Details

    • DefaultWebSessionContext

      public DefaultWebSessionContext()
    • DefaultWebSessionContext

      public DefaultWebSessionContext(Map<String,Object> map)
  • Method Details

    • setServletRequest

      public void setServletRequest(javax.servlet.ServletRequest request)
      Description copied from interface: WebSessionContext
      Sets the ServletRequest received by the servlet container triggering the creation of the Session instance.
      Specified by:
      setServletRequest in interface WebSessionContext
      Parameters:
      request - the ServletRequest received by the servlet container triggering the creation of the Session instance.
    • getServletRequest

      public javax.servlet.ServletRequest getServletRequest()
      Description copied from interface: WebSessionContext
      Returns the ServletRequest received by the servlet container triggering the creation of the Session instance.
      Specified by:
      getServletRequest in interface RequestPairSource
      Specified by:
      getServletRequest in interface WebSessionContext
      Returns:
      the ServletRequest received by the servlet container triggering the creation of the Session instance.
    • setServletResponse

      public void setServletResponse(javax.servlet.ServletResponse response)
      Description copied from interface: WebSessionContext
      Sets the paired ServletResponse corresponding to the associated servletRequest.
      Specified by:
      setServletResponse in interface WebSessionContext
      Parameters:
      response - The paired ServletResponse corresponding to the associated servletRequest.
    • getServletResponse

      public javax.servlet.ServletResponse getServletResponse()
      Description copied from interface: WebSessionContext
      The paired ServletResponse corresponding to the associated servletRequest.
      Specified by:
      getServletResponse in interface RequestPairSource
      Specified by:
      getServletResponse in interface WebSessionContext
      Returns:
      the paired ServletResponse corresponding to the associated servletRequest.