| Modifier and Type | Class and Description |
|---|---|
| private class | StandardHost.
Used to ensure the regardless of |
| Modifier and Type | Field and Description |
|---|---|
| private String[] | aliases
The set of aliases for this Host. |
| private final Object | |
| private String | appBase
The application root for this Host. |
| private volatile File | |
| private boolean | autoDeploy
The auto deploy flag for this Host. |
| private final Map | childClassLoaders
Track the class loaders for the child web applications so memory leaks can be detected. |
| private String | configClass
The Java class name of the default context configuration class for deployed web applications. |
| private String | contextClass
The Java class name of the default Context implementation class for deployed web applications. |
| private boolean | copyXML
Should XML files be copied to $CATALINA_BASE/conf/<engine>/<host> by default when a web application is deployed? |
| private boolean | createDirs
Should we create directories upon startup for appBase and xmlBase |
| private Pattern | deployIgnore
Any file or directory in |
| private boolean | deployOnStartup
The deploy on startup flag for this Host. |
| private boolean | deployXML
deploy Context XML config files property. |
| private String | errorReportValveClass
The Java class name of the default error reporter implementation class for deployed web applications. |
| private boolean | |
| private volatile File | hostConfigBase
host's default config path |
| private String | legacyAppBase
The legacy (Java EE) application root for this Host. |
| private volatile File | |
| private static final Log | |
| private boolean | |
| private boolean | unpackWARs
Unpack WARs property. |
| private String | workDir
Work Directory base for applications. |
| private String | xmlBase
The XML root for this Host. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAlias(String
The alias to be added alias)Implements org. Add an alias name that should be mapped to this same Host. |
| public void | addChild(Container
Child container to be added child)Overrides org. Implements org. Add a child Container, only if the proposed child is an implementation of Context. |
| public String[] | Returns: the set of alias names for this Host. If none are defined, a zero length array is returned.Implements org.
|
| public String[] | Returns: a list of possibly leaking contextsAttempt to identify the contexts that have a class loader memory leak. |
| public String[] | |
| public String | |
| public File | |
| public boolean | Returns: the value of the auto deploy flag. If true, it indicates that this host's child webapps will be dynamically deployed.Implements org.
|
| public File | |
| public String | Returns: the Java class name of the context configuration class for new web applications.Implements org.
|
| public String | Returns: the Java class name of the Context implementation class for new web applications.
|
| public boolean | Returns: true if the Host will attempt to create directories for appBase and xmlBase unless they
already exist.Implements org. Returns |
| public String | Returns: the regular expression that defines the files and directories in the host'sgetAppBase that will
be ignored by the automatic deployment process.Implements org.
|
| public Pattern | Returns: the compiled regular expression that defines the files and directories in the host'sgetAppBase
that will be ignored by the automatic deployment process.Implements org.
|
| public boolean | Returns: the value of the deploy on startup flag. Iftrue, it indicates that this host's child
webapps should be discovered and automatically deployed at startup time.Implements org.
|
| public String | Returns: the Java class name of the error report valve class for new web applications.
|
| public String | |
| public File | |
| public String | Returns: the canonical, fully qualified, name of the virtual host this Container represents.Overrides org. Implements org. Return a name string (suitable for use by humans) that describes this Container. |
| protected String | getObjectNameKeyProperties()
Implements abstract org. Allow sub-classes to specify the key properties component of the
|
| public ExecutorService | |
| public boolean | |
| public String[] | |
| public String | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if a webapp start should fail if a Servlet startup fails
|
| public boolean | |
| public void | removeAlias(String
Alias name to be removed alias)Implements org. Remove the specified alias name from the aliases for this Host. |
| public void | setAppBase(String
The new application root appBase)Implements org. Set the application root for this Host. |
| public void | setAutoDeploy(boolean
The new auto deploy flag autoDeploy)Implements org. Set the auto deploy flag value for this host. |
| public void | setConfigClass(String
The new context configuration class configClass)Implements org. Set the Java class name of the context configuration class for new web applications. |
| public void | setContextClass(String
The new context implementation class contextClass)Set the Java class name of the Context implementation class for new web applications. |
| public void | setCopyXML(boolean
The new copy XML flag copyXML)Set the copy XML config file flag for this component. |
| public void | setCreateDirs(boolean
the new flag value createDirs)Implements org. Set to |
| public void | setDeployIgnore(String
the regexp deployIgnore)Implements org. Set the regular expression that defines the files and directories in the host's |
| public void | setDeployOnStartup(boolean
The new deploy on startup flag deployOnStartup)Implements org. Set the deploy on startup flag value for this host. |
| public void | setDeployXML(boolean
true if context descriptors should be deployedDeploy XML Context config files flag mutator. |
| public void | setErrorReportValveClass(String
The new error report valve class errorReportValveClass)Set the Java class name of the error report valve class for new web applications. |
| public void | setFailCtxIfServletStartFails(boolean
false to ignore errors on Servlets which are stated when the web
application startsChange the behavior of Servlet startup errors on web application starts. |
| public void | setLegacyAppBase(String
The new legacy application root legacyAppBase)Implements org. Set the legacy (Java EE) application root for this Host. |
| public void | setName(String
Virtual host name name)Overrides org. Implements org. Set the canonical, fully qualified, name of the virtual host this Container represents. |
| public void | setUndeployOldVersions(boolean
The new value for this flag undeployOldVersions)Implements org. Set to |
| public void | |
| public void | |
| public void | setXmlBase(String
The new XML root xmlBase)Implements org. (Set the Xml root for this Host. |
| protected void | startInternal()
Overrides org. Start this component and implement the requirements of
|
| aliases | back to summary |
|---|---|
| private String[] aliases The set of aliases for this Host. | |
| aliasesLock | back to summary |
|---|---|
| private final Object aliasesLock | |
| appBase | back to summary |
|---|---|
| private String appBase The application root for this Host. | |
| appBaseFile | back to summary |
|---|---|
| private volatile File appBaseFile | |
| autoDeploy | back to summary |
|---|---|
| private boolean autoDeploy The auto deploy flag for this Host. | |
| childClassLoaders | back to summary |
|---|---|
| private final Map<ClassLoader, String> childClassLoaders Track the class loaders for the child web applications so memory leaks can be detected. | |
| configClass | back to summary |
|---|---|
| private String configClass The Java class name of the default context configuration class for deployed web applications. | |
| contextClass | back to summary |
|---|---|
| private String contextClass The Java class name of the default Context implementation class for deployed web applications. | |
| copyXML | back to summary |
|---|---|
| private boolean copyXML Should XML files be copied to $CATALINA_BASE/conf/<engine>/<host> by default when a web application is deployed? | |
| createDirs | back to summary |
|---|---|
| private boolean createDirs Should we create directories upon startup for appBase and xmlBase | |
| deployIgnore | back to summary |
|---|---|
| private Pattern deployIgnore Any file or directory in | |
| deployOnStartup | back to summary |
|---|---|
| private boolean deployOnStartup The deploy on startup flag for this Host. | |
| deployXML | back to summary |
|---|---|
| private boolean deployXML deploy Context XML config files property. | |
| errorReportValveClass | back to summary |
|---|---|
| private String errorReportValveClass The Java class name of the default error reporter implementation class for deployed web applications. | |
| failCtxIfServletStartFails | back to summary |
|---|---|
| private boolean failCtxIfServletStartFails | |
| hostConfigBase | back to summary |
|---|---|
| private volatile File hostConfigBase host's default config path | |
| legacyAppBase | back to summary |
|---|---|
| private String legacyAppBase The legacy (Java EE) application root for this Host. | |
| legacyAppBaseFile | back to summary |
|---|---|
| private volatile File legacyAppBaseFile | |
| log | back to summary |
|---|---|
| private static final Log log | |
| undeployOldVersions | back to summary |
|---|---|
| private boolean undeployOldVersions | |
| unpackWARs | back to summary |
|---|---|
| private boolean unpackWARs Unpack WARs property. | |
| workDir | back to summary |
|---|---|
| private String workDir Work Directory base for applications. | |
| xmlBase | back to summary |
|---|---|
| private String xmlBase The XML root for this Host. | |
| StandardHost | back to summary |
|---|---|
| public StandardHost() Create a new StandardHost component with the default basic Valve. | |
| addAlias | back to summary |
|---|---|
| public void addAlias(String alias) Implements org. Add an alias name that should be mapped to this same Host. | |
| addChild | back to summary |
|---|---|
| public void addChild(Container child) Overrides org. Implements org. Add a child Container, only if the proposed child is an implementation of Context. | |
| findAliases | back to summary |
|---|---|
| public String[] findAliases() Implements org. | |
| findReloadedContextMemoryLeaks | back to summary |
|---|---|
| public String[] findReloadedContextMemoryLeaks() Attempt to identify the contexts that have a class loader memory leak. This is usually triggered on context reload. Note This method attempts to force a full garbage collection. This should be used with extreme caution on a production system.
| |
| getAliases | back to summary |
|---|---|
| public String[] getAliases() | |
| getAppBase | back to summary |
|---|---|
| public String getAppBase() Implements org.
| |
| getAppBaseFile | back to summary |
|---|---|
| public File getAppBaseFile() Implements org.
| |
| getAutoDeploy | back to summary |
|---|---|
| public boolean getAutoDeploy() Implements org.
| |
| getConfigBaseFile | back to summary |
|---|---|
| public File getConfigBaseFile() Implements org. (
| |
| getConfigClass | back to summary |
|---|---|
| public String getConfigClass() Implements org. | |
| getContextClass | back to summary |
|---|---|
public String getContextClass()
| |
| getCreateDirs | back to summary |
|---|---|
| public boolean getCreateDirs() Implements org. Doc from org. Returns
| |
| getDeployIgnore | back to summary |
|---|---|
| public String getDeployIgnore() Implements org.
| |
| getDeployIgnorePattern | back to summary |
|---|---|
| public Pattern getDeployIgnorePattern() Implements org.
| |
| getDeployOnStartup | back to summary |
|---|---|
| public boolean getDeployOnStartup() Implements org.
| |
| getErrorReportValveClass | back to summary |
|---|---|
public String getErrorReportValveClass()
| |
| getLegacyAppBase | back to summary |
|---|---|
| public String getLegacyAppBase() Implements org.
| |
| getLegacyAppBaseFile | back to summary |
|---|---|
| public File getLegacyAppBaseFile() Implements org.
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides org. Implements org. Doc from org. Return a name string (suitable for use by humans) that describes this Container. Within the set of child containers belonging to a particular parent, Container names must be unique. | |
| getObjectNameKeyProperties | back to summary |
|---|---|
| protected String getObjectNameKeyProperties() Implements abstract org. Doc from org. Allow sub-classes to specify the key properties component of the
| |
| getStartStopExecutor | back to summary |
|---|---|
| public ExecutorService getStartStopExecutor() Implements org.
| |
| getUndeployOldVersions | back to summary |
|---|---|
| public boolean getUndeployOldVersions() Implements org.
| |
| getValveNames | back to summary |
|---|---|
| public String[] getValveNames() throws Exception | |
| getWorkDir | back to summary |
|---|---|
public String getWorkDir()
| |
| getXmlBase | back to summary |
|---|---|
| public String getXmlBase() Implements org. (
| |
| isCopyXML | back to summary |
|---|---|
public boolean isCopyXML()
| |
| isDeployXML | back to summary |
|---|---|
public boolean isDeployXML()
| |
| isFailCtxIfServletStartFails | back to summary |
|---|---|
public boolean isFailCtxIfServletStartFails()
| |
| isUnpackWARs | back to summary |
|---|---|
public boolean isUnpackWARs()
| |
| removeAlias | back to summary |
|---|---|
| public void removeAlias(String alias) Implements org. Remove the specified alias name from the aliases for this Host. | |
| setAppBase | back to summary |
|---|---|
| public void setAppBase(String appBase) Implements org. Doc from org. Set the application root for this Host. This can be an absolute pathname, a relative pathname, or a URL. | |
| setAutoDeploy | back to summary |
|---|---|
| public void setAutoDeploy(boolean autoDeploy) Implements org. Set the auto deploy flag value for this host.
| |
| setConfigClass | back to summary |
|---|---|
| public void setConfigClass(String configClass) Implements org. Set the Java class name of the context configuration class for new web applications. | |
| setContextClass | back to summary |
|---|---|
| public void setContextClass(String contextClass) Set the Java class name of the Context implementation class for new web applications.
| |
| setCopyXML | back to summary |
|---|---|
| public void setCopyXML(boolean copyXML) Set the copy XML config file flag for this component.
| |
| setCreateDirs | back to summary |
|---|---|
| public void setCreateDirs(boolean createDirs) Implements org. Set to
| |
| setDeployIgnore | back to summary |
|---|---|
| public void setDeployIgnore(String deployIgnore) Implements org. Set the regular expression that defines the files and directories in the host's | |
| setDeployOnStartup | back to summary |
|---|---|
| public void setDeployOnStartup(boolean deployOnStartup) Implements org. Set the deploy on startup flag value for this host.
| |
| setDeployXML | back to summary |
|---|---|
| public void setDeployXML(boolean deployXML) Deploy XML Context config files flag mutator.
| |
| setErrorReportValveClass | back to summary |
|---|---|
| public void setErrorReportValveClass(String errorReportValveClass) Set the Java class name of the error report valve class for new web applications.
| |
| setFailCtxIfServletStartFails | back to summary |
|---|---|
| public void setFailCtxIfServletStartFails(boolean failCtxIfServletStartFails) Change the behavior of Servlet startup errors on web application starts.
| |
| setLegacyAppBase | back to summary |
|---|---|
| public void setLegacyAppBase(String legacyAppBase) Implements org. Doc from org. Set the legacy (Java EE) application root for this Host. This can be an absolute pathname, a relative pathname, or a URL. | |
| setName | back to summary |
|---|---|
| public void setName(String name) Overrides org. Implements org. Set the canonical, fully qualified, name of the virtual host this Container represents.
| |
| setUndeployOldVersions | back to summary |
|---|---|
| public void setUndeployOldVersions(boolean undeployOldVersions) Implements org. Doc from org. Set to
| |
| setUnpackWARs | back to summary |
|---|---|
| public void setUnpackWARs(boolean unpackWARs) Unpack WARs flag mutator.
| |
| setWorkDir | back to summary |
|---|---|
| public void setWorkDir(String workDir) Set host work directory base.
| |
| setXmlBase | back to summary |
|---|---|
| public void setXmlBase(String xmlBase) Implements org. Doc from org. (Set the Xml root for this Host. This can be an absolute pathname or a relative pathname. If null, the base path defaults to ${catalina.base}/conf/<engine name>/<host name> directory | |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Overrides org. Start this component and implement the requirements of
| |
Context implementation, a record is kept of the class loader used every
time a context starts.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | lifecycleEvent(LifecycleEvent
LifecycleEvent that has occurred event)Implements org. Acknowledge the occurrence of the specified event. |
| MemoryLeakTrackingListener | back to summary |
|---|---|
| private MemoryLeakTrackingListener() | |
| lifecycleEvent | back to summary |
|---|---|
| public void lifecycleEvent(LifecycleEvent event) Implements org. Doc from org. Acknowledge the occurrence of the specified event.
| |