public class NullSessionCache extends AbstractSessionCache
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.ListenerFAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPINGEVICT_ON_INACTIVITY, EVICT_ON_SESSION_EXIT, NEVER_EVICT| Constructor and Description |
|---|
NullSessionCache(SessionHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
Session |
doDelete(String id)
Remove the session with this identity from the store
|
Session |
doGet(String id)
Get the session matching the key from the cache.
|
Session |
doPutIfAbsent(String id,
Session session)
Put the session into the map if it wasn't already there
|
boolean |
doReplace(String id,
Session oldValue,
Session newValue)
Replace the mapping from id to oldValue with newValue
|
Session |
newSession(HttpServletRequest request,
SessionData data)
Create a new Session for a request.
|
Session |
newSession(SessionData data)
Create a new Session object from pre-existing session data
|
void |
setEvictionPolicy(int evictionTimeout)
-1 means we never evict inactive sessions.
|
void |
shutdown() |
add, checkExpiration, checkInactiveSession, commit, contains, delete, exists, get, getEvictionPolicy, getSessionDataStore, getSessionHandler, initialize, isFlushOnResponseCommit, isRemoveUnloadableSessions, isSaveOnCreate, isSaveOnInactiveEviction, newSession, put, release, renewSessionId, setFlushOnResponseCommit, setRemoveUnloadableSessions, setSaveOnCreate, setSaveOnInactiveEviction, setSessionDataStore, toStringaddBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopequals, getClass, hashCode, notify, notifyAll, wait, wait, waitrenewSessionIdaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedpublic NullSessionCache(SessionHandler handler)
handler - The SessionHandler related to this SessionCachepublic void shutdown()
public Session newSession(SessionData data)
AbstractSessionCachenewSession in interface SessionCachenewSession in class AbstractSessionCachedata - the session datapublic Session newSession(HttpServletRequest request, SessionData data)
AbstractSessionCachenewSession in class AbstractSessionCacherequest - the requestdata - the session datapublic Session doGet(String id)
AbstractSessionCacheid - session idpublic Session doPutIfAbsent(String id, Session session)
AbstractSessionCacheid - the identity of the sessionsession - the session objectpublic boolean doReplace(String id, Session oldValue, Session newValue)
AbstractSessionCacheid - the idoldValue - the old valuenewValue - the new valuepublic Session doDelete(String id)
AbstractSessionCachedoDelete in class AbstractSessionCacheid - the idpublic void setEvictionPolicy(int evictionTimeout)
AbstractSessionCachesetEvictionPolicy in interface SessionCachesetEvictionPolicy in class AbstractSessionCacheevictionTimeout - -1 is never evict; 0 is evict-on-exit; and any other positive
value is the time in seconds that a session can be idle before it can
be evicted.SessionCache.setEvictionPolicy(int)Copyright © 2010 - 2020 Adobe. All Rights Reserved