EAF 7.4 Implementation

com.lutris.appserver.server.sessionEnhydra
Class SimpleServletSessionManager

java.lang.Object
  extended by com.lutris.appserver.server.sessionEnhydra.StandardSessionManager
      extended by com.lutris.appserver.server.sessionEnhydra.SimpleServletSessionManager
All Implemented Interfaces:
com.lutris.appserver.server.session.SessionManager, com.lutris.appserver.server.sessionEnhydra.StandardSessionIdleHandler

public class SimpleServletSessionManager
extends StandardSessionManager

This session manager extends StandardSessionManager it obtains SessionId from the servletContainer and uses it to create a new Enhydra session

Version:
$Revision: 1.3 $
Author:
DT

Field Summary
 
Fields inherited from class com.lutris.appserver.server.sessionEnhydra.StandardSessionManager
CFG_EMPTY_SESSION_PATH, CFG_ENCODE_FIRST_URL, CFG_ENCODE_URL_STATE, CFG_IDLE, CFG_LIFE, CFG_NOUSER_IDLE, CFG_RANDOM, CFG_SCAN, CFG_SESSION_HOME, CFG_SESSION_HOME_TYPE, defaultEmptySessionPath, defaultEncodeUrlState, defaultIdleScanInterval, defaultMaxSessionIdleTime, defaultMaxSessionLifeTime, defaultRandomizerIntervals, emptySessionPath, ENCODE_RANDOM_NO, ENCODE_RANDOM_YES, ENCODE_URL_ALWAYS, ENCODE_URL_AUTO, ENCODE_URL_NEVER, encodeFirstUrl, encodeUrlState, maxNoUserSessionIdleTime, maxSessionIdleTime, maxSessions, maxSessionsDate, mode, MODE_BASIC, MODE_CUSTOM, MODE_PAGE_TO_DB, MODE_PAGE_TO_DISK, scanInterval, SESSION_ACTIVE, SESSION_EXPLICT_DELETE, SESSION_IDLE_EXPIRE, SESSION_MAX_TIME, sessionHome
 
Constructor Summary
SimpleServletSessionManager()
           
SimpleServletSessionManager(com.lutris.appserver.server.Application application, com.lutris.util.Config config, com.lutris.logging.LogChannel sessionMgrLogChannel)
          Creates a new SessionManager object.
SimpleServletSessionManager(java.lang.ClassLoader classLoader, com.lutris.util.Config config, com.lutris.logging.LogChannel sessionMgrLogChannel)
          Creates a new SessionManager object.
 
Method Summary
 com.lutris.appserver.server.session.Session createSession(HttpPresentationComms comms)
          Create a new Session object.
 
Methods inherited from class com.lutris.appserver.server.sessionEnhydra.StandardSessionManager
activeSessionCount, cleanUpIdleSessions, createSession, createSession, debug, deleteSession, deleteSession, getEmptySessionPath, getEncodeFirstUrl, getEncodeUrlState, getMaxNoUserSessionIdleTime, getMaxSessionIdleTime, getMaxSessionLifeTime, getMode, getSaveSession, getSession, getSession, getSession, getSessionKeys, getSessionKeys, isSessionExpired, loadSessionHome, loadSessionUserTable, maxSessionCount, maxSessionCountDate, newSession, pagedSessionCount, passivateSession, registerUser, resetMaxSessionCount, sessionDeleted, sessionExists, setMaxSessionIdleTime, shutdown, unregisterUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServletSessionManager

public SimpleServletSessionManager()

SimpleServletSessionManager

public SimpleServletSessionManager(com.lutris.appserver.server.Application application,
                                   com.lutris.util.Config config,
                                   com.lutris.logging.LogChannel sessionMgrLogChannel)
                            throws com.lutris.util.ConfigException,
                                   com.lutris.appserver.server.session.SessionException
Creates a new SessionManager object. This constructor will first looks for the session manager configuration parameters that have the specified configuration prefix prepended to the standard session manager configuration option.

Parameters:
app - the application associate with this session manager.
config - Object parsed from configuration file. This should be for the section constaining the session manager configuration.
sessionMgrLogChannel - If not null, channel to log debugging information to.
Throws:
com.lutris.util.ConfigException - signifies a problem in the configuration file.
com.lutris.appserver.server.session.SessionException - if all classes (Home and UserTable) couldn't be loaded by the session manager.

SimpleServletSessionManager

public SimpleServletSessionManager(java.lang.ClassLoader classLoader,
                                   com.lutris.util.Config config,
                                   com.lutris.logging.LogChannel sessionMgrLogChannel)
                            throws com.lutris.util.ConfigException,
                                   com.lutris.appserver.server.session.SessionException
Creates a new SessionManager object. This constructor will first looks for the session manager configuration parameters that have the specified configuration prefix prepended to the standard session manager configuration option.

Parameters:
app - the ClassLoader associate with this application.
config - Object parsed from configuration file. This should be for the section constaining the session manager configuration.
sessionMgrLogChannel - If not null, channel to log debugging information to.
Throws:
com.lutris.util.ConfigException - signifies a problem in the configuration file.
com.lutris.appserver.server.session.SessionException - if all classes (Home and UserTable) couldn't be loaded by the session manager.
Method Detail

createSession

public com.lutris.appserver.server.session.Session createSession(HttpPresentationComms comms)
                                                          throws com.lutris.appserver.server.session.SessionException
Create a new Session object.

Specified by:
createSession in interface com.lutris.appserver.server.session.SessionManager
Overrides:
createSession in class StandardSessionManager
Parameters:
comms - the HttpPresentationComms object used for geting existing Session object ID.
Returns:
session The new Session object.
Throws:
com.lutris.appserver.server.session.SessionException - if the session cannot be created.
See Also:
Session

EAF 7.4 Implementation