Class NuxeoHttpSessionMonitor

java.lang.Object
org.nuxeo.ecm.platform.web.common.session.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])
  • Field Details

  • Constructor Details

    • NuxeoHttpSessionMonitor

      public NuxeoHttpSessionMonitor()
  • Method Details

    • instance

      public static NuxeoHttpSessionMonitor instance()
    • 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
    • getTrackedSessions

      public Collection<SessionInfo> getTrackedSessions()
    • getSortedSessions

      public List<SessionInfo> getSortedSessions()
    • getSortedSessions

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

      public long getGlobalRequestCounter()