public class HashSessionManager extends AbstractSessionManager
| Modifier and Type | Class and Description |
|---|---|
protected class |
HashSessionManager.ClassLoadingObjectInputStream |
protected class |
HashSessionManager.Session |
AbstractSessionManager.NullSessionContext, AbstractSessionManager.SessionIf| Modifier and Type | Field and Description |
|---|---|
protected Map |
_sessions |
__distantFuture, _context, _dftMaxIdleSecs, _httpOnly, _loader, _maxCookieAge, _maxSessions, _minSessions, _nodeIdInSessionId, _refreshCookieAge, _secureCookies, _sessionAttributeListeners, _sessionCookie, _sessionDomain, _sessionHandler, _sessionIdManager, _sessionListeners, _sessionPath, _sessionURL, _sessionURLPrefix__DefaultSessionCookie, __DefaultSessionDomain, __DefaultSessionURL, __MaxAgeProperty, __SessionCookieProperty, __SessionDomainProperty, __SessionPathProperty, __SessionURLProperty| Constructor and Description |
|---|
HashSessionManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSession(AbstractSessionManager.Session session) |
void |
doStart() |
void |
doStop() |
int |
getSavePeriod() |
int |
getScavengePeriod() |
AbstractSessionManager.Session |
getSession(String idInCluster)
Get a known existingsession
|
Map |
getSessionMap() |
int |
getSessions() |
File |
getStoreDirectory() |
protected void |
invalidateSessions() |
boolean |
isLazyLoad() |
protected AbstractSessionManager.Session |
newSession(HttpServletRequest request)
Create a new session instance
|
protected void |
removeSession(String clusterId) |
HashSessionManager.Session |
restoreSession(FileInputStream fis) |
void |
restoreSessions() |
void |
saveSessions() |
void |
setLazyLoad(boolean lazyLoad) |
void |
setMaxInactiveInterval(int seconds) |
void |
setSavePeriod(int seconds) |
void |
setScavengePeriod(int seconds) |
void |
setStoreDirectory(File dir) |
access, addEventListener, addSession, clearEventListeners, complete, getClusterId, getHttpOnly, getHttpSession, getIdManager, getMaxCookieAge, getMaxInactiveInterval, getMaxSessions, getMetaManager, getMinSessions, getNodeId, getRefreshCookieAge, getSecureCookies, getSessionCookie, getSessionCookie, getSessionDomain, getSessionHandler, getSessionPath, getSessionURL, getSessionURLPrefix, isNodeIdInSessionId, isUsingCookies, isValid, newHttpSession, removeEventListener, removeSession, removeSession, resetStats, setHttpOnly, setIdManager, setMaxCookieAge, setMetaManager, setNodeIdInSessionId, setRefreshCookieAge, setSecureCookies, setSessionCookie, setSessionDomain, setSessionHandler, setSessionPath, setSessionURL, setUsingCookiesaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopprotected Map _sessions
public void doStart()
throws Exception
doStart in class AbstractSessionManagerExceptionpublic void doStop()
throws Exception
doStop in class AbstractSessionManagerExceptionpublic int getScavengePeriod()
public Map getSessionMap()
getSessionMap in class AbstractSessionManagerpublic int getSessions()
getSessions in class AbstractSessionManagerpublic void setMaxInactiveInterval(int seconds)
setMaxInactiveInterval in interface SessionManagersetMaxInactiveInterval in class AbstractSessionManagerpublic void setSavePeriod(int seconds)
public int getSavePeriod()
public void setScavengePeriod(int seconds)
seconds - protected void addSession(AbstractSessionManager.Session session)
addSession in class AbstractSessionManagerpublic AbstractSessionManager.Session getSession(String idInCluster)
AbstractSessionManagergetSession in class AbstractSessionManageridInCluster - The session ID in the cluster, stripped of any worker name.protected void invalidateSessions()
invalidateSessions in class AbstractSessionManagerprotected AbstractSessionManager.Session newSession(HttpServletRequest request)
AbstractSessionManagernewSession in class AbstractSessionManagerprotected void removeSession(String clusterId)
removeSession in class AbstractSessionManagerpublic void setStoreDirectory(File dir)
public File getStoreDirectory()
public void setLazyLoad(boolean lazyLoad)
public boolean isLazyLoad()
public HashSessionManager.Session restoreSession(FileInputStream fis) throws Exception
ExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.