org.mobicents.servlet.sip.startup.loading
Class SipServletImpl

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.StandardWrapper
                  extended by org.mobicents.servlet.sip.startup.loading.SipServletImpl
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, javax.servlet.ServletConfig, org.apache.catalina.Container, org.apache.catalina.Lifecycle, org.apache.catalina.Wrapper

public class SipServletImpl
extends org.apache.catalina.core.StandardWrapper

Sip implementation of the Wrapper interface that represents an individual servlet definition. This class inherits from the StandardWrapper Tomcat Class. No child Containers are allowed, and the parent Container must be a Context.

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 static java.lang.String INFO
          The descriptive information string for this implementation.
 
Fields inherited from class org.apache.catalina.core.StandardWrapper
asyncSupported, available, broadcaster, classLoadTime, classType, classTypeUsedInService, countAllocated, DEFAULT_SERVLET_METHODS, enabled, facade, info, instance, instanceInitialized, instancePool, instanceSupport, isJspServlet, jspMonitorON, loadOnStartup, loadTime, mappings, maxInstances, multipartConfigElement, nInstances, notificationInfo, parameters, references, runAs, sequenceNumber, servletClass, singleThreadModel, swallowOutput, swValve, unloadDelay, unloading
 
Fields inherited from class org.apache.catalina.core.ContainerBase
accessLog, backgroundProcessorDelay, children, cluster, listeners, loader, logger, 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.apache.catalina.Wrapper
ADD_MAPPING_EVENT, REMOVE_MAPPING_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
SipServletImpl()
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getIcon()
           
 java.lang.String getInfo()
          Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version>.
 java.lang.String[] getServletMethods()
          Gets the names of the methods supported by the underlying servlet.
 java.lang.String getServletName()
           
 void load()
           
protected  void registerJMX(org.apache.catalina.core.StandardContext ctx)
           
 void setDescription(java.lang.String description)
           
 void setDisplayName(java.lang.String displayName)
           
 void setIcon(java.lang.String icon)
           
 void setServletName(java.lang.String servletName)
           
 
Methods inherited from class org.apache.catalina.core.StandardWrapper
addChild, addDefaultMapper, addInitParameter, addInstanceListener, addMapping, addNotificationListener, addSecurityReference, allocate, backgroundProcess, deallocate, findInitParameter, findInitParameters, findMappingObject, findMappings, findSecurityReference, findSecurityReferences, getAllDeclaredMethods, getAvailable, getClassLoadTime, getCountAllocated, getErrorCount, getInitParameter, getInitParameterNames, getInstanceSupport, getLoadOnStartup, getLoadOnStartupString, getLoadTime, getMaxInstances, getMaxTime, getMinTime, getMultipartConfigElement, getNotificationInfo, getObjectNameKeyProperties, getProcessingTime, getRequestCount, getRootCause, getRunAs, getServlet, getServletClass, getServletContext, incrementErrorCount, isAsyncSupported, isContainerProvidedServlet, isEnabled, isEventProvider, isSingleThreadModel, isStateManageable, isStatisticsProvider, isUnavailable, loadServlet, removeInitParameter, removeInstanceListener, removeMapping, removeNotificationListener, removeNotificationListener, removeSecurityReference, setAsyncSupported, setAvailable, setEnabled, setErrorCount, setLoadOnStartup, setLoadOnStartupString, setLoadTime, setMaxInstances, setMaxTime, setMinTime, setMultipartConfigElement, setParent, setProcessingTime, setRequestCount, setRunAs, setServlet, setServletClass, startInternal, stopInternal, toString, unavailable, unload
 
Methods inherited from class org.apache.catalina.core.ContainerBase
addContainerListener, addPropertyChangeListener, addValve, destroyInternal, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getChildren, getCluster, getDomainInternal, getLoader, getLogger, getManager, getMappingObject, getName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, getStartChildren, invoke, logAccess, logName, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setManager, setName, setParentClassLoader, setRealm, setResources, setStartChildren, threadStart, threadStop
 
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase
getDomain, getObjectName, initInternal, 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.apache.catalina.Container
addContainerListener, addPropertyChangeListener, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getCluster, getLoader, getLogger, getManager, getMappingObject, getName, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, invoke, logAccess, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setManager, setName, setParentClassLoader, setRealm, setResources
 
Methods inherited from interface org.apache.catalina.Lifecycle
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
 

Field Detail

INFO

protected static final java.lang.String INFO
The descriptive information string for this implementation.

See Also:
Constant Field Values
Constructor Detail

SipServletImpl

public SipServletImpl()
Method Detail

load

public void load()
          throws javax.servlet.ServletException
Specified by:
load in interface org.apache.catalina.Wrapper
Overrides:
load in class org.apache.catalina.core.StandardWrapper
Throws:
javax.servlet.ServletException

getIcon

public java.lang.String getIcon()
Returns:
the icon

setIcon

public void setIcon(java.lang.String icon)
Parameters:
icon - the icon to set

getServletName

public java.lang.String getServletName()
Specified by:
getServletName in interface javax.servlet.ServletConfig
Overrides:
getServletName in class org.apache.catalina.core.StandardWrapper
Returns:
the servletName

setServletName

public void setServletName(java.lang.String servletName)
Overrides:
setServletName in class org.apache.catalina.core.StandardWrapper
Parameters:
servletName - the servletName to set

getDisplayName

public java.lang.String getDisplayName()
Returns:
the displayName

setDisplayName

public void setDisplayName(java.lang.String displayName)
Parameters:
displayName - the displayName to set

getDescription

public java.lang.String getDescription()
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - the description to set

registerJMX

protected void registerJMX(org.apache.catalina.core.StandardContext ctx)

getInfo

public java.lang.String getInfo()
Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version>.

Specified by:
getInfo in interface org.apache.catalina.Container
Overrides:
getInfo in class org.apache.catalina.core.StandardWrapper

getServletMethods

public java.lang.String[] getServletMethods()
                                     throws javax.servlet.ServletException
Gets the names of the methods supported by the underlying servlet. This is the same set of methods included in the Allow response header in response to an OPTIONS request method processed by the underlying servlet.

Specified by:
getServletMethods in interface org.apache.catalina.Wrapper
Overrides:
getServletMethods in class org.apache.catalina.core.StandardWrapper
Returns:
Array of names of the methods supported by the underlying servlet
Throws:
javax.servlet.ServletException


Copyright © 2011. All Rights Reserved.