Interface SessionManager

All Superinterfaces:
org.eclipse.jetty.util.component.LifeCycle, SessionConfig
All Known Implementing Classes:
AbstractSessionManager, SessionHandler

public interface SessionManager extends org.eclipse.jetty.util.component.LifeCycle, SessionConfig
SessionManager Non-servlet spec specific contract implemented by all SessionHandlers.
  • Method Details

    • getManagedSession

      ManagedSession getManagedSession(String id) throws Exception
      Throws:
      Exception
    • newSession

      void newSession(org.eclipse.jetty.server.Request request, String requestedSessionId, Consumer<ManagedSession> consumer)
    • getManagedSession

      ManagedSession getManagedSession(org.eclipse.jetty.server.Request request)
    • newSessionAPIWrapper

      org.eclipse.jetty.server.Session.API newSessionAPIWrapper(ManagedSession session)
    • sessionTimerExpired

      void sessionTimerExpired(ManagedSession session, long now)
    • commit

      void commit(ManagedSession session)
    • complete

      void complete(ManagedSession session)
    • invalidate

      void invalidate(String id) throws Exception
      Throws:
      Exception
    • scavenge

      void scavenge() throws Exception
      Throws:
      Exception
    • isIdInUse

      boolean isIdInUse(String id) throws Exception
      Throws:
      Exception
    • getSessionCookie

      org.eclipse.jetty.http.HttpCookie getSessionCookie(ManagedSession session, boolean requestIsSecure)
    • renewSessionId

      void renewSessionId(String oldId, String oldExtendedId, String newId, String newExtendedId) throws Exception
      Throws:
      Exception
    • calculateInactivityTimeout

      long calculateInactivityTimeout(String id, long timeRemaining, long maxInactiveMs)
    • newSessionInactivityTimer

      SessionInactivityTimer newSessionInactivityTimer(ManagedSession session)
    • getContext

      org.eclipse.jetty.server.Context getContext()
    • getSessionIdManager

      SessionIdManager getSessionIdManager()
    • setSessionIdManager

      void setSessionIdManager(SessionIdManager idManager)
    • getSessionCache

      SessionCache getSessionCache()
    • setSessionCache

      void setSessionCache(SessionCache cache)
    • recordSessionTime

      void recordSessionTime(ManagedSession session)
    • getSessionsCreated

      int getSessionsCreated()
    • encodeURI

      String encodeURI(org.eclipse.jetty.server.Request request, String uri, boolean cookiesInUse)
    • onSessionIdChanged

      default void onSessionIdChanged(org.eclipse.jetty.server.Session session, String oldId)
    • onSessionCreated

      default void onSessionCreated(org.eclipse.jetty.server.Session session)
    • onSessionDestroyed

      default void onSessionDestroyed(org.eclipse.jetty.server.Session session)
    • onSessionAttributeUpdate

      default void onSessionAttributeUpdate(org.eclipse.jetty.server.Session session, String name, Object oldValue, Object newValue)
    • onSessionActivation

      default void onSessionActivation(org.eclipse.jetty.server.Session session)
    • onSessionPassivation

      default void onSessionPassivation(org.eclipse.jetty.server.Session session)
    • getSessionTimeStdDev

      double getSessionTimeStdDev()
    • getSessionTimeMean

      double getSessionTimeMean()
    • getSessionTimeTotal

      long getSessionTimeTotal()