Package org.eclipse.jetty.session
Interface SessionManager
- All Superinterfaces:
LifeCycle
,SessionConfig
- All Known Implementing Classes:
AbstractSessionManager
,SessionHandler
,SessionHandler
SessionManager
Non-servlet spec specific contract implemented by all SessionHandlers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.session.SessionConfig
SessionConfig.Mutable
-
Field Summary
Fields inherited from interface org.eclipse.jetty.session.SessionConfig
__CheckRemoteSessionEncodingProperty, __DefaultSessionCookie, __DefaultSessionDomain, __DefaultSessionIdPathParameterName, __MaxAgeProperty, __SessionCookieProperty, __SessionDomainProperty, __SessionIdPathParameterNameProperty, __SessionPathProperty
-
Method Summary
Modifier and TypeMethodDescriptionlong
calculateInactivityTimeout
(String id, long timeRemaining, long maxInactiveMs) void
commit
(ManagedSession session) void
complete
(ManagedSession session) getManagedSession
(Request request) getSessionCookie
(ManagedSession session, boolean requestIsSecure) int
double
double
long
void
invalidate
(String id) boolean
void
newSession
(Request request, String requestedSessionId, Consumer<ManagedSession> consumer) newSessionAPIWrapper
(ManagedSession session) newSessionInactivityTimer
(ManagedSession session) default void
onSessionActivation
(Session session) default void
onSessionAttributeUpdate
(Session session, String name, Object oldValue, Object newValue) default void
onSessionCreated
(Session session) default void
onSessionDestroyed
(Session session) default void
onSessionIdChanged
(Session session, String oldId) default void
onSessionPassivation
(Session session) void
recordSessionTime
(ManagedSession session) void
renewSessionId
(String oldId, String oldExtendedId, String newId, String newExtendedId) void
scavenge()
void
sessionTimerExpired
(ManagedSession session, long now) void
setSessionCache
(SessionCache cache) void
setSessionIdManager
(SessionIdManager idManager) Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
Methods inherited from interface org.eclipse.jetty.session.SessionConfig
getMaxCookieAge, getMaxInactiveInterval, getRefreshCookieAge, getSameSite, getSessionComment, getSessionCookie, getSessionDomain, getSessionIdPathParameterName, getSessionIdPathParameterNamePrefix, getSessionPath, isCheckingRemoteSessionIdEncoding, isHttpOnly, isPartitioned, isSecureCookies, isSecureRequestOnly, isUsingCookies, isUsingUriParameters
-
Method Details
-
getManagedSession
- Throws:
Exception
-
newSession
-
getManagedSession
-
newSessionAPIWrapper
-
sessionTimerExpired
-
commit
-
complete
-
invalidate
- Throws:
Exception
-
scavenge
- Throws:
Exception
-
isIdInUse
- Throws:
Exception
-
getSessionCookie
-
renewSessionId
void renewSessionId(String oldId, String oldExtendedId, String newId, String newExtendedId) throws Exception - Throws:
Exception
-
calculateInactivityTimeout
-
newSessionInactivityTimer
-
getContext
Context getContext() -
getSessionIdManager
SessionIdManager getSessionIdManager() -
setSessionIdManager
-
getSessionCache
SessionCache getSessionCache() -
setSessionCache
-
recordSessionTime
-
getSessionsCreated
int getSessionsCreated() -
encodeURI
-
onSessionIdChanged
-
onSessionCreated
-
onSessionDestroyed
-
onSessionAttributeUpdate
-
onSessionActivation
-
onSessionPassivation
-
getSessionTimeStdDev
double getSessionTimeStdDev() -
getSessionTimeMean
double getSessionTimeMean() -
getSessionTimeTotal
long getSessionTimeTotal()
-