Uses of Class
org.eclipse.jetty.session.ManagedSession
Package
Description
Jetty Server : Modular Servlet Integration
Jetty Server : Session Management Implementations
-
Uses of ManagedSession in org.eclipse.jetty.ee10.servlet
Modifier and TypeMethodDescriptionServletContextHandler.ServletRequestInfo.getManagedSession()
ServletContextRequest.getManagedSession()
SessionHandler.getManagedSession
(Request request) SessionHandler.ServletSessionApi.getSession()
static ManagedSession
SessionHandler.ServletSessionApi.getSession
(jakarta.servlet.http.HttpSession httpSession) Modifier and TypeMethodDescriptionSessionHandler.newSessionAPIWrapper
(ManagedSession session) void
ServletContextRequest.setManagedSession
(ManagedSession managedSession) SessionHandler.ServletSessionApi.wrapSession
(ManagedSession session) -
Uses of ManagedSession in org.eclipse.jetty.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 ManagedSession
AbstractSessionCache.doComputeIfAbsent
(String id, Function<String, ManagedSession> 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 ManagedSession
DefaultSessionCache.doComputeIfAbsent
(String id, Function<String, ManagedSession> mappingFunction) protected ManagedSession
NullSessionCache.doComputeIfAbsent
(String id, Function<String, ManagedSession> mappingFunction) abstract ManagedSession
Remove the session with this identity from the storeprotected abstract ManagedSession
Get the session matching the key from the cache.Get a session object.Get an existing Session.protected ManagedSession
AbstractSessionCache.getAndEnter
(String id, boolean enter) Get a session object.AbstractSessionManager.getManagedSession
(String extendedId) Get a known existing sessionSessionHandler.getManagedSession
(Request request) SessionManager.getManagedSession
(String id) SessionManager.getManagedSession
(Request request) AbstractSessionCache.newSession
(String id, long time, long maxInactiveMs) abstract ManagedSession
AbstractSessionCache.newSession
(SessionData data) Create a new Session object from pre-existing session dataDefaultSessionCache.newSession
(SessionData data) NullSessionCache.newSession
(SessionData data) SessionCache.newSession
(String id, long time, long maxInactiveMs) Create an entirely new Session.SessionCache.newSession
(SessionData data) Re-materialize a Session that has previously existed.AbstractSessionCache.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.AbstractSessionManager.RequestedSession.session()
Returns the value of thesession
record component.Modifier and TypeMethodDescriptionAbstractSessionManager.access
(ManagedSession session, boolean secure) Called when a session is first accessed by request processing.void
AbstractSessionCache.add
(String id, ManagedSession session) Add an entirely new session (created by the application calling Request.getSession(true)) to the cache.void
SessionCache.add
(String id, ManagedSession session) Adds a new Session, with a never-before-used id, to the cache.void
AbstractSessionCache.checkInactiveSession
(ManagedSession session) Check a session for being inactive and thus being able to be evicted, if eviction is enabled.void
SessionCache.checkInactiveSession
(ManagedSession session) Check a Session to see if it might be appropriate to evict or expire.void
AbstractSessionCache.commit
(ManagedSession session) A response that has accessed this session is about to be returned to the client.void
AbstractSessionManager.commit
(ManagedSession session) Called when a response is about to be committed.void
SessionCache.commit
(ManagedSession session) Called when a response is about to be committed.void
SessionManager.commit
(ManagedSession session) void
AbstractSessionManager.complete
(ManagedSession session) Called when a request is finally leaving a session.void
SessionManager.complete
(ManagedSession session) protected abstract Session
AbstractSessionCache.doPutIfAbsent
(String id, ManagedSession session) Put the session into the map if it wasn't already thereDefaultSessionCache.doPutIfAbsent
(String id, ManagedSession session) NullSessionCache.doPutIfAbsent
(String id, ManagedSession session) protected abstract boolean
AbstractSessionCache.doReplace
(String id, ManagedSession oldValue, ManagedSession newValue) Replace the mapping from id to oldValue with newValueboolean
DefaultSessionCache.doReplace
(String id, ManagedSession oldValue, ManagedSession newValue) boolean
NullSessionCache.doReplace
(String id, ManagedSession oldValue, ManagedSession newValue) AbstractSessionManager.getSessionCookie
(ManagedSession session, boolean requestIsSecure) A session cookie is marked as secure IFF any of the following conditions are true: SessionCookieConfig.setSecure == true SessionCookieConfig.setSecure == false && _secureRequestOnly==true && request is HTTPS According to SessionCookieConfig javadoc, case 1 can be used when: "...SessionManager.getSessionCookie
(ManagedSession session, boolean requestIsSecure) SessionHandler.newSessionAPIWrapper
(ManagedSession session) SessionManager.newSessionAPIWrapper
(ManagedSession session) AbstractSessionManager.newSessionInactivityTimer
(ManagedSession session) Make a new timer for the session.SessionManager.newSessionInactivityTimer
(ManagedSession session) void
AbstractSessionManager.recordSessionTime
(ManagedSession session) Record length of time session has been active.void
SessionManager.recordSessionTime
(ManagedSession session) void
AbstractSessionCache.release
(ManagedSession session) Finish using the Session object.void
SessionCache.release
(ManagedSession session) Finish using a Session.protected void
AbstractSessionCache.renewSessionId
(ManagedSession session, String newId, String newExtendedId) Swap the id on a session.void
AbstractSessionManager.sessionTimerExpired
(ManagedSession 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.void
SessionManager.sessionTimerExpired
(ManagedSession session, long now) Modifier and TypeMethodDescriptionprotected abstract ManagedSession
AbstractSessionCache.doComputeIfAbsent
(String id, Function<String, ManagedSession> 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 ManagedSession
DefaultSessionCache.doComputeIfAbsent
(String id, Function<String, ManagedSession> mappingFunction) protected ManagedSession
NullSessionCache.doComputeIfAbsent
(String id, Function<String, ManagedSession> mappingFunction) void
AbstractSessionManager.newSession
(Request request, String requestedSessionId, Consumer<ManagedSession> consumer) Create a new Session, using the requested session id if possible.void
SessionManager.newSession
(Request request, String requestedSessionId, Consumer<ManagedSession> consumer) ModifierConstructorDescriptionRequestedSession
(ManagedSession session, String sessionId, boolean sessionIdFromCookie) Creates an instance of aRequestedSession
record class.SessionInactivityTimer
(SessionManager sessionManager, ManagedSession session, Scheduler scheduler) ModifierConstructorDescriptionDefaultSessionCache
(SessionManager manager, ConcurrentMap<String, ManagedSession> sessions)