Interface SessionManager

  • All Known Implementing Classes:
    DefaultSessionManager

    public interface SessionManager
    HTTP session manager abstraction responsible for keeping track of HTTP session associated with a user Request.
    Since:
    2.3.17
    • Method Detail

      • getSession

        Session getSession​(Request request,
                           String requestedSessionId)
        Return the session associated with this Request, creating one if necessary and requested.
        Parameters:
        request - Request
        requestedSessionId - the session id associated with the Request
        Returns:
        Session
      • changeSessionId

        String changeSessionId​(Request request,
                               Session session)
        Change the Session id and return the original id.
        Parameters:
        request - Request
        session - Session
        Returns:
        the old session id
      • configureSessionCookie

        void configureSessionCookie​(Request request,
                                    org.glassfish.grizzly.http.Cookie cookie)
        Configure session cookie before adding it to the Request.getResponse().
        Parameters:
        request -
        cookie -
      • setSessionCookieName

        void setSessionCookieName​(String name)
        Set the session cookie name that will be used by sessions created by this SessionManager.
        Parameters:
        name - the session cookie name
        Since:
        2.3.29
      • getSessionCookieName

        String getSessionCookieName()
        Returns:
        the session cookie name
        Since:
        2.3.29