Class NuxeoHttpSessionMonitor


  • public class NuxeoHttpSessionMonitor
    extends Object
    Singleton used to keep track of all HttpSessions. This Singleton is populated/updated either via the HttpSessionListener or via directedly via the Authentication filter
    Since:
    5.4.2
    Author:
    Tiry ([email protected])
    • Constructor Detail

      • NuxeoHttpSessionMonitor

        public NuxeoHttpSessionMonitor()
    • Method Detail

      • increaseRequestCounter

        protected void increaseRequestCounter()
      • addEntry

        public SessionInfo addEntry​(javax.servlet.http.HttpSession session)
      • associatedUser

        public SessionInfo associatedUser​(javax.servlet.http.HttpServletRequest request)
      • associatedUser

        public SessionInfo associatedUser​(javax.servlet.http.HttpSession session,
                                          String userName)
      • updateEntry

        public SessionInfo updateEntry​(javax.servlet.http.HttpServletRequest request)
      • removeEntry

        public void removeEntry​(String sid)
      • removeEntry

        public void removeEntry​(String sid,
                                boolean invalidate)
        Remove the associated session.
        Parameters:
        sid - the session id
        invalidate - should the session be invalidated
        Since:
        2023.3
      • getSortedSessions

        public List<SessionInfo> getSortedSessions​(long maxInactivity)
      • getGlobalRequestCounter

        public long getGlobalRequestCounter()