Interface HttpSessionManager

    • Method Detail

      • addListener

        <T extends EventListener> void addListener​(T listener)
        Add a listener.
        Type Parameters:
        T - the type.
        Parameters:
        listener - the listener.
      • attributeAdded

        void attributeAdded​(HttpSession session,
                            String name,
                            Object value)
        Attribute added.
        Parameters:
        session - the HTTP session.
        name - the name.
        value - the value.
      • attributeRemoved

        void attributeRemoved​(HttpSession session,
                              String name)
        Attribute removed.
        Parameters:
        session - the HTTP session.
        name - the name.
      • attributeReplaced

        void attributeReplaced​(HttpSession session,
                               String name,
                               Object value)
        Attribute replaced.
        Parameters:
        session - the HTTP session.
        name - the name.
        value - the value.
      • changeSessionId

        String changeSessionId​(HttpServletRequest request)
        Change the session id and return it.
        Parameters:
        request - the request.
        Returns:
        the session id.
      • createSession

        HttpSession createSession​(WebApplication webApplication,
                                  HttpServletRequest request)
        Create a session.
        Parameters:
        webApplication - the web application.
        request - the request.
        Returns:
        the session.
      • destroySession

        void destroySession​(HttpSession session)
        Destroys a session.
        Parameters:
        session - the HTTP session.
      • encodeRedirectURL

        String encodeRedirectURL​(HttpServletResponse response,
                                 String url)
        Encode the redirect URL.
        Parameters:
        response - the HTTP servlet response.
        url - the URL.
        Returns:
        the encode URL.
      • encodeURL

        String encodeURL​(HttpServletResponse response,
                         String url)
        Encode the URL.
        Parameters:
        response - the HTTP servlet response.
        url - the URL.
        Returns:
        the encoded URL.
      • getDefaultSessionTrackingModes

        Set<SessionTrackingMode> getDefaultSessionTrackingModes()
        Get the default session tracking modes.
        Returns:
        the default session tracking modes.
      • getEffectiveSessionTrackingModes

        Set<SessionTrackingMode> getEffectiveSessionTrackingModes()
        Get the effective session tracking modes.
        Returns:
        the effective session tracking modes.
      • getSession

        HttpSession getSession​(WebApplication webApplication,
                               HttpServletRequest request,
                               String currentSessionId)
        Get the session.
        Parameters:
        webApplication - the web application.
        request - the request.
        currentSessionId - the current session id.
        Returns:
        the session.
      • getSessionCookieConfig

        SessionCookieConfig getSessionCookieConfig()
        Get the session cookie config.
        Returns:
        the session cookie config.
      • getSessionTimeout

        int getSessionTimeout()
        Get the session timeout (in minutes).
        Returns:
        the session timeout.
      • hasSession

        boolean hasSession​(String sessionId)
        Is the session manager handling this session?
        Parameters:
        sessionId - the session id.
        Returns:
        true if there is a session with the given session id.
      • setSessionTimeout

        void setSessionTimeout​(int timeout)
        Set the session timeout (in minutes).
        Parameters:
        timeout - the timeout.
      • setSessionTrackingModes

        void setSessionTrackingModes​(Set<SessionTrackingMode> sessionTrackingModes)
        Set the session tracking modes.
        Parameters:
        sessionTrackingModes - the session tracking modes.