|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.core.ContainerBase
org.apache.catalina.core.StandardContext
org.mobicents.servlet.sip.startup.SipStandardContext
public class SipStandardContext
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.
| 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.lang.String |
description
|
protected java.lang.String |
largeIcon
|
protected SipListenersHolder |
listeners
|
protected java.lang.String |
mainServlet
|
protected java.lang.String |
namingContextName
|
protected int |
proxyTimeout
|
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 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
|
| Fields inherited from class org.apache.catalina.core.StandardContext |
|---|
allowLinking, cacheMaxSize, cacheTTL, caseSensitive, context, urlEncoder |
| Fields inherited from class org.apache.catalina.core.ContainerBase |
|---|
backgroundProcessorDelay, children, cluster, controller, domain, initialized, lifecycle, loader, logName, manager, mserver, name, oname, parent, parentClassLoader, pipeline, realm, resources, sm, startChildren, started, suffix, support, type |
| Fields inherited from interface org.mobicents.servlet.sip.startup.SipContext |
|---|
APPLICATION_SIP_XML |
| Fields inherited from interface org.apache.catalina.Context |
|---|
RELOAD_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_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
SipStandardContext()
|
|
| Method Summary | |
|---|---|
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()
|
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()
|
protected java.lang.String |
getBasePath()
Get base path. |
java.util.Map<java.lang.String,org.apache.catalina.Container> |
getChildrenMap()
|
java.lang.String |
getDescription()
|
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()
|
javax.servlet.ServletContext |
getServletContext()
|
SipApplicationDispatcher |
getSipApplicationDispatcher()
|
java.lang.reflect.Method |
getSipApplicationKeyMethod()
|
int |
getSipApplicationSessionTimeout()
|
SipFactoryFacade |
getSipFactoryFacade()
|
SipLoginConfig |
getSipLoginConfig()
|
SipManager |
getSipManager()
|
SipSessionsUtil |
getSipSessionsUtil()
|
java.lang.String |
getSmallIcon()
|
TimerService |
getTimerService()
|
void |
init()
|
boolean |
listenerStart()
|
boolean |
listenerStop()
|
void |
loadOnStartup(org.apache.catalina.Container[] containers)
|
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 |
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 |
setSipApplicationKeyMethod(java.lang.reflect.Method sipApplicationKeyMethod)
|
void |
setSipApplicationSessionTimeout(int sipApplicationSessionTimeout)
|
void |
setSipLoginConfig(SipLoginConfig config)
|
void |
setSmallIcon(java.lang.String smallIcon)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.catalina.core.StandardContext |
|---|
addApplicationListener, addApplicationParameter, addChild, addConstraint, addErrorPage, addFilterDef, addFilterMap, addInstanceListener, addJspMapping, addLocaleEncodingMappingParameter, addMessageDestination, addMessageDestinationRef, addMimeMapping, addNotificationListener, addParameter, addRoleMapping, addSecurityRole, addServletMapping, addServletMapping, addTaglib, addWatchedResource, addWelcomeFile, addWrapperLifecycle, addWrapperListener, adjustURLPattern, create, createObjectName, destroy, 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, findTaglib, findTaglibs, findWatchedResources, findWelcomeFile, findWelcomeFiles, findWrapperLifecycles, findWrapperListeners, getAltDDName, getAnnotationProcessor, getAntiJARLocking, getAntiResourceLocking, getAppBase, getApplicationEventListeners, getApplicationLifecycleListeners, getAvailable, getCacheMaxSize, getCacheTTL, getCharsetMapper, getCharsetMapperClass, getCompilerClasspath, getConfigBase, getConfigFile, getConfigured, getCookies, getCrossContext, getDefaultConfigFile, getDefaultContextXml, getDefaultWebXml, getDelegate, getDeploymentDescriptor, getDisplayName, getDistributable, getDocBase, getEncodedPath, getEngineName, getHostname, getIgnoreAnnotations, getJ2EEApplication, getJ2EEServer, getJavaVMs, getMapper, getNamingContextListener, getNamingResources, getNotificationInfo, getOriginalDocBase, getOverride, getParentClassLoader, getParentName, getPath, getPaused, getPrivileged, getProcessingTime, getProcessTlds, getPublicId, getReloadable, getServer, getServlets, getSessionTimeout, getStartTime, getStartupTime, getState, getStaticResources, getSwallowOutput, getTldNamespaceAware, getTldScanTime, getTldValidation, getUnloadDelay, getUnpackWAR, getWelcomeFiles, getWorkDir, getWorkPath, getWrapperClass, getXmlNamespaceAware, getXmlValidation, isAllowLinking, isCachingAllowed, isCaseSensitive, isEventProvider, isFilesystemBased, isLazy, isReplaceWelcomeFiles, isSaveConfig, isServlet22, isStateManageable, isStatisticsProvider, isUseNaming, preDeregister, preRegister, processTlds, reload, removeApplicationListener, removeApplicationParameter, removeChild, removeConstraint, removeErrorPage, removeFilterDef, removeFilterMap, removeInstanceListener, removeMessageDestination, removeMessageDestinationRef, removeMimeMapping, removeNotificationListener, removeNotificationListener, removeParameter, removeRoleMapping, removeSecurityRole, removeServletMapping, removeTaglib, removeWatchedResource, removeWelcomeFile, removeWrapperLifecycle, removeWrapperListener, resourcesStart, resourcesStop, setAllowLinking, setAltDDName, setAnnotationProcessor, setAntiJARLocking, setAntiResourceLocking, setApplicationEventListeners, setApplicationLifecycleListeners, setAvailable, setCacheMaxSize, setCacheTTL, setCachingAllowed, setCaseSensitive, setCharsetMapper, setCharsetMapperClass, setCompilerClasspath, setConfigFile, setConfigured, setCookies, setCrossContext, setDefaultContextXml, setDefaultWebXml, setDelegate, setDisplayName, setDistributable, setDocBase, setEngineName, setIgnoreAnnotations, setJ2EEApplication, setJ2EEServer, setJavaVMs, setLazy, setLoader, setName, setNamingContextListener, setNamingResources, setOriginalDocBase, setOverride, setPath, setPrivileged, setProcessTlds, setPublicId, setReloadable, setReplaceWelcomeFiles, setResources, setSaveConfig, setServer, setSessionTimeout, setStartupTime, setSwallowOutput, setTldNamespaceAware, setTldScanTime, setTldValidation, setUnloadDelay, setUnpackWAR, setUseNaming, setWorkDir, setWrapperClass, setXmlNamespaceAware, setXmlValidation, startRecursive, toString |
| Methods inherited from class org.apache.catalina.core.ContainerBase |
|---|
addContainerListener, addLifecycleListener, addPropertyChangeListener, addValve, backgroundProcess, findChild, findChildren, findContainerListeners, findLifecycleListeners, fireContainerEvent, getBackgroundProcessorDelay, getBasic, getChildren, getCluster, getContainerSuffix, getDomain, getFirst, getJmxName, getJSR77Suffix, getLoader, getLogger, getMappingObject, getName, getObjectName, getParent, getPipeline, getRealm, getResources, getStartChildren, getType, getValveObjectNames, getValves, invoke, logName, postDeregister, postRegister, removeContainerListener, removeLifecycleListener, removePropertyChangeListener, removeValve, setBackgroundProcessorDelay, setBasic, setCluster, setDomain, setParent, setParentClassLoader, setRealm, setStartChildren, threadStart, threadStop |
| 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, addInstanceListener, addJspMapping, addLocaleEncodingMappingParameter, addMimeMapping, addParameter, addRoleMapping, addSecurityRole, addServletMapping, addTaglib, 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, findTaglib, findTaglibs, findWatchedResources, findWelcomeFile, findWelcomeFiles, findWrapperLifecycles, findWrapperListeners, getAltDDName, getApplicationEventListeners, getApplicationLifecycleListeners, getAvailable, getCharsetMapper, getConfigFile, getConfigured, getCookies, getCrossContext, getDisplayName, getDistributable, getDocBase, getEncodedPath, getIgnoreAnnotations, getMapper, getNamingResources, getOverride, getPath, getPrivileged, getPublicId, getReloadable, getSessionTimeout, getSwallowOutput, getTldNamespaceAware, getTldValidation, getWrapperClass, getXmlNamespaceAware, getXmlValidation, reload, removeApplicationListener, removeApplicationParameter, removeErrorPage, removeFilterDef, removeFilterMap, removeInstanceListener, removeMimeMapping, removeParameter, removeRoleMapping, removeSecurityRole, removeServletMapping, removeTaglib, removeWatchedResource, removeWelcomeFile, removeWrapperLifecycle, removeWrapperListener, setAltDDName, setApplicationEventListeners, setApplicationLifecycleListeners, setAvailable, setCharsetMapper, setConfigFile, setConfigured, setCookies, setCrossContext, setDisplayName, setDistributable, setDocBase, setIgnoreAnnotations, setNamingResources, setOverride, setPath, setPrivileged, setPublicId, setReloadable, setSessionTimeout, setSwallowOutput, setTldNamespaceAware, setTldValidation, setWrapperClass, setXmlNamespaceAware, setXmlValidation |
| Methods inherited from interface org.apache.catalina.Container |
|---|
addChild, addContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, getBackgroundProcessorDelay, getCluster, getLoader, getLogger, getMappingObject, getName, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, invoke, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setName, setParent, setParentClassLoader, setRealm, setResources |
| Field Detail |
|---|
protected java.lang.String applicationName
protected java.lang.String smallIcon
protected java.lang.String largeIcon
protected java.lang.String description
protected int proxyTimeout
protected int sipApplicationSessionTimeout
protected SipListenersHolder listeners
protected java.lang.String mainServlet
protected SipFactoryFacade sipFactoryFacade
protected SipSessionsUtilImpl sipSessionsUtil
protected SipLoginConfig sipLoginConfig
protected java.lang.String namingContextName
protected java.lang.reflect.Method sipApplicationKeyMethod
protected java.util.List<java.lang.String> sipApplicationListeners
protected java.util.List<SipServletMapping> sipServletMappings
protected SipApplicationDispatcher sipApplicationDispatcher
protected java.util.Map<java.lang.String,org.apache.catalina.Container> childrenMap
| Constructor Detail |
|---|
public SipStandardContext()
| Method Detail |
|---|
public void init()
throws java.lang.Exception
init in class org.apache.catalina.core.StandardContextjava.lang.Exception
protected void prepareServletContext()
throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleException
protected void setApplicationDispatcher()
throws org.apache.catalina.LifecycleException
java.lang.Exception
org.apache.catalina.LifecycleException
public void start()
throws org.apache.catalina.LifecycleException
start in interface org.apache.catalina.Lifecyclestart in class org.apache.catalina.core.StandardContextorg.apache.catalina.LifecycleExceptionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface org.apache.catalina.ContextgetServletContext in class org.apache.catalina.core.StandardContextpublic boolean listenerStart()
listenerStart in class org.apache.catalina.core.StandardContextpublic boolean listenerStop()
listenerStop in class org.apache.catalina.core.StandardContextprotected java.lang.String getBasePath()
getBasePath in class org.apache.catalina.core.StandardContext
public void stop()
throws org.apache.catalina.LifecycleException
stop in interface org.apache.catalina.Lifecyclestop in class org.apache.catalina.core.StandardContextorg.apache.catalina.LifecycleExceptionpublic void loadOnStartup(org.apache.catalina.Container[] containers)
loadOnStartup in class org.apache.catalina.core.StandardContextpublic org.apache.catalina.Wrapper createWrapper()
createWrapper in interface org.apache.catalina.ContextcreateWrapper in class org.apache.catalina.core.StandardContextpublic void addChild(SipServletImpl sipServletImpl)
addChild in interface SipContextpublic void removeChild(SipServletImpl sipServletImpl)
removeChild in interface SipContextpublic java.util.Map<java.lang.String,org.apache.catalina.Container> getChildrenMap()
getChildrenMap in interface SipContextpublic java.lang.String getApplicationName()
getApplicationName in interface SipContextpublic void setApplicationName(java.lang.String applicationName)
setApplicationName in interface SipContextpublic java.lang.String getDescription()
getDescription in interface SipContextpublic void setDescription(java.lang.String description)
setDescription in interface SipContextpublic java.lang.String getLargeIcon()
getLargeIcon in interface SipContextpublic void setLargeIcon(java.lang.String largeIcon)
setLargeIcon in interface SipContextpublic SipListenersHolder getListeners()
getListeners in interface SipContextpublic void setListeners(SipListenersHolder listeners)
setListeners in interface SipContextpublic java.lang.String getMainServlet()
getMainServlet in interface SipContextpublic void setMainServlet(java.lang.String mainServlet)
setMainServlet in interface SipContextpublic int getProxyTimeout()
getProxyTimeout in interface SipContextpublic void setProxyTimeout(int proxyTimeout)
setProxyTimeout in interface SipContextpublic void addConstraint(SipSecurityConstraint securityConstraint)
public void removeConstraint(SipSecurityConstraint securityConstraint)
public java.lang.String getSmallIcon()
getSmallIcon in interface SipContextpublic void setSmallIcon(java.lang.String smallIcon)
setSmallIcon in interface SipContextpublic void setLoginConfig(org.apache.catalina.deploy.LoginConfig config)
setLoginConfig in interface org.apache.catalina.ContextsetLoginConfig in class org.apache.catalina.core.StandardContextpublic org.apache.catalina.deploy.LoginConfig getLoginConfig()
getLoginConfig in interface org.apache.catalina.ContextgetLoginConfig in class org.apache.catalina.core.StandardContextpublic void setSipLoginConfig(SipLoginConfig config)
setSipLoginConfig in interface SipContextpublic SipLoginConfig getSipLoginConfig()
getSipLoginConfig in interface SipContextpublic void addSipApplicationListener(java.lang.String listener)
addSipApplicationListener in interface SipContextlistener - Java class name of a listener classpublic void removeSipApplicationListener(java.lang.String listener)
removeSipApplicationListener in interface SipContextlistener - Java class name of the listener to be removedpublic java.lang.String[] findSipApplicationListeners()
findSipApplicationListeners in interface SipContextpublic SipApplicationDispatcher getSipApplicationDispatcher()
getSipApplicationDispatcher in interface SipContextpublic SipFactoryFacade getSipFactoryFacade()
public SipSessionsUtil getSipSessionsUtil()
public TimerService getTimerService()
public void setManager(org.apache.catalina.Manager manager)
setManager in interface org.apache.catalina.ContainersetManager in class org.apache.catalina.core.ContainerBasepublic org.apache.catalina.Manager getManager()
getManager in interface org.apache.catalina.ContainergetManager in class org.apache.catalina.core.ContainerBasepublic int getSipApplicationSessionTimeout()
getSipApplicationSessionTimeout in interface SipContextpublic void setSipApplicationSessionTimeout(int sipApplicationSessionTimeout)
setSipApplicationSessionTimeout in interface SipContextsipApplicationSessionTimeout - the sipApplicationSessionTimeout to set in minutespublic java.lang.reflect.Method getSipApplicationKeyMethod()
getSipApplicationKeyMethod in interface SipContextpublic void setSipApplicationKeyMethod(java.lang.reflect.Method sipApplicationKeyMethod)
setSipApplicationKeyMethod in interface SipContextpublic java.lang.String getJbossBasePath()
public void addSipServletMapping(SipServletMapping sipServletMapping)
addSipServletMapping in interface SipContextpublic java.util.List<SipServletMapping> findSipServletMappings()
findSipServletMappings in interface SipContextpublic SipServletMapping findSipServletMappings(SipServletRequest sipServletRequest)
findSipServletMappings in interface SipContextpublic void removeSipServletMapping(SipServletMapping sipServletMapping)
removeSipServletMapping in interface SipContextpublic SipManager getSipManager()
getSipManager in interface SipContextpublic java.lang.String getInfo()
getInfo in interface org.apache.catalina.ContainergetInfo in class org.apache.catalina.core.StandardContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||