org.mortbay.jetty.servlet
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 java.util.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(java.lang.String idInCluster)
Get a known existingsession
|
java.util.Map |
getSessionMap() |
int |
getSessions() |
java.io.File |
getStoreDirectory() |
protected void |
invalidateSessions() |
boolean |
isLazyLoad() |
protected AbstractSessionManager.Session |
newSession(HttpServletRequest request)
Create a new session instance
|
protected void |
removeSession(java.lang.String clusterId) |
HashSessionManager.Session |
restoreSession(java.io.FileInputStream fis) |
void |
restoreSessions() |
void |
saveSessions() |
void |
setLazyLoad(boolean lazyLoad) |
void |
setMaxInactiveInterval(int seconds) |
void |
setSavePeriod(int seconds) |
void |
setScavengePeriod(int seconds) |
void |
setStoreDirectory(java.io.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, setUsingCookies
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public void doStart() throws java.lang.Exception
doStart
in class AbstractSessionManager
java.lang.Exception
public void doStop() throws java.lang.Exception
doStop
in class AbstractSessionManager
java.lang.Exception
public int getScavengePeriod()
public java.util.Map getSessionMap()
getSessionMap
in class AbstractSessionManager
public int getSessions()
getSessions
in class AbstractSessionManager
public void setMaxInactiveInterval(int seconds)
setMaxInactiveInterval
in interface SessionManager
setMaxInactiveInterval
in class AbstractSessionManager
public void setSavePeriod(int seconds)
public int getSavePeriod()
public void setScavengePeriod(int seconds)
seconds
- protected void addSession(AbstractSessionManager.Session session)
addSession
in class AbstractSessionManager
public AbstractSessionManager.Session getSession(java.lang.String idInCluster)
AbstractSessionManager
getSession
in class AbstractSessionManager
idInCluster
- The session ID in the cluster, stripped of any worker name.protected void invalidateSessions()
invalidateSessions
in class AbstractSessionManager
protected AbstractSessionManager.Session newSession(HttpServletRequest request)
AbstractSessionManager
newSession
in class AbstractSessionManager
protected void removeSession(java.lang.String clusterId)
removeSession
in class AbstractSessionManager
public void setStoreDirectory(java.io.File dir)
public java.io.File getStoreDirectory()
public void setLazyLoad(boolean lazyLoad)
public boolean isLazyLoad()
public void restoreSessions() throws java.lang.Exception
java.lang.Exception
public void saveSessions() throws java.lang.Exception
java.lang.Exception
public HashSessionManager.Session restoreSession(java.io.FileInputStream fis) throws java.lang.Exception
java.lang.Exception
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.