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 SummaryFieldsModifier and TypeFieldDescriptionprotected longprotected static NuxeoHttpSessionMonitorstatic final Stringstatic final longstatic final Stringprotected Map<String,SessionInfo> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddEntry(javax.servlet.http.HttpSession session) associatedUser(javax.servlet.http.HttpServletRequest request) associatedUser(javax.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(javax.servlet.http.HttpServletRequest request) 
- 
Field Details- 
REQUEST_COUNTER- See Also:
 
- 
SESSION_COUNTER- See Also:
 
- 
REQUEST_COUNTER_STEPpublic static final long REQUEST_COUNTER_STEP- See Also:
 
- 
instance
- 
globalRequestCounterprotected long globalRequestCounter
- 
sessionTracker
 
- 
- 
Constructor Details- 
NuxeoHttpSessionMonitorpublic NuxeoHttpSessionMonitor()
 
- 
- 
Method Details- 
instance
- 
increaseRequestCounterprotected void increaseRequestCounter()
- 
addEntry
- 
associatedUser
- 
associatedUser
- 
updateEntry
- 
removeEntry
- 
removeEntryRemove the associated session.- Parameters:
- sid- the session id
- invalidate- should the session be invalidated
- Since:
- 2023.3
 
- 
getTrackedSessions
- 
getSortedSessions
- 
getSortedSessions
- 
getGlobalRequestCounterpublic long getGlobalRequestCounter()
 
-