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
Modifier and TypeFieldDescriptionprotected long
protected static NuxeoHttpSessionMonitor
static final String
static final long
static final String
protected Map<String,
SessionInfo> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddEntry
(javax.servlet.http.HttpSession session) associatedUser
(javax.servlet.http.HttpServletRequest request) associatedUser
(javax.servlet.http.HttpSession session, String userName) long
getSortedSessions
(long maxInactivity) protected void
static NuxeoHttpSessionMonitor
instance()
void
removeEntry
(String sid) void
removeEntry
(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_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()
-