Uses of Class
org.eclipse.jetty.server.session.Session
Package
Description
Jetty Server : Session Management Implementations
-
Uses of Session in org.eclipse.jetty.server.session
Modifier and TypeMethodDescriptionRemove a session object from this store and from any backing store.Remove a Session completely: from both this cache and the SessionDataStore.protected abstract Session
AbstractSessionCache.doComputeIfAbsent
(String id, Function<String, Session> mappingFunction) Compute the mappingFunction to create a Session object iff the session with the given id isn't already in the map, otherwise return the existing Session.protected Session
DefaultSessionCache.doComputeIfAbsent
(String id, Function<String, Session> mappingFunction) protected Session
NullSessionCache.doComputeIfAbsent
(String id, Function<String, Session> mappingFunction) abstract Session
Remove the session with this identity from the storeprotected abstract Session
Get the session matching the key from the cache.protected abstract Session
AbstractSessionCache.doPutIfAbsent
(String id, Session session) Put the session into the map if it wasn't already thereDefaultSessionCache.doPutIfAbsent
(String id, Session session) NullSessionCache.doPutIfAbsent
(String id, Session session) Get a session object.Get an existing Session.protected Session
AbstractSessionCache.getAndEnter
(String id, boolean enter) Get a session object.Session.getSession()
SessionHandler.getSession
(String id) Get a known existing sessionSessionHandler.SessionIf.getSession()
AbstractSessionCache.newSession
(jakarta.servlet.http.HttpServletRequest request, String id, long time, long maxInactiveMs) abstract Session
AbstractSessionCache.newSession
(jakarta.servlet.http.HttpServletRequest request, SessionData data) Create a new Session for a request.abstract Session
AbstractSessionCache.newSession
(SessionData data) Create a new Session object from pre-existing session dataDefaultSessionCache.newSession
(jakarta.servlet.http.HttpServletRequest request, SessionData data) DefaultSessionCache.newSession
(SessionData data) NullSessionCache.newSession
(jakarta.servlet.http.HttpServletRequest request, SessionData data) NullSessionCache.newSession
(SessionData data) SessionCache.newSession
(jakarta.servlet.http.HttpServletRequest request, String id, long time, long maxInactiveMs) Create an entirely new Session.SessionCache.newSession
(SessionData data) Re-materialize a Session that has previously existed.SessionHandler.removeSession
(String id, boolean invalidate) Remove session from managerAbstractSessionCache.renewSessionId
(String oldId, String newId, String oldExtendedId, String newExtendedId) SessionCache.renewSessionId
(String oldId, String newId, String oldExtendedId, String newExtendedId) Change the id of a Session.Modifier and TypeMethodDescriptionvoid
Add an entirely new session (created by the application calling Request.getSession(true)) to the cache.void
Adds a new Session, with a never-before-used id, to the cache.protected void
SessionHandler.callSessionCreatedListeners
(Session session) Call the session lifecycle listeners in the order they were added.protected void
SessionHandler.callSessionDestroyedListeners
(Session session) Call the session lifecycle listeners in the reverse order they were added.protected void
SessionHandler.callSessionIdListeners
(Session session, String oldId) void
AbstractSessionCache.checkInactiveSession
(Session session) Check a session for being inactive and thus being able to be evicted, if eviction is enabled.void
SessionCache.checkInactiveSession
(Session session) Check a Session to see if it might be appropriate to evict or expire.void
A response that has accessed this session is about to be returned to the client.void
Called when a response is about to be committed.protected abstract Session
AbstractSessionCache.doPutIfAbsent
(String id, Session session) Put the session into the map if it wasn't already thereDefaultSessionCache.doPutIfAbsent
(String id, Session session) NullSessionCache.doPutIfAbsent
(String id, Session session) protected abstract boolean
Replace the mapping from id to oldValue with newValueboolean
boolean
void
SessionHandler.doSessionAttributeListeners
(Session session, String name, Object old, Object value) void
Deprecated.void
Deprecated.useSessionCache.release(String, Session)
insteadprotected void
SessionHandler.recordSessionTime
(Session session) Record length of time session has been active.void
Finish using the Session object.void
Finish using a Session.protected void
AbstractSessionCache.renewSessionId
(Session session, String newId, String newExtendedId) Swap the id on a session.void
SessionHandler.sessionInactivityTimerExpired
(Session session, long now) Each session has a timer that is configured to go off when either the session has not been accessed for a configurable amount of time, or the session itself has passed its expiry.Modifier and TypeMethodDescriptionprotected abstract Session
AbstractSessionCache.doComputeIfAbsent
(String id, Function<String, Session> mappingFunction) Compute the mappingFunction to create a Session object iff the session with the given id isn't already in the map, otherwise return the existing Session.protected Session
DefaultSessionCache.doComputeIfAbsent
(String id, Function<String, Session> mappingFunction) protected Session
NullSessionCache.doComputeIfAbsent
(String id, Function<String, Session> mappingFunction) ModifierConstructorDescriptionDefaultSessionCache
(SessionHandler manager, ConcurrentMap<String, Session> sessions)
AbstractSessionCache.release(String, Session)
instead