Class SessionManager

  • All Implemented Interfaces:
    org.eclipse.jetty.server.SessionManager, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.LifeCycle

    public class SessionManager
    extends org.eclipse.jetty.server.session.HashSessionManager
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jetty.server.session.HashSessionManager

        org.eclipse.jetty.server.session.HashSessionManager.Saver, org.eclipse.jetty.server.session.HashSessionManager.Scavenger
      • Nested classes/interfaces inherited from class org.eclipse.jetty.server.session.AbstractSessionManager

        org.eclipse.jetty.server.session.AbstractSessionManager.CookieConfig, org.eclipse.jetty.server.session.AbstractSessionManager.SessionIf
      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container

        org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.LifeCycle.Listener
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.server.session.HashSessionManager

        _sessions
      • Fields inherited from class org.eclipse.jetty.server.session.AbstractSessionManager

        __defaultSessionTrackingModes, __distantFuture, _checkingRemoteSessionIdEncoding, _context, _dftMaxIdleSecs, _httpOnly, _loader, _maxCookieAge, _nodeIdInSessionId, _refreshCookieAge, _secureCookies, _secureRequestOnly, _sessionAttributeListeners, _sessionComment, _sessionCookie, _sessionDomain, _sessionHandler, _sessionIdListeners, _sessionIdManager, _sessionIdPathParameterName, _sessionIdPathParameterNamePrefix, _sessionListeners, _sessionPath, _sessionsStats, _sessionTimeStats, _sessionTrackingModes, MAX_INACTIVE_MINUTES
      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
      • Fields inherited from interface org.eclipse.jetty.server.SessionManager

        __CheckRemoteSessionEncoding, __DefaultSessionCookie, __DefaultSessionDomain, __DefaultSessionIdPathParameterName, __MaxAgeProperty, __SessionCookieProperty, __SessionDomainProperty, __SessionIdPathParameterNameProperty, __SessionPathProperty
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jetty.server.session.AbstractSession getSession​(String idInCluster)  
      boolean isValid​(javax.servlet.http.HttpSession session)  
      protected org.eclipse.jetty.server.session.AbstractSession newSession​(long created, long accessed, String clusterId)  
      protected org.eclipse.jetty.server.session.AbstractSession newSession​(javax.servlet.http.HttpServletRequest request)  
      void renewSessionId​(String oldClusterId, String oldNodeId, String newClusterId, String newNodeId)  
      protected void shutdownSessions()  
      • Methods inherited from class org.eclipse.jetty.server.session.HashSessionManager

        addSession, doStart, doStop, getIdleSavePeriod, getSavePeriod, getScavengePeriod, getSessions, getStoreDirectory, isDeleteUnrestorableSessions, isLazyLoad, removeSession, restoreSession, restoreSession, restoreSessions, saveSessions, scavenge, setDeleteUnrestorableSessions, setIdleSavePeriod, setLazyLoad, setMaxInactiveInterval, setSavePeriod, setScavengePeriod, setStoreDirectory
      • Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionManager

        access, addEventListener, addSession, clearEventListeners, complete, doSessionAttributeListeners, getClusterId, getContext, getContextHandler, getDefaultSessionTrackingModes, getEffectiveSessionTrackingModes, getHttpOnly, getHttpSession, getMaxCookieAge, getMaxInactiveInterval, getMetaManager, getNodeId, getRefreshCookieAge, getSecureCookies, getSessionCookie, getSessionCookie, getSessionCookieConfig, getSessionDomain, getSessionHandler, getSessionIdManager, getSessionIdPathParameterName, getSessionIdPathParameterNamePrefix, getSessionPath, getSessionsMax, getSessionsTotal, getSessionTimeMax, getSessionTimeMean, getSessionTimeStdDev, getSessionTimeTotal, isCheckingRemoteSessionIdEncoding, isNodeIdInSessionId, isSecureRequestOnly, isUsingCookies, isUsingURLs, newHttpSession, removeEventListener, removeSession, removeSession, setCheckingRemoteSessionIdEncoding, setHttpOnly, setNodeIdInSessionId, setRefreshCookieAge, setSecureRequestOnly, setSessionCookie, setSessionHandler, setSessionIdManager, setSessionIdPathParameterName, setSessionTrackingModes, setUsingCookies, statsReset
      • Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle

        addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
      • Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
      • Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

        addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
    • Method Detail

      • getSession

        public org.eclipse.jetty.server.session.AbstractSession getSession​(String idInCluster)
        Overrides:
        getSession in class org.eclipse.jetty.server.session.HashSessionManager
      • isValid

        public boolean isValid​(javax.servlet.http.HttpSession session)
        Specified by:
        isValid in interface org.eclipse.jetty.server.SessionManager
        Overrides:
        isValid in class org.eclipse.jetty.server.session.AbstractSessionManager
      • shutdownSessions

        protected void shutdownSessions()
                                 throws Exception
        Overrides:
        shutdownSessions in class org.eclipse.jetty.server.session.HashSessionManager
        Throws:
        Exception
      • renewSessionId

        public void renewSessionId​(String oldClusterId,
                                   String oldNodeId,
                                   String newClusterId,
                                   String newNodeId)
        Specified by:
        renewSessionId in interface org.eclipse.jetty.server.SessionManager
        Overrides:
        renewSessionId in class org.eclipse.jetty.server.session.HashSessionManager
      • newSession

        protected org.eclipse.jetty.server.session.AbstractSession newSession​(javax.servlet.http.HttpServletRequest request)
        Overrides:
        newSession in class org.eclipse.jetty.server.session.HashSessionManager
      • newSession

        protected org.eclipse.jetty.server.session.AbstractSession newSession​(long created,
                                                                              long accessed,
                                                                              String clusterId)
        Overrides:
        newSession in class org.eclipse.jetty.server.session.HashSessionManager