public class CookiePersistentManager extends StandardManager
lifecycle, namecontainer, debug, devRandomSource, distributable, domain, duplicates, entropy, expiredSessions, initialized, log, maxActive, maxActiveUpdateLock, maxInactiveInterval, oname, randomClass, randomIS, rejectedSessions, sessionAverageAliveTime, sessionCounter, sessionIdLength, sessionLocker, sessionMaxAliveTime, sessions, support, uuidGeneratorAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
CookiePersistentManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Session session)
Add this Session to the set of active Sessions for this Manager.
|
void |
checkSessionAttribute(String name,
Object value)
Checks the given session attribute name and value to make sure they comply with any
restrictions set forth by this session manager.
|
void |
clearSessions()
clear out the sessions cache
HERCULES:added
|
Session |
findSession(String id,
javax.servlet.http.HttpServletRequest request)
Gets the session with the given id from the given request.
|
Session[] |
findSessions()
Return the set of active Sessions associated with this Manager.
|
void |
remove(Session session)
Remove this Session from the active Sessions for this Manager.
|
void |
setCookieName(String cookieName) |
javax.servlet.http.Cookie |
toCookie(Session session)
Converts the given session into a cookie as a way of persisting it.
|
addLifecycleListener, clearStore, createSession, createSession, findLifecycleListeners, getInfo, getMaxActiveSessions, getName, getPathname, getProcessingTime, load, processExpires, propertyChange, readSessions, release, removeLifecycleListener, setContainer, setMaxActiveSessions, setPathname, setProcessingTime, start, stop, stop, unload, unload, writeSessions, writeSessionsaddPropertyChangeListener, changeSessionId, createEmptySession, destroy, expireSession, findSession, findSession, generateSessionId, generateSessionId, getActiveSessions, getClassName, getContainer, getDebug, getDistributable, getDomain, getDuplicates, getEngine, getEntropy, getExpiredSessions, getJvmRoute, getLastAccessedTimeMillis, getMaxActive, getMaxInactiveInterval, getMaxInactiveIntervalSeconds, getNewSession, getObjectName, getRandom, getRandomBytes, getRandomClass, getRandomFile, getRejectedSessions, getSessionAttribute, getSessionAverageAliveTime, getSessionAverageAliveTimeSeconds, getSessionCount, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, getSessionMaxAliveTimeSeconds, getUuidGenerator, init, isSessionVersioningSupported, listSessionIds, lockSession, log, log, postRequestDispatcherProcess, preRequestDispatcherProcess, removePropertyChangeListener, resetRandom, setDebug, setDistributable, setDuplicates, setEntropy, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setMaxInactiveIntervalSeconds, setRandomClass, setRandomFile, setRejectedSessions, setSessionAverageAliveTime, setSessionAverageAliveTimeSeconds, setSessionCount, setSessionCounter, setSessionIdLength, setSessionLocker, setSessionMaxAliveTime, setSessionMaxAliveTimeSeconds, setUuidGenerator, unlockSession, updatepublic void setCookieName(String cookieName)
public void add(Session session)
ManagerBaseadd in interface Manageradd in class ManagerBasesession - Session to be addedpublic Session findSession(String id, javax.servlet.http.HttpServletRequest request) throws IOException
ManagerfindSession in interface ManagerfindSession in class ManagerBaseid - the session idrequest - the request containing the requested session informationIOExceptionpublic void clearSessions()
ManagerBaseclearSessions in class ManagerBasepublic Session[] findSessions()
ManagerBasefindSessions in interface ManagerfindSessions in class ManagerBasepublic void remove(Session session)
ManagerBaseremove in interface Managerremove in class ManagerBasesession - Session to be removedpublic javax.servlet.http.Cookie toCookie(Session session) throws IOException
ManagertoCookie in interface ManagertoCookie in class ManagerBasesession - the session to convertIOExceptionpublic void checkSessionAttribute(String name, Object value)
ManagercheckSessionAttribute in interface ManagercheckSessionAttribute in class ManagerBasename - the session attribute namevalue - the session attribute valueCopyright © 2017. All rights reserved.