Uses of Class
org.eclipse.jetty.session.ManagedSession
-
Uses of ManagedSession in org.eclipse.jetty.session
Methods in org.eclipse.jetty.session that return ManagedSessionModifier 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 ManagedSessionAbstractSessionCache.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 ManagedSessionDefaultSessionCache.doComputeIfAbsent(String id, Function<String, ManagedSession> mappingFunction) protected ManagedSessionNullSessionCache.doComputeIfAbsent(String id, Function<String, ManagedSession> mappingFunction) abstract ManagedSessionRemove the session with this identity from the storeprotected abstract ManagedSessionGet the session matching the key from the cache.Get a session object.Get an existing Session.protected ManagedSessionAbstractSessionCache.getAndEnter(String id, boolean enter) Get a session object.AbstractSessionManager.getManagedSession(String extendedId) Get a known existing sessionSessionHandler.getManagedSession(org.eclipse.jetty.server.Request request) SessionManager.getManagedSession(String id) SessionManager.getManagedSession(org.eclipse.jetty.server.Request request) AbstractSessionCache.newSession(String id, long time, long maxInactiveMs) abstract ManagedSessionAbstractSessionCache.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 thesessionrecord component.Methods in org.eclipse.jetty.session with parameters of type ManagedSessionModifier and TypeMethodDescriptionorg.eclipse.jetty.http.HttpCookieAbstractSessionManager.access(ManagedSession session, boolean secure) Called when a session is first accessed by request processing.voidAbstractSessionCache.add(String id, ManagedSession session) Add an entirely new session (created by the application calling Request.getSession(true)) to the cache.voidSessionCache.add(String id, ManagedSession session) Adds a new Session, with a never-before-used id, to the cache.voidAbstractSessionCache.checkInactiveSession(ManagedSession session) Check a session for being inactive and thus being able to be evicted, if eviction is enabled.voidSessionCache.checkInactiveSession(ManagedSession session) Check a Session to see if it might be appropriate to evict or expire.voidAbstractSessionCache.commit(ManagedSession session) A response that has accessed this session is about to be returned to the client.voidAbstractSessionManager.commit(ManagedSession session) Called when a response is about to be committed.voidSessionCache.commit(ManagedSession session) Called when a response is about to be committed.voidSessionManager.commit(ManagedSession session) voidAbstractSessionManager.complete(ManagedSession session) Called when a request is finally leaving a session.voidSessionManager.complete(ManagedSession session) protected abstract org.eclipse.jetty.server.SessionAbstractSessionCache.doPutIfAbsent(String id, ManagedSession session) Put the session into the map if it wasn't already thereorg.eclipse.jetty.server.SessionDefaultSessionCache.doPutIfAbsent(String id, ManagedSession session) org.eclipse.jetty.server.SessionNullSessionCache.doPutIfAbsent(String id, ManagedSession session) protected abstract booleanAbstractSessionCache.doReplace(String id, ManagedSession oldValue, ManagedSession newValue) Replace the mapping from id to oldValue with newValuebooleanDefaultSessionCache.doReplace(String id, ManagedSession oldValue, ManagedSession newValue) booleanNullSessionCache.doReplace(String id, ManagedSession oldValue, ManagedSession newValue) org.eclipse.jetty.http.HttpCookieAbstractSessionManager.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: "... even though the request that initiated the session came over HTTP, is to support a topology where the web container is front-ended by an SSL offloading load balancer.org.eclipse.jetty.http.HttpCookieSessionManager.getSessionCookie(ManagedSession session, boolean requestIsSecure) org.eclipse.jetty.server.Session.APISessionHandler.newSessionAPIWrapper(ManagedSession session) org.eclipse.jetty.server.Session.APISessionManager.newSessionAPIWrapper(ManagedSession session) AbstractSessionManager.newSessionInactivityTimer(ManagedSession session) Make a new timer for the session.SessionManager.newSessionInactivityTimer(ManagedSession session) voidAbstractSessionManager.recordSessionTime(ManagedSession session) Record length of time session has been active.voidSessionManager.recordSessionTime(ManagedSession session) voidAbstractSessionCache.release(ManagedSession session) Finish using the Session object.voidSessionCache.release(ManagedSession session) Finish using a Session.protected voidAbstractSessionCache.renewSessionId(ManagedSession session, String newId, String newExtendedId) Swap the id on a session.voidAbstractSessionManager.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.voidSessionManager.sessionTimerExpired(ManagedSession session, long now) Method parameters in org.eclipse.jetty.session with type arguments of type ManagedSessionModifier and TypeMethodDescriptionprotected abstract ManagedSessionAbstractSessionCache.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 ManagedSessionDefaultSessionCache.doComputeIfAbsent(String id, Function<String, ManagedSession> mappingFunction) protected ManagedSessionNullSessionCache.doComputeIfAbsent(String id, Function<String, ManagedSession> mappingFunction) voidAbstractSessionManager.newSession(org.eclipse.jetty.server.Request request, String requestedSessionId, Consumer<ManagedSession> consumer) Create a new Session, using the requested session id if possible.voidSessionManager.newSession(org.eclipse.jetty.server.Request request, String requestedSessionId, Consumer<ManagedSession> consumer) Constructors in org.eclipse.jetty.session with parameters of type ManagedSessionModifierConstructorDescriptionRequestedSession(ManagedSession session, String sessionId, String sessionIdFrom) Creates an instance of aRequestedSessionrecord class.SessionInactivityTimer(SessionManager sessionManager, ManagedSession session, org.eclipse.jetty.util.thread.Scheduler scheduler) Constructor parameters in org.eclipse.jetty.session with type arguments of type ManagedSessionModifierConstructorDescriptionDefaultSessionCache(SessionManager manager, ConcurrentMap<String, ManagedSession> sessions)