|
Apache Tomcat 7.0.22 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.core.ContainerBase
org.apache.catalina.core.StandardWrapper
org.apache.catalina.startup.Tomcat.ExistingStandardWrapper
public static class Tomcat.ExistingStandardWrapper
Helper class for wrapping existing servlets. This disables servlet lifecycle and normal reloading, but also reduces overhead and provide more direct control over the servlet.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.catalina.core.ContainerBase |
|---|
ContainerBase.ContainerBackgroundProcessor, ContainerBase.PrivilegedAddChild |
| Field Summary |
|---|
| 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, servletSecurityAnnotationScanRequired, 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 | |
|---|---|
Tomcat.ExistingStandardWrapper(Servlet existing)
|
|
| Method Summary | |
|---|---|
long |
getAvailable()
Return the available date/time for this servlet, in milliseconds since the epoch. |
Servlet |
getServlet()
Return the associated servlet instance. |
java.lang.String |
getServletClass()
Return the fully qualified servlet class name for this servlet. |
boolean |
isUnavailable()
Is this servlet currently unavailable? |
Servlet |
loadServlet()
Load and initialize an instance of this servlet, if there is not already at least one initialized instance. |
| 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 |
| Constructor Detail |
|---|
public Tomcat.ExistingStandardWrapper(Servlet existing)
| Method Detail |
|---|
public Servlet loadServlet()
throws ServletException
StandardWrapper
loadServlet in class StandardWrapperServletExceptionpublic long getAvailable()
StandardWrapper
getAvailable in interface WrappergetAvailable in class StandardWrapperpublic boolean isUnavailable()
StandardWrapper
isUnavailable in interface WrapperisUnavailable in class StandardWrapperpublic Servlet getServlet()
StandardWrapper
getServlet in interface WrappergetServlet in class StandardWrapperpublic java.lang.String getServletClass()
StandardWrapper
getServletClass in interface WrappergetServletClass in class StandardWrapper
|
Apache Tomcat 7.0.22 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||