public class NullSessionCache extends AbstractSessionCache
AbstractSessionCache.PlaceHolderSessionAbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.Listener_context, _evictionPolicy, _handler, _removeUnloadableSessions, _saveOnCreate, _saveOnInactiveEviction, _sessionDataStoreFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, 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
|
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() |
checkExpiration, checkInactiveSession, contains, delete, doStart, doStop, exists, get, getEvictionPolicy, getSessionDataStore, getSessionHandler, initialize, isRemoveUnloadableSessions, isSaveOnCreate, isSaveOnInactiveEviction, newSession, put, renewSessionId, setRemoveUnloadableSessions, setSaveOnCreate, setSaveOnInactiveEviction, setSessionDataStore, toStringaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic NullSessionCache(SessionHandler handler)
handler - public void shutdown()
SessionCache.shutdown()public Session newSession(SessionData data)
AbstractSessionCachenewSession in interface SessionCachenewSession in class AbstractSessionCachedata - the session dataAbstractSessionCache.newSession(org.eclipse.jetty.server.session.SessionData)public Session newSession(HttpServletRequest request, SessionData data)
AbstractSessionCachenewSession in class AbstractSessionCacherequest - the requestdata - the session dataAbstractSessionCache.newSession(javax.servlet.http.HttpServletRequest, org.eclipse.jetty.server.session.SessionData)public Session doGet(String id)
AbstractSessionCachedoGet in class AbstractSessionCacheid - session idAbstractSessionCache.doGet(java.lang.String)public Session doPutIfAbsent(String id, Session session)
AbstractSessionCachedoPutIfAbsent in class AbstractSessionCacheid - the identity of the sessionsession - the session objectAbstractSessionCache.doPutIfAbsent(java.lang.String, org.eclipse.jetty.server.session.Session)public boolean doReplace(String id, Session oldValue, Session newValue)
AbstractSessionCachedoReplace in class AbstractSessionCacheid - the idoldValue - the old valuenewValue - the new valueAbstractSessionCache.doReplace(java.lang.String, org.eclipse.jetty.server.session.Session, org.eclipse.jetty.server.session.Session)public Session doDelete(String id)
AbstractSessionCachedoDelete in class AbstractSessionCacheid - the idAbstractSessionCache.doDelete(java.lang.String)public 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.AbstractSessionCache.setEvictionPolicy(int)Copyright © 1995–2017 Webtide. All rights reserved.