Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.web.common.session
Class NuxeoHttpSessionMonitor

java.lang.Object
  extended by 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 (tdelprat@nuxeo.com)

Field Summary
static String REQUEST_COUNTER
           
static long REQUEST_COUNTER_STEP
           
static String SESSION_COUNTER
           
 
Constructor Summary
NuxeoHttpSessionMonitor()
           
 
Method Summary
 SessionInfo addEntry(HttpSession session)
           
 SessionInfo associatedUser(HttpServletRequest request)
           
 SessionInfo associatedUser(HttpSession session, String userName)
           
 long getGlobalRequestCounter()
           
 List<SessionInfo> getSortedSessions()
           
 List<SessionInfo> getSortedSessions(long maxInactivity)
           
 Collection<SessionInfo> getTrackedSessions()
           
static NuxeoHttpSessionMonitor instance()
           
 void removeEntry(String sid)
           
 SessionInfo updateEntry(HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_COUNTER

public static final String REQUEST_COUNTER
See Also:
Constant Field Values

SESSION_COUNTER

public static final String SESSION_COUNTER
See Also:
Constant Field Values

REQUEST_COUNTER_STEP

public static final long REQUEST_COUNTER_STEP
See Also:
Constant Field Values
Constructor Detail

NuxeoHttpSessionMonitor

public NuxeoHttpSessionMonitor()
Method Detail

instance

public static NuxeoHttpSessionMonitor instance()

addEntry

public SessionInfo addEntry(HttpSession session)

associatedUser

public SessionInfo associatedUser(HttpServletRequest request)

associatedUser

public SessionInfo associatedUser(HttpSession session,
                                  String userName)

updateEntry

public SessionInfo updateEntry(HttpServletRequest request)

removeEntry

public void removeEntry(String sid)

getTrackedSessions

public Collection<SessionInfo> getTrackedSessions()

getSortedSessions

public List<SessionInfo> getSortedSessions()

getSortedSessions

public List<SessionInfo> getSortedSessions(long maxInactivity)

getGlobalRequestCounter

public long getGlobalRequestCounter()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.