Package org.eclipse.jetty.server.session
Class NullSessionCache
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.session.AbstractSessionCache
org.eclipse.jetty.server.session.NullSessionCache
- All Implemented Interfaces:
SessionCache,Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
NullSessionCache
Does not actually cache any Session objects. Useful for testing.
Also useful if you do not want to share Session objects with the same id between
simultaneous requests: note that this means that context forwarding can't share
the same id either.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.server.session.SessionCache
EVICT_ON_INACTIVITY, EVICT_ON_SESSION_EXIT, NEVER_EVICT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Remove the session with this identity from the storeDeprecated.doPutIfAbsent(String id, Session session) Deprecated.booleanDeprecated.newSession(HttpServletRequest request, SessionData data) Deprecated.Create a new Session for a request.newSession(SessionData data) Deprecated.Create a new Session object from pre-existing session datavoidsetEvictionPolicy(int evictionTimeout) Deprecated.-1 means we never evict inactive sessions.voidshutdown()Deprecated.Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionCache
add, checkExpiration, checkInactiveSession, commit, contains, delete, exists, get, getEvictionPolicy, getSessionDataStore, getSessionHandler, initialize, isFlushOnResponseCommit, isInvalidateOnShutdown, isRemoveUnloadableSessions, isSaveOnCreate, isSaveOnInactiveEviction, newSession, put, release, renewSessionId, setFlushOnResponseCommit, setInvalidateOnShutdown, setRemoveUnloadableSessions, setSaveOnCreate, setSaveOnInactiveEviction, setSessionDataStore, toStringMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, 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, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from interface org.eclipse.jetty.server.session.SessionCache
renewSessionId
-
Constructor Details
-
NullSessionCache
Deprecated.- Parameters:
handler- The SessionHandler related to this SessionCache
-
-
Method Details
-
shutdown
public void shutdown()Deprecated. -
newSession
Deprecated.Description copied from class:AbstractSessionCacheCreate a new Session object from pre-existing session data- Specified by:
newSessionin interfaceSessionCache- Specified by:
newSessionin classAbstractSessionCache- Parameters:
data- the session data- Returns:
- a new Session object
-
newSession
Deprecated.Description copied from class:AbstractSessionCacheCreate a new Session for a request.- Specified by:
newSessionin classAbstractSessionCache- Parameters:
request- the requestdata- the session data- Returns:
- the new session
-
doGet
Deprecated. -
doPutIfAbsent
Deprecated. -
doReplace
Deprecated. -
doDelete
Deprecated.Description copied from class:AbstractSessionCacheRemove the session with this identity from the store- Specified by:
doDeletein classAbstractSessionCache- Parameters:
id- the id- Returns:
- Session that was removed or null
-
setEvictionPolicy
public void setEvictionPolicy(int evictionTimeout) Deprecated.Description copied from class:AbstractSessionCache-1 means we never evict inactive sessions. 0 means we evict a session after the last request for it exits >0 is the number of seconds after which we evict inactive sessions from the cache- Specified by:
setEvictionPolicyin interfaceSessionCache- Overrides:
setEvictionPolicyin classAbstractSessionCache- Parameters:
evictionTimeout- -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.- See Also:
-