Class DefaultSessionManager


  • public class DefaultSessionManager
    extends SessionManager
    DefaultSessionManager provides a base class for session management. After a successful authentication, this class sets the session id that is set for the login servlet to the user name. After logout the session id attribute is removed from the session. This class is used by default if no custom session manager has been set.
    Version:
    $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
    Author:
    Middleware Services
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void login​(javax.servlet.http.HttpSession session, java.lang.String user)
      This performs any actions necessary to login the suppled user.
      void logout​(javax.servlet.http.HttpSession session)
      This performs any actions necessary to logout the suppled session.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSessionManager

        public DefaultSessionManager()
    • Method Detail

      • login

        public void login​(javax.servlet.http.HttpSession session,
                          java.lang.String user)
                   throws javax.servlet.ServletException
        This performs any actions necessary to login the suppled user.
        Specified by:
        login in class SessionManager
        Parameters:
        session - HttpSession
        user - String
        Throws:
        javax.servlet.ServletException - if an error occurs initializing the session
      • logout

        public void logout​(javax.servlet.http.HttpSession session)
                    throws javax.servlet.ServletException
        This performs any actions necessary to logout the suppled session.
        Specified by:
        logout in class SessionManager
        Parameters:
        session - HttpSession
        Throws:
        javax.servlet.ServletException - if an error occurs cleaning up the session