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 LifeCycle
LifeCycle.ListenerNested classes/interfaces inherited from interface SessionConfig
SessionConfig.Mutable -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionlongcalculateInactivityTimeout(String id, long timeRemaining, long maxInactiveMs) voidcommit(ManagedSession session) voidcomplete(ManagedSession session) getManagedSession(Request request) getSessionCookie(ManagedSession session, boolean requestIsSecure) intdoubledoublelongvoidinvalidate(String id) booleanvoidnewSession(Request request, String requestedSessionId, Consumer<ManagedSession> consumer) newSessionAPIWrapper(ManagedSession session) newSessionInactivityTimer(ManagedSession session) default voidonSessionActivation(Session session) default voidonSessionAttributeUpdate(Session session, String name, Object oldValue, Object newValue) default voidonSessionCreated(Session session) default voidonSessionDestroyed(Session session) default voidonSessionIdChanged(Session session, String oldId) default voidonSessionPassivation(Session session) voidrecordSessionTime(ManagedSession session) voidrenewSessionId(String oldId, String oldExtendedId, String newId, String newExtendedId) voidscavenge()voidsessionTimerExpired(ManagedSession session, long now) voidsetSessionCache(SessionCache cache) voidsetSessionIdManager(SessionIdManager idManager) Methods inherited from interface LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stopMethods inherited from interface 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
-
scavenge
-
isIdInUse
-
getSessionCookie
-
renewSessionId
-
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()
-