Class NuxeoHttpSessionMonitor
java.lang.Object
org.nuxeo.ecm.platform.web.common.session.NuxeoHttpSessionMonitor
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 Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected static NuxeoHttpSessionMonitorstatic final Stringstatic final longstatic final Stringprotected Map<String, SessionInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntry(jakarta.servlet.http.HttpSession session) associatedUser(jakarta.servlet.http.HttpServletRequest request) associatedUser(jakarta.servlet.http.HttpSession session, String userName) longgetSortedSessions(long maxInactivity) protected voidstatic NuxeoHttpSessionMonitorinstance()voidremoveEntry(String sid) voidremoveEntry(String sid, boolean invalidate) Remove the associated session.updateEntry(jakarta.servlet.http.HttpServletRequest request)
-
Field Details
-
REQUEST_COUNTER
- See Also:
-
SESSION_COUNTER
- See Also:
-
REQUEST_COUNTER_STEP
public static final long REQUEST_COUNTER_STEP- See Also:
-
instance
-
globalRequestCounter
protected long globalRequestCounter -
sessionTracker
-
-
Constructor Details
-
NuxeoHttpSessionMonitor
public NuxeoHttpSessionMonitor()
-
-
Method Details
-
instance
-
increaseRequestCounter
protected void increaseRequestCounter() -
addEntry
-
associatedUser
-
associatedUser
-
updateEntry
-
removeEntry
-
removeEntry
Remove the associated session.- Parameters:
sid- the session idinvalidate- should the session be invalidated- Since:
- 2023.3
-
getTrackedSessions
-
getSortedSessions
-
getSortedSessions
-
getGlobalRequestCounter
public long getGlobalRequestCounter()
-