org.mobicents.servlet.sip.startup
Class SipStandardContext

java.lang.Object
  extended by org.apache.catalina.util.LifecycleBase
      extended by org.apache.catalina.util.LifecycleMBeanBase
          extended by org.apache.catalina.core.ContainerBase
              extended by org.apache.catalina.core.StandardContext
                  extended by org.mobicents.servlet.sip.startup.SipStandardContext
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.apache.catalina.Container, org.apache.catalina.Context, org.apache.catalina.Lifecycle, SipContext

public class SipStandardContext
extends org.apache.catalina.core.StandardContext
implements SipContext

Sip implementation of the Context interface extending the standard tomcat context to allow deployment of converged applications (sip & web apps) as well as standalone sip servlets applications.

Author:
Jean Deruelle

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.catalina.core.ContainerBase
org.apache.catalina.core.ContainerBase.ContainerBackgroundProcessor, org.apache.catalina.core.ContainerBase.PrivilegedAddChild
 
Field Summary
protected  java.lang.String applicationName
           
protected  java.util.Map<java.lang.String,org.apache.catalina.Container> childrenMap
           
protected  java.util.Map<java.lang.String,org.apache.catalina.Container> childrenMapByClassName
           
protected  ConcurrencyControlMode concurrencyControlMode
           
protected  java.lang.String description
           
protected  boolean hasDistributableManager
           
protected  java.lang.String largeIcon
           
protected  java.lang.String namingContextName
           
protected  int proxyTimeout
           
protected  ProxyTimerService proxyTimerService
           
protected  SipApplicationSessionTimerService sasTimerService
           
protected  SipApplicationDispatcher sipApplicationDispatcher
           
protected  java.lang.reflect.Method sipApplicationKeyMethod
           
protected  java.util.List<java.lang.String> sipApplicationListeners
          The set of sip application listener class names configured for this application, in the order they were encountered in the sip.xml file.
protected  int sipApplicationSessionTimeout
           
protected  SipFactoryFacade sipFactoryFacade
           
protected  boolean sipJNDIContextLoaded
           
protected  TomcatSipListenersHolder sipListeners
           
protected  SipLoginConfig sipLoginConfig
           
protected  java.util.List<SipServletMapping> sipServletMappings
          The set of sip servlet mapping configured for this application.
protected  SipSessionsUtilImpl sipSessionsUtil
           
protected  java.lang.String smallIcon
           
protected  SipServletTimerService timerService
           
 
Fields inherited from class org.apache.catalina.core.StandardContext
allowLinking, cacheMaxSize, cacheObjectMaxSize, cacheTTL, context, urlEncoder
 
Fields inherited from class org.apache.catalina.core.ContainerBase
accessLog, backgroundProcessorDelay, children, cluster, listeners, loader, logName, manager, name, parent, parentClassLoader, pipeline, realm, resources, sm, startChildren, support
 
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase
mserver
 
Fields inherited from interface org.mobicents.servlet.sip.startup.SipContext
APPLICATION_SIP_XML, LOAD_BALANCER
 
Fields inherited from interface org.apache.catalina.Context
ADD_WELCOME_FILE_EVENT, CLEAR_WELCOME_FILES_EVENT, RELOAD_EVENT, REMOVE_WELCOME_FILE_EVENT
 
Fields inherited from interface org.apache.catalina.Container
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
SipStandardContext()
           
 
Method Summary
 void addChild(org.apache.catalina.Container container)
           
 void addChild(SipServletImpl sipServletImpl)
           
 void addConstraint(SipSecurityConstraint securityConstraint)
           
 void addSipApplicationListener(java.lang.String listener)
          Add a new Listener class name to the set of Listeners configured for this application.
 void addSipServletMapping(SipServletMapping sipServletMapping)
          
 org.apache.catalina.Wrapper createWrapper()
           
 void enterSipApp(MobicentsSipApplicationSession sipApplicationSession, MobicentsSipSession sipSession)
           
 void enterSipAppHa(boolean startCacheActivity)
           
 void exitSipApp(MobicentsSipApplicationSession sipApplicationSession, MobicentsSipSession sipSession)
           
 void exitSipAppHa(SipServletRequestImpl request, SipServletResponseImpl response)
           
 org.apache.catalina.Container findChildrenByClassName(java.lang.String className)
          
 org.apache.catalina.Container findChildrenByName(java.lang.String name)
          
 java.lang.String[] findSipApplicationListeners()
          Return the set of sip application listener class names configured for this application.
 java.util.List<SipServletMapping> findSipServletMappings()
          
 SipServletMapping findSipServletMappings(SipServletRequest sipServletRequest)
          
 java.lang.String getApplicationName()
           
 java.lang.String getApplicationNameHashed()
           
 java.lang.String getBasePath()
          Get base path.
 java.util.Map<java.lang.String,org.apache.catalina.Container> getChildrenMap()
          
 ConcurrencyControlMode getConcurrencyControlMode()
           
 java.lang.String getDescription()
           
 java.lang.String getEngineName()
           
 java.lang.String getInfo()
           
 java.lang.String getJbossBasePath()
           
 java.lang.String getLargeIcon()
           
 SipListenersHolder getListeners()
           
 org.apache.catalina.deploy.LoginConfig getLoginConfig()
           
 java.lang.String getMainServlet()
           
 org.apache.catalina.Manager getManager()
           
 int getProxyTimeout()
           
 ProxyTimerService getProxyTimerService()
           
 javax.servlet.ServletContext getServletContext()
           
 java.lang.String getServletHandler()
           
 SipApplicationDispatcher getSipApplicationDispatcher()
           
 java.lang.reflect.Method getSipApplicationKeyMethod()
           
 int getSipApplicationSessionTimeout()
           
 SipApplicationSessionTimerService getSipApplicationSessionTimerService()
           
 SipFactoryFacade getSipFactoryFacade()
           
 SipInstanceManager getSipInstanceManager()
           
 SipLoginConfig getSipLoginConfig()
           
 SipManager getSipManager()
          
 SipRubyController getSipRubyController()
           
 SipSessionsUtilImpl getSipSessionsUtil()
           
 java.lang.String getSmallIcon()
           
 TimerService getTimerService()
           
 boolean hasDistributableManager()
           
 void initInternal()
           
 boolean isMainServlet()
           
 boolean listenerStart()
           
 boolean listenerStop()
           
 void loadOnStartup(org.apache.catalina.Container[] containers)
           
protected  void loadSipJNDIContext()
           
 boolean notifySipContextListeners(SipContextEvent event)
          Notifies the sip servlet listeners that the servlet has been initialized and that it is ready for service
protected  void prepareServletContext()
           
 void removeChild(SipServletImpl sipServletImpl)
           
 void removeConstraint(SipSecurityConstraint securityConstraint)
           
 void removeSipApplicationListener(java.lang.String listener)
          Remove the specified application listener class from the set of listeners for this application.
 void removeSipServletMapping(SipServletMapping sipServletMapping)
          
protected  void setApplicationDispatcher()
           
 void setApplicationName(java.lang.String applicationName)
           
 void setConcurrencyControlMode(ConcurrencyControlMode mode)
           
 void setDescription(java.lang.String description)
           
 void setLargeIcon(java.lang.String largeIcon)
           
 void setListeners(SipListenersHolder listeners)
           
 void setLoginConfig(org.apache.catalina.deploy.LoginConfig config)
           
 void setMainServlet(java.lang.String mainServlet)
           
 void setManager(org.apache.catalina.Manager manager)
           
 void setProxyTimeout(int proxyTimeout)
           
 void setServletHandler(java.lang.String servletHandler)
           
 void setSipApplicationKeyMethod(java.lang.reflect.Method sipApplicationKeyMethod)
           
 void setSipApplicationSessionTimeout(int sipApplicationSessionTimeout)
           
 void setSipLoginConfig(SipLoginConfig config)
           
 void setSipRubyController(SipRubyController rubyController)
           
 void setSmallIcon(java.lang.String smallIcon)
           
 void startInternal()
           
 void stopInternal()
           
 
Methods inherited from class org.apache.catalina.core.StandardContext
addApplicationEventListener, addApplicationLifecycleListener, addApplicationListener, addApplicationParameter, addConstraint, addErrorPage, addFilterDef, addFilterMap, addFilterMapBefore, addInstanceListener, addLocaleEncodingMappingParameter, addMessageDestination, addMessageDestinationRef, addMimeMapping, addNotificationListener, addParameter, addResourceJarUrl, addRoleMapping, addSecurityRole, addServletContainerInitializer, addServletMapping, addServletMapping, addServletSecurity, addWatchedResource, addWelcomeFile, addWrapperLifecycle, addWrapperListener, adjustURLPattern, destroyInternal, dynamicServletAdded, dynamicServletCreated, engineBase, filterStart, filterStop, findApplicationListeners, findApplicationParameters, findConstraints, findErrorPage, findErrorPage, findErrorPages, findFilterConfig, findFilterDef, findFilterDefs, findFilterMaps, findInstanceListeners, findMappingObject, findMessageDestination, findMessageDestinationRef, findMessageDestinationRefs, findMessageDestinations, findMimeMapping, findMimeMappings, findParameter, findParameters, findRoleMapping, findSecurityRole, findSecurityRoles, findServletMapping, findServletMappings, findStaticResources, findStatusPage, findStatusPages, findWatchedResources, findWelcomeFile, findWelcomeFiles, findWrapperLifecycles, findWrapperListeners, fireRequestDestroyEvent, fireRequestInitEvent, getAliases, getAltDDName, getAntiJARLocking, getAntiResourceLocking, getAppBase, getApplicationEventListeners, getApplicationLifecycleListeners, getAuthenticator, getAvailable, getBaseName, getCacheMaxSize, getCacheObjectMaxSize, getCacheTTL, getCharsetMapper, getCharsetMapperClass, getClearReferencesStatic, getClearReferencesStopThreads, getClearReferencesStopTimerThreads, getClearReferencesThreadLocals, getCompilerClasspath, getConfigBase, getConfigFile, getConfigured, getCookies, getCrossContext, getDefaultContextXml, getDefaultWebXml, getDelegate, getDeploymentDescriptor, getDisplayName, getDistributable, getDocBase, getEffectiveMajorVersion, getEffectiveMinorVersion, getEncodedPath, getHostname, getIgnoreAnnotations, getInstanceManager, getJ2EEApplication, getJ2EEServer, getJarScanner, getJavaVMs, getJspConfigDescriptor, getLogEffectiveWebXml, getMapper, getNamingContextListener, getNamingResources, getNotificationInfo, getObjectNameKeyProperties, getOriginalDocBase, getOverride, getParentClassLoader, getPath, getPaused, getPrivileged, getProcessingTime, getProcessTlds, getPublicId, getRealPath, getReloadable, getResourceOnlyServlets, getServer, getServlets, getSessionCookieDomain, getSessionCookieName, getSessionCookiePath, getSessionTimeout, getStartTime, getStartupTime, getStaticResources, getSwallowOutput, getTldNamespaceAware, getTldScanTime, getTldValidation, getUnloadDelay, getUnpackWAR, getUseHttpOnly, getWebappVersion, getWelcomeFiles, getWorkDir, getWorkPath, getWrapperClass, getXmlNamespaceAware, getXmlValidation, isAllowLinking, isCachingAllowed, isEventProvider, isFilesystemBased, isReplaceWelcomeFiles, isResourceOnlyServlet, isSaveConfig, isServlet22, isStateManageable, isStatisticsProvider, isUseNaming, reload, removeApplicationListener, removeApplicationParameter, removeChild, removeConstraint, removeErrorPage, removeFilterDef, removeFilterMap, removeInstanceListener, removeMessageDestination, removeMessageDestinationRef, removeMimeMapping, removeNotificationListener, removeNotificationListener, removeParameter, removeRoleMapping, removeSecurityRole, removeServletMapping, removeWatchedResource, removeWelcomeFile, removeWrapperLifecycle, removeWrapperListener, resourcesStart, resourcesStop, setAliases, setAllowLinking, setAltDDName, setAntiJARLocking, setAntiResourceLocking, setApplicationEventListeners, setApplicationLifecycleListeners, setCacheMaxSize, setCacheObjectMaxSize, setCacheTTL, setCachingAllowed, setCharsetMapper, setCharsetMapperClass, setClearReferencesStatic, setClearReferencesStopThreads, setClearReferencesStopTimerThreads, setClearReferencesThreadLocals, setCompilerClasspath, setConfigFile, setConfigured, setCookies, setCrossContext, setDefaultContextXml, setDefaultWebXml, setDelegate, setDisplayName, setDistributable, setDocBase, setEffectiveMajorVersion, setEffectiveMinorVersion, setIgnoreAnnotations, setInstanceManager, setJ2EEApplication, setJ2EEServer, setJarScanner, setJavaVMs, setLoader, setLogEffectiveWebXml, setNamingContextListener, setNamingResources, setOriginalDocBase, setOverride, setPath, setPrivileged, setProcessTlds, setPublicId, setReloadable, setReplaceWelcomeFiles, setResourceOnlyServlets, setResources, setSaveConfig, setServer, setSessionCookieDomain, setSessionCookieName, setSessionCookiePath, setSessionTimeout, setStartupTime, setSwallowOutput, setTldNamespaceAware, setTldScanTime, setTldValidation, setUnloadDelay, setUnpackWAR, setUseHttpOnly, setUseNaming, setWebappVersion, setWorkDir, setWrapperClass, setXmlNamespaceAware, setXmlValidation, startRecursive, toString
 
Methods inherited from class org.apache.catalina.core.ContainerBase
addContainerListener, addPropertyChangeListener, addValve, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getChildren, getCluster, getDomainInternal, getLoader, getLogger, getMappingObject, getName, getParent, getPipeline, getRealm, getResources, getStartChildren, invoke, logAccess, logName, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setName, setParent, setParentClassLoader, setRealm, setStartChildren, threadStart, threadStop
 
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase
getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
 
Methods inherited from class org.apache.catalina.util.LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mobicents.servlet.sip.startup.SipContext
addConstraint, removeConstraint
 
Methods inherited from interface org.apache.catalina.Context
addApplicationListener, addApplicationParameter, addErrorPage, addFilterDef, addFilterMap, addFilterMapBefore, addInstanceListener, addLocaleEncodingMappingParameter, addMimeMapping, addParameter, addResourceJarUrl, addRoleMapping, addSecurityRole, addServletContainerInitializer, addServletMapping, addServletMapping, addServletSecurity, addWatchedResource, addWelcomeFile, addWrapperLifecycle, addWrapperListener, findApplicationListeners, findApplicationParameters, findConstraints, findErrorPage, findErrorPage, findErrorPages, findFilterDef, findFilterDefs, findFilterMaps, findInstanceListeners, findMimeMapping, findMimeMappings, findParameter, findParameters, findRoleMapping, findSecurityRole, findSecurityRoles, findServletMapping, findServletMappings, findStatusPage, findStatusPages, findWatchedResources, findWelcomeFile, findWelcomeFiles, findWrapperLifecycles, findWrapperListeners, fireRequestDestroyEvent, fireRequestInitEvent, getAltDDName, getApplicationEventListeners, getApplicationLifecycleListeners, getAuthenticator, getAvailable, getBaseName, getCharsetMapper, getConfigFile, getConfigured, getCookies, getCrossContext, getDisplayName, getDistributable, getDocBase, getEffectiveMajorVersion, getEffectiveMinorVersion, getEncodedPath, getIgnoreAnnotations, getJarScanner, getJspConfigDescriptor, getLogEffectiveWebXml, getMapper, getNamingResources, getOverride, getPath, getPaused, getPrivileged, getPublicId, getRealPath, getReloadable, getResourceOnlyServlets, getSessionCookieDomain, getSessionCookieName, getSessionCookiePath, getSessionTimeout, getSwallowOutput, getTldNamespaceAware, getTldValidation, getUseHttpOnly, getWebappVersion, getWrapperClass, getXmlNamespaceAware, getXmlValidation, isResourceOnlyServlet, isServlet22, reload, removeApplicationListener, removeApplicationParameter, removeErrorPage, removeFilterDef, removeFilterMap, removeInstanceListener, removeMimeMapping, removeParameter, removeRoleMapping, removeSecurityRole, removeServletMapping, removeWatchedResource, removeWelcomeFile, removeWrapperLifecycle, removeWrapperListener, setAltDDName, setApplicationEventListeners, setApplicationLifecycleListeners, setCharsetMapper, setConfigFile, setConfigured, setCookies, setCrossContext, setDisplayName, setDistributable, setDocBase, setEffectiveMajorVersion, setEffectiveMinorVersion, setIgnoreAnnotations, setJarScanner, setLogEffectiveWebXml, setNamingResources, setOverride, setPath, setPrivileged, setPublicId, setReloadable, setResourceOnlyServlets, setSessionCookieDomain, setSessionCookieName, setSessionCookiePath, setSessionTimeout, setSwallowOutput, setTldNamespaceAware, setTldValidation, setUseHttpOnly, setWebappVersion, setWrapperClass, setXmlNamespaceAware, setXmlValidation
 
Methods inherited from interface org.apache.catalina.Container
addContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getCluster, getLoader, getLogger, getMappingObject, getName, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, invoke, logAccess, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setName, setParent, setParentClassLoader, setRealm, setResources
 
Methods inherited from interface org.apache.catalina.Lifecycle
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
 

Field Detail

applicationName

protected java.lang.String applicationName

smallIcon

protected java.lang.String smallIcon

largeIcon

protected java.lang.String largeIcon

description

protected java.lang.String description

proxyTimeout

protected int proxyTimeout

sipApplicationSessionTimeout

protected int sipApplicationSessionTimeout

sipListeners

protected transient TomcatSipListenersHolder sipListeners

sipFactoryFacade

protected transient SipFactoryFacade sipFactoryFacade

sipSessionsUtil

protected transient SipSessionsUtilImpl sipSessionsUtil

sipLoginConfig

protected transient SipLoginConfig sipLoginConfig

hasDistributableManager

protected boolean hasDistributableManager

namingContextName

protected java.lang.String namingContextName

sipApplicationKeyMethod

protected transient java.lang.reflect.Method sipApplicationKeyMethod

concurrencyControlMode

protected ConcurrencyControlMode concurrencyControlMode

sipApplicationListeners

protected transient java.util.List<java.lang.String> sipApplicationListeners
The set of sip application listener class names configured for this application, in the order they were encountered in the sip.xml file.


sipServletMappings

protected transient java.util.List<SipServletMapping> sipServletMappings
The set of sip servlet mapping configured for this application.


sipApplicationDispatcher

protected transient SipApplicationDispatcher sipApplicationDispatcher

childrenMap

protected transient java.util.Map<java.lang.String,org.apache.catalina.Container> childrenMap

childrenMapByClassName

protected transient java.util.Map<java.lang.String,org.apache.catalina.Container> childrenMapByClassName

sipJNDIContextLoaded

protected boolean sipJNDIContextLoaded

sasTimerService

protected transient SipApplicationSessionTimerService sasTimerService

timerService

protected transient SipServletTimerService timerService

proxyTimerService

protected transient ProxyTimerService proxyTimerService
Constructor Detail

SipStandardContext

public SipStandardContext()
Method Detail

initInternal

public void initInternal()
                  throws org.apache.catalina.LifecycleException
Overrides:
initInternal in class org.apache.catalina.core.StandardContext
Throws:
org.apache.catalina.LifecycleException

prepareServletContext

protected void prepareServletContext()
                              throws org.apache.catalina.LifecycleException
Throws:
org.apache.catalina.LifecycleException

setApplicationDispatcher

protected void setApplicationDispatcher()
                                 throws org.apache.catalina.LifecycleException
Throws:
java.lang.Exception
org.apache.catalina.LifecycleException

startInternal

public void startInternal()
                   throws org.apache.catalina.LifecycleException
Overrides:
startInternal in class org.apache.catalina.core.StandardContext
Throws:
org.apache.catalina.LifecycleException

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in interface org.apache.catalina.Context
Overrides:
getServletContext in class org.apache.catalina.core.StandardContext

listenerStart

public boolean listenerStart()
Overrides:
listenerStart in class org.apache.catalina.core.StandardContext

listenerStop

public boolean listenerStop()
Overrides:
listenerStop in class org.apache.catalina.core.StandardContext

getBasePath

public java.lang.String getBasePath()
Get base path. Copy pasted from StandardContext Tomcat class

Specified by:
getBasePath in interface SipContext
Overrides:
getBasePath in class org.apache.catalina.core.StandardContext

stopInternal

public void stopInternal()
                  throws org.apache.catalina.LifecycleException
Overrides:
stopInternal in class org.apache.catalina.core.StandardContext
Throws:
org.apache.catalina.LifecycleException

loadOnStartup

public void loadOnStartup(org.apache.catalina.Container[] containers)
Overrides:
loadOnStartup in class org.apache.catalina.core.StandardContext

loadSipJNDIContext

protected void loadSipJNDIContext()

createWrapper

public org.apache.catalina.Wrapper createWrapper()
Specified by:
createWrapper in interface org.apache.catalina.Context
Overrides:
createWrapper in class org.apache.catalina.core.StandardContext

addChild

public void addChild(org.apache.catalina.Container container)
Specified by:
addChild in interface org.apache.catalina.Container
Overrides:
addChild in class org.apache.catalina.core.StandardContext

addChild

public void addChild(SipServletImpl sipServletImpl)
Specified by:
addChild in interface SipContext

removeChild

public void removeChild(SipServletImpl sipServletImpl)
Specified by:
removeChild in interface SipContext

getChildrenMap

public java.util.Map<java.lang.String,org.apache.catalina.Container> getChildrenMap()

Specified by:
getChildrenMap in interface SipContext

findChildrenByName

public org.apache.catalina.Container findChildrenByName(java.lang.String name)

Specified by:
findChildrenByName in interface SipContext

findChildrenByClassName

public org.apache.catalina.Container findChildrenByClassName(java.lang.String className)

Specified by:
findChildrenByClassName in interface SipContext

getApplicationName

public java.lang.String getApplicationName()
Specified by:
getApplicationName in interface SipContext

getApplicationNameHashed

public java.lang.String getApplicationNameHashed()
Specified by:
getApplicationNameHashed in interface SipContext

setApplicationName

public void setApplicationName(java.lang.String applicationName)
Specified by:
setApplicationName in interface SipContext

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface SipContext

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface SipContext

getLargeIcon

public java.lang.String getLargeIcon()
Specified by:
getLargeIcon in interface SipContext

setLargeIcon

public void setLargeIcon(java.lang.String largeIcon)
Specified by:
setLargeIcon in interface SipContext

getListeners

public SipListenersHolder getListeners()
Specified by:
getListeners in interface SipContext

setListeners

public void setListeners(SipListenersHolder listeners)
Specified by:
setListeners in interface SipContext

isMainServlet

public boolean isMainServlet()
Specified by:
isMainServlet in interface SipContext

getMainServlet

public java.lang.String getMainServlet()
Specified by:
getMainServlet in interface SipContext

setMainServlet

public void setMainServlet(java.lang.String mainServlet)
Specified by:
setMainServlet in interface SipContext

getProxyTimeout

public int getProxyTimeout()
Specified by:
getProxyTimeout in interface SipContext

setProxyTimeout

public void setProxyTimeout(int proxyTimeout)
Specified by:
setProxyTimeout in interface SipContext

addConstraint

public void addConstraint(SipSecurityConstraint securityConstraint)

removeConstraint

public void removeConstraint(SipSecurityConstraint securityConstraint)

getSmallIcon

public java.lang.String getSmallIcon()
Specified by:
getSmallIcon in interface SipContext

setSmallIcon

public void setSmallIcon(java.lang.String smallIcon)
Specified by:
setSmallIcon in interface SipContext

setLoginConfig

public void setLoginConfig(org.apache.catalina.deploy.LoginConfig config)
Specified by:
setLoginConfig in interface org.apache.catalina.Context
Overrides:
setLoginConfig in class org.apache.catalina.core.StandardContext

getLoginConfig

public org.apache.catalina.deploy.LoginConfig getLoginConfig()
Specified by:
getLoginConfig in interface org.apache.catalina.Context
Overrides:
getLoginConfig in class org.apache.catalina.core.StandardContext

setSipLoginConfig

public void setSipLoginConfig(SipLoginConfig config)
Specified by:
setSipLoginConfig in interface SipContext

getSipLoginConfig

public SipLoginConfig getSipLoginConfig()
Specified by:
getSipLoginConfig in interface SipContext

addSipApplicationListener

public void addSipApplicationListener(java.lang.String listener)
Add a new Listener class name to the set of Listeners configured for this application.

Specified by:
addSipApplicationListener in interface SipContext
Parameters:
listener - Java class name of a listener class

removeSipApplicationListener

public void removeSipApplicationListener(java.lang.String listener)
Remove the specified application listener class from the set of listeners for this application.

Specified by:
removeSipApplicationListener in interface SipContext
Parameters:
listener - Java class name of the listener to be removed

findSipApplicationListeners

public java.lang.String[] findSipApplicationListeners()
Return the set of sip application listener class names configured for this application.

Specified by:
findSipApplicationListeners in interface SipContext

getSipApplicationDispatcher

public SipApplicationDispatcher getSipApplicationDispatcher()
Specified by:
getSipApplicationDispatcher in interface SipContext
Returns:
the sipApplicationDispatcher

getSipFactoryFacade

public SipFactoryFacade getSipFactoryFacade()
Specified by:
getSipFactoryFacade in interface SipContext
Returns:
the sipFactoryFacade

getSipSessionsUtil

public SipSessionsUtilImpl getSipSessionsUtil()
Specified by:
getSipSessionsUtil in interface SipContext
Returns:
the sipSessionsUtil

getTimerService

public TimerService getTimerService()
Specified by:
getTimerService in interface SipContext
Returns:
the timerService

getProxyTimerService

public ProxyTimerService getProxyTimerService()
Specified by:
getProxyTimerService in interface SipContext
Returns:
the proxyTimerService

setManager

public void setManager(org.apache.catalina.Manager manager)
Specified by:
setManager in interface org.apache.catalina.Container
Overrides:
setManager in class org.apache.catalina.core.ContainerBase

getManager

public org.apache.catalina.Manager getManager()
Specified by:
getManager in interface org.apache.catalina.Container
Overrides:
getManager in class org.apache.catalina.core.ContainerBase

getSipApplicationSessionTimeout

public int getSipApplicationSessionTimeout()
Specified by:
getSipApplicationSessionTimeout in interface SipContext
Returns:
the sipApplicationSessionTimeout in minutes

setSipApplicationSessionTimeout

public void setSipApplicationSessionTimeout(int sipApplicationSessionTimeout)
Specified by:
setSipApplicationSessionTimeout in interface SipContext
Parameters:
sipApplicationSessionTimeout - the sipApplicationSessionTimeout to set in minutes

getSipApplicationKeyMethod

public java.lang.reflect.Method getSipApplicationKeyMethod()
Specified by:
getSipApplicationKeyMethod in interface SipContext

setSipApplicationKeyMethod

public void setSipApplicationKeyMethod(java.lang.reflect.Method sipApplicationKeyMethod)
Specified by:
setSipApplicationKeyMethod in interface SipContext

getJbossBasePath

public java.lang.String getJbossBasePath()

addSipServletMapping

public void addSipServletMapping(SipServletMapping sipServletMapping)

Specified by:
addSipServletMapping in interface SipContext

findSipServletMappings

public java.util.List<SipServletMapping> findSipServletMappings()

Specified by:
findSipServletMappings in interface SipContext

findSipServletMappings

public SipServletMapping findSipServletMappings(SipServletRequest sipServletRequest)

Specified by:
findSipServletMappings in interface SipContext

removeSipServletMapping

public void removeSipServletMapping(SipServletMapping sipServletMapping)

Specified by:
removeSipServletMapping in interface SipContext

getSipManager

public final SipManager getSipManager()

Specified by:
getSipManager in interface SipContext

getInfo

public java.lang.String getInfo()
Specified by:
getInfo in interface org.apache.catalina.Container
Overrides:
getInfo in class org.apache.catalina.core.StandardContext

notifySipContextListeners

public boolean notifySipContextListeners(SipContextEvent event)
Notifies the sip servlet listeners that the servlet has been initialized and that it is ready for service

Specified by:
notifySipContextListeners in interface SipContext
Parameters:
sipContext - the sip context of the application where the listeners reside.
Returns:
true if all listeners have been notified correctly

enterSipApp

public void enterSipApp(MobicentsSipApplicationSession sipApplicationSession,
                        MobicentsSipSession sipSession)
Specified by:
enterSipApp in interface SipContext

exitSipApp

public void exitSipApp(MobicentsSipApplicationSession sipApplicationSession,
                       MobicentsSipSession sipSession)
Specified by:
exitSipApp in interface SipContext

getConcurrencyControlMode

public ConcurrencyControlMode getConcurrencyControlMode()
Specified by:
getConcurrencyControlMode in interface SipContext

setConcurrencyControlMode

public void setConcurrencyControlMode(ConcurrencyControlMode mode)
Specified by:
setConcurrencyControlMode in interface SipContext

getSipRubyController

public SipRubyController getSipRubyController()
Specified by:
getSipRubyController in interface SipContext

setSipRubyController

public void setSipRubyController(SipRubyController rubyController)
Specified by:
setSipRubyController in interface SipContext

getSipApplicationSessionTimerService

public SipApplicationSessionTimerService getSipApplicationSessionTimerService()
Specified by:
getSipApplicationSessionTimerService in interface SipContext

hasDistributableManager

public boolean hasDistributableManager()
Specified by:
hasDistributableManager in interface SipContext

getServletHandler

public java.lang.String getServletHandler()
Specified by:
getServletHandler in interface SipContext
Returns:
the servletHandler

setServletHandler

public void setServletHandler(java.lang.String servletHandler)
Specified by:
setServletHandler in interface SipContext
Parameters:
servletHandler - the servletHandler to set

getEngineName

public java.lang.String getEngineName()
Specified by:
getEngineName in interface SipContext

enterSipAppHa

public void enterSipAppHa(boolean startCacheActivity)
Specified by:
enterSipAppHa in interface SipContext

exitSipAppHa

public void exitSipAppHa(SipServletRequestImpl request,
                         SipServletResponseImpl response)
Specified by:
exitSipAppHa in interface SipContext

getSipInstanceManager

public SipInstanceManager getSipInstanceManager()
Specified by:
getSipInstanceManager in interface SipContext


Copyright © 2010. All Rights Reserved.