|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.core.NamingContextListener
org.mobicents.servlet.sip.startup.SipNamingContextListener
public class SipNamingContextListener
Helper class used to initialize and populate the JNDI context associated with each context with the sip factory.
| Field Summary | |
|---|---|
static java.lang.String |
NAMING_CONTEXT_APPNAME_SUBCONTEXT_ADDED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_APPNAME_SUBCONTEXT_REMOVED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_SIP_FACTORY_ADDED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_SIP_FACTORY_REMOVED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_SIP_SESSIONS_UTIL_ADDED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_SIP_SESSIONS_UTIL_REMOVED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_SIP_SUBCONTEXT_ADDED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_SIP_SUBCONTEXT_REMOVED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_TIMER_SERVICE_ADDED_EVENT
|
static java.lang.String |
NAMING_CONTEXT_TIMER_SERVICE_REMOVED_EVENT
|
static java.lang.String |
SIP_FACTORY_JNDI_NAME
|
static java.lang.String |
SIP_SESSIONS_UTIL_JNDI_NAME
|
static java.lang.String |
SIP_SUBCONTEXT
|
static java.lang.String |
TIMER_SERVICE_JNDI_NAME
|
| Fields inherited from class org.apache.catalina.core.NamingContextListener |
|---|
compCtx, container, envCtx, initialized, name, namingContext, namingResources, objectNames, sm |
| Constructor Summary | |
|---|---|
SipNamingContextListener()
|
|
| Method Summary | |
|---|---|
static void |
addAppNameSubContext(javax.naming.Context envCtx,
java.lang.String appName)
Add the application name subcontext from the jndi mapping |
static void |
addSipFactory(javax.naming.Context envCtx,
java.lang.String appName,
SipFactory sipFactory)
Add the sip factory binding from the jndi mapping and bind the sip factory in paramter to it |
static void |
addSipSessionsUtil(javax.naming.Context envCtx,
java.lang.String appName,
SipSessionsUtil sipSessionsUtil)
Add the sip sessions util binding from the jndi mapping and bind the sip sessions util in parameter to it |
static void |
addSipSubcontext(javax.naming.Context envCtx)
Add the sip subcontext to JNDI |
static void |
addTimerService(javax.naming.Context envCtx,
java.lang.String appName,
TimerService timerService)
Add the sip timer service from the jndi mapping and bind the timer service in parameter to it |
void |
containerEvent(org.apache.catalina.ContainerEvent event)
|
void |
lifecycleEvent(org.apache.catalina.LifecycleEvent event)
|
static void |
removeAppNameSubContext(javax.naming.Context envCtx,
java.lang.String appName)
Removes the app name subcontext from the jndi mapping |
static void |
removeSipFactory(javax.naming.Context envCtx,
java.lang.String appName,
SipFactory sipFactory)
Removes the sip factory binding from the jndi mapping |
static void |
removeSipSessionsUtil(javax.naming.Context envCtx,
java.lang.String appName,
SipSessionsUtil sipSessionsUtil)
Removes the sip sessions util binding from the jndi mapping |
static void |
removeSipSubcontext(javax.naming.Context envCtx)
Removes the sip subcontext from JNDI |
static void |
removeTimerService(javax.naming.Context envCtx,
java.lang.String appName,
TimerService timerService)
Removes the Timer Service binding from the jndi mapping |
| Methods inherited from class org.apache.catalina.core.NamingContextListener |
|---|
addEjb, addEnvironment, addLocalEjb, addResource, addResourceEnvRef, addResourceLink, addService, createObjectName, getCompContext, getEnvContext, getName, getNamingContext, propertyChange, removeEjb, removeEnvironment, removeLocalEjb, removeResource, removeResourceEnvRef, removeResourceLink, removeService, setName |
| 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 NAMING_CONTEXT_SIP_SUBCONTEXT_ADDED_EVENT
public static final java.lang.String NAMING_CONTEXT_SIP_SUBCONTEXT_REMOVED_EVENT
public static final java.lang.String NAMING_CONTEXT_APPNAME_SUBCONTEXT_ADDED_EVENT
public static final java.lang.String NAMING_CONTEXT_APPNAME_SUBCONTEXT_REMOVED_EVENT
public static final java.lang.String NAMING_CONTEXT_SIP_FACTORY_ADDED_EVENT
public static final java.lang.String NAMING_CONTEXT_SIP_FACTORY_REMOVED_EVENT
public static final java.lang.String NAMING_CONTEXT_SIP_SESSIONS_UTIL_ADDED_EVENT
public static final java.lang.String NAMING_CONTEXT_SIP_SESSIONS_UTIL_REMOVED_EVENT
public static final java.lang.String NAMING_CONTEXT_TIMER_SERVICE_ADDED_EVENT
public static final java.lang.String NAMING_CONTEXT_TIMER_SERVICE_REMOVED_EVENT
public static final java.lang.String SIP_SUBCONTEXT
public static final java.lang.String SIP_FACTORY_JNDI_NAME
public static final java.lang.String SIP_SESSIONS_UTIL_JNDI_NAME
public static final java.lang.String TIMER_SERVICE_JNDI_NAME
| Constructor Detail |
|---|
public SipNamingContextListener()
| Method Detail |
|---|
public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
lifecycleEvent in interface org.apache.catalina.LifecycleListenerlifecycleEvent in class org.apache.catalina.core.NamingContextListenerpublic void containerEvent(org.apache.catalina.ContainerEvent event)
containerEvent in interface org.apache.catalina.ContainerListenercontainerEvent in class org.apache.catalina.core.NamingContextListenerpublic static void removeSipSubcontext(javax.naming.Context envCtx)
envCtx - the envContext from which the sip subcontext should be removedpublic static void addSipSubcontext(javax.naming.Context envCtx)
envCtx - the envContext to which the sip subcontext should be added
public static void removeAppNameSubContext(javax.naming.Context envCtx,
java.lang.String appName)
appName - sub context Name
public static void addAppNameSubContext(javax.naming.Context envCtx,
java.lang.String appName)
appName - sub context Name
public static void removeSipSessionsUtil(javax.naming.Context envCtx,
java.lang.String appName,
SipSessionsUtil sipSessionsUtil)
appName - the application name subcontextsipSessionsUtil - the sip sessions util to remove
public static void addSipSessionsUtil(javax.naming.Context envCtx,
java.lang.String appName,
SipSessionsUtil sipSessionsUtil)
appName - the application name subcontextsipSessionsUtil - the sip sessions util to add
public static void removeTimerService(javax.naming.Context envCtx,
java.lang.String appName,
TimerService timerService)
appName - the application name subcontexttimerService - the Timer Service to remove
public static void addTimerService(javax.naming.Context envCtx,
java.lang.String appName,
TimerService timerService)
appName - the application name subcontexttimerService - the Timer Service to add
public static void removeSipFactory(javax.naming.Context envCtx,
java.lang.String appName,
SipFactory sipFactory)
appName - the application name subcontextsipFactory - the sip factory to remove
public static void addSipFactory(javax.naming.Context envCtx,
java.lang.String appName,
SipFactory sipFactory)
appName - sipFactory - the sip factory to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||