Uses of Class
org.eclipse.jetty.server.session.Session
Packages that use Session
Package
Description
Jetty Server : Session Management Implementations
-
Uses of Session in org.eclipse.jetty.server.session
Methods in org.eclipse.jetty.server.session that return SessionModifier 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 SessionAbstractSessionCache.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 SessionDefaultSessionCache.doComputeIfAbsent(String id, Function<String, Session> mappingFunction) protected SessionNullSessionCache.doComputeIfAbsent(String id, Function<String, Session> mappingFunction) abstract SessionRemove the session with this identity from the storeprotected abstract SessionGet the session matching the key from the cache.protected abstract SessionAbstractSessionCache.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 SessionAbstractSessionCache.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 SessionAbstractSessionCache.newSession(jakarta.servlet.http.HttpServletRequest request, SessionData data) Create a new Session for a request.abstract SessionAbstractSessionCache.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.Methods in org.eclipse.jetty.server.session with parameters of type SessionModifier and TypeMethodDescriptionvoidAdd an entirely new session (created by the application calling Request.getSession(true)) to the cache.voidAdds a new Session, with a never-before-used id, to the cache.protected voidSessionHandler.callSessionCreatedListeners(Session session) Call the session lifecycle listeners in the order they were added.protected voidSessionHandler.callSessionDestroyedListeners(Session session) Call the session lifecycle listeners in the reverse order they were added.protected voidSessionHandler.callSessionIdListeners(Session session, String oldId) voidAbstractSessionCache.checkInactiveSession(Session session) Check a session for being inactive and thus being able to be evicted, if eviction is enabled.voidSessionCache.checkInactiveSession(Session session) Check a Session to see if it might be appropriate to evict or expire.voidA response that has accessed this session is about to be returned to the client.voidCalled when a response is about to be committed.protected abstract SessionAbstractSessionCache.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 booleanReplace the mapping from id to oldValue with newValuebooleanbooleanvoidSessionHandler.doSessionAttributeListeners(Session session, String name, Object old, Object value) voidDeprecated.voidDeprecated.useSessionCache.release(String, Session)insteadprotected voidSessionHandler.recordSessionTime(Session session) Record length of time session has been active.voidFinish using the Session object.voidFinish using a Session.protected voidAbstractSessionCache.renewSessionId(Session session, String newId, String newExtendedId) Swap the id on a session.voidSessionHandler.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.Method parameters in org.eclipse.jetty.server.session with type arguments of type SessionModifier and TypeMethodDescriptionprotected abstract SessionAbstractSessionCache.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 SessionDefaultSessionCache.doComputeIfAbsent(String id, Function<String, Session> mappingFunction) protected SessionNullSessionCache.doComputeIfAbsent(String id, Function<String, Session> mappingFunction) Constructor parameters in org.eclipse.jetty.server.session with type arguments of type SessionModifierConstructorDescriptionDefaultSessionCache(SessionHandler manager, ConcurrentMap<String, Session> sessions)
AbstractSessionCache.release(String, Session)instead