|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.war.tools.RTConfigContextListener
public class RTConfigContextListener
This class initializes and loads the servlet configuration properties into the Runtime configuration
class RTConfig. A reference to this class is typically placed in the Servlet 'web.xml' file as follows:
<listener> <listener-class>org.opengts.war.tools.RTConfigContextListener</listener-class> </listener>
Nested Class Summary | |
---|---|
static interface |
RTConfigContextListener.HttpSessionFilter
|
Field Summary | |
---|---|
static java.lang.String |
PARM_ACCOUNT
|
static java.lang.String |
PARM_USER
|
static java.lang.String[] |
PROP_DBConfig_init
|
static java.lang.String[] |
PROP_DebugMode
|
static java.lang.Object |
ServletLock
|
Constructor Summary | |
---|---|
RTConfigContextListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
This method is called by the Servlet container when the Servlet context is destroyed |
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
This method is called by the Servlet container when the Servlet context is initialized |
int |
getSessionCount(RTConfigContextListener.HttpSessionFilter filter)
Returns the current number of open sessions |
static int |
GetSessionCount(javax.servlet.ServletContext sc)
Returns the current number of sessions |
static int |
GetSessionCount(javax.servlet.ServletContext sc,
RTConfigContextListener.HttpSessionFilter filter)
Returns the current number of sessions matching the specified filter |
static javax.servlet.http.HttpSession |
GetSessionForID(javax.servlet.ServletContext sc,
java.lang.String id)
Gets the HttpSession for the specified id (JSESSIONID) |
javax.servlet.http.HttpSession |
getSessionForID(java.lang.String id)
Gets the HttpSession for the specified id (JSESSIONID) |
java.util.Collection<javax.servlet.http.HttpSession> |
getSessions()
Returns a list of current HttpSession instances |
void |
sessionCreated(javax.servlet.http.HttpSessionEvent se)
This method is called by the Servlet container when a HttpSession is created |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
This method is called by the Servlet container when a HttpSession is destroyed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARM_ACCOUNT
public static final java.lang.String PARM_USER
public static final java.lang.String[] PROP_DebugMode
public static final java.lang.String[] PROP_DBConfig_init
public static final java.lang.Object ServletLock
Constructor Detail |
---|
public RTConfigContextListener()
Method Detail |
---|
public static int GetSessionCount(javax.servlet.ServletContext sc)
sc
- The ServletContext
public static int GetSessionCount(javax.servlet.ServletContext sc, RTConfigContextListener.HttpSessionFilter filter)
sc
- The ServletContextfilter
- The HttpSession filter (total session counter returned if filter is null)
public static javax.servlet.http.HttpSession GetSessionForID(javax.servlet.ServletContext sc, java.lang.String id)
sc
- The ServletContextid
- The JSESSIONID
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized
in interface javax.servlet.ServletContextListener
sce
- A ServletContextEvent instancepublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener
sce
- A ServletContextEvent instancepublic void sessionCreated(javax.servlet.http.HttpSessionEvent se)
sessionCreated
in interface javax.servlet.http.HttpSessionListener
se
- The HttpSessionEventpublic void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
sessionDestroyed
in interface javax.servlet.http.HttpSessionListener
se
- The HttpSessionEventpublic javax.servlet.http.HttpSession getSessionForID(java.lang.String id)
id
- The JSESSIONID
public java.util.Collection<javax.servlet.http.HttpSession> getSessions()
public int getSessionCount(RTConfigContextListener.HttpSessionFilter filter)
filter
- The HttpSession filter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |