public class CookiePersistentManager extends StandardManager
lifecycle, name
container, debug, devRandomSource, distributable, domain, duplicates, entropy, expiredSessions, initialized, log, maxActive, maxActiveUpdateLock, maxInactiveInterval, oname, randomClass, randomIS, rejectedSessions, sessionAverageAliveTime, sessionCounter, sessionIdLength, sessionLocker, sessionMaxAliveTime, sessions, support, uuidGenerator
AFTER_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, writeSessions
addPropertyChangeListener, 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, update
public void setCookieName(String cookieName)
public void add(Session session)
ManagerBase
add
in interface Manager
add
in class ManagerBase
session
- Session to be addedpublic Session findSession(String id, javax.servlet.http.HttpServletRequest request) throws IOException
Manager
findSession
in interface Manager
findSession
in class ManagerBase
id
- the session idrequest
- the request containing the requested session informationIOException
public void clearSessions()
ManagerBase
clearSessions
in class ManagerBase
public Session[] findSessions()
ManagerBase
findSessions
in interface Manager
findSessions
in class ManagerBase
public void remove(Session session)
ManagerBase
remove
in interface Manager
remove
in class ManagerBase
session
- Session to be removedpublic javax.servlet.http.Cookie toCookie(Session session) throws IOException
Manager
toCookie
in interface Manager
toCookie
in class ManagerBase
session
- the session to convertIOException
public void checkSessionAttribute(String name, Object value)
Manager
checkSessionAttribute
in interface Manager
checkSessionAttribute
in class ManagerBase
name
- the session attribute namevalue
- the session attribute valueCopyright © 2018. All rights reserved.