org.infoglue.cms.util
Class CmsSessionContextListener

java.lang.Object
  extended by org.infoglue.cms.util.CmsSessionContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionListener

public class CmsSessionContextListener
extends java.lang.Object
implements javax.servlet.http.HttpSessionListener

This class keeps track of all sessions created / removed so we can see how many users a site / cms has right now.

Author:
mattias

Field Summary
static java.util.Map sessions
           
 
Constructor Summary
CmsSessionContextListener()
           
 
Method Summary
static int getActiveSessions()
           
static java.util.List getSessionInfoBeanList()
           
 void sessionCreated(javax.servlet.http.HttpSessionEvent se)
           
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessions

public static final java.util.Map sessions
Constructor Detail

CmsSessionContextListener

public CmsSessionContextListener()
Method Detail

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener

getActiveSessions

public static int getActiveSessions()

getSessionInfoBeanList

public static java.util.List getSessionInfoBeanList()


Copyright © 2005 InfoGlue.org All Rights Reserved.