The parent Container attached to a Host is generally an Engine, but may be some other implementation, or may be omitted if it is not necessary.
The child containers attached to a Host are generally implementations of Context (representing an individual servlet context).
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ADD_ALIAS_EVENT
The ContainerEvent event type sent when a new alias is added
by |
| public static final String | REMOVE_ALIAS_EVENT
The ContainerEvent event type sent when an old alias is removed
by |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String[] | Returns: the set of alias names for this Host. If none are defined, a zero length array is returned.
|
| public String | Returns: the application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.
|
| public File | Returns: an absoluteFile for the appBase of this Host. The file
will be canonical if possible. There is no guarantee that that the
appBase exists.
|
| public boolean | Returns: the value of the auto deploy flag. If true, it indicates that this host's child webapps should be discovered and automatically deployed dynamically.
|
| public File | Returns: a default configuration path of this Host. The file will be canonical if possible.
|
| public String | Returns: the Java class name of the context configuration class for new web applications.
|
| public boolean | Returns: true if the Host will attempt to create directoriesReturns |
| public String | Returns: the regular expression that defines the files and directories in the host's appBase that will be ignored by the automatic deployment process.
|
| public Pattern | Returns: the compiled regular expression that defines the files and directories in the host's appBase that will be ignored by the automatic deployment process.
|
| public boolean | Returns: the value of the deploy on startup flag. If true, it indicates that this host's child webapps should be discovered and automatically deployed.
|
| public String | Returns: the legacy (Java EE) application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.
|
| public File | Returns: an absoluteFile for the legacy (Java EE) appBase of this
Host. The file will be canonical if possible. There is no guarantee that
that the appBase exists.
|
| public ExecutorService | Returns: the executor that is used for starting and stopping contexts. This is primarily for use by components deploying contexts that want to do this in a multi-threaded manner.
|
| public boolean | Returns: true of the Host is configured to automatically undeploy old
versions of applications deployed using parallel deployment. This only
takes effect is getAutoDeploy() also returns true.
|
| public String | Returns: 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
|
| public void | removeAlias(String
Alias name to be removed alias)Remove the specified alias name from the aliases for this Host. |
| public void | |
| public void | setAutoDeploy(boolean
The new auto deploy flag autoDeploy)Set the auto deploy flag value for this host. |
| public void | setConfigClass(String
The new context configuration class configClass)Set the Java class name of the context configuration class for new web applications. |
| public void | setCreateDirs(boolean
The new value for this flag createDirs)Should the Host attempt to create directories for xmlBase and appBase upon startup. |
| public void | setDeployIgnore(String
A regular expression matching file names deployIgnore)Set the regular expression that defines the files and directories in the host's appBase that will be ignored by the automatic deployment process. |
| public void | setDeployOnStartup(boolean
The new deploy on startup flag deployOnStartup)Set the deploy on startup flag value for this host. |
| public void | setLegacyAppBase(String
The new legacy application root legacyAppBase)Set the legacy (Java EE) application root for this Host. |
| public void | setUndeployOldVersions(boolean
The new value for this flag undeployOldVersions)Set to |
| public void |
| ADD_ALIAS_EVENT | back to summary |
|---|---|
| public static final String ADD_ALIAS_EVENT The ContainerEvent event type sent when a new alias is added
by | |
| REMOVE_ALIAS_EVENT | back to summary |
|---|---|
| public static final String REMOVE_ALIAS_EVENT The ContainerEvent event type sent when an old alias is removed
by | |
| addAlias | back to summary |
|---|---|
| public void addAlias(String alias) Add an alias name that should be mapped to this same Host.
| |
| findAliases | back to summary |
|---|---|
public String[] findAliases()
| |
| getAppBase | back to summary |
|---|---|
public String getAppBase()
| |
| getAppBaseFile | back to summary |
|---|---|
| public File getAppBaseFile() | |
| getAutoDeploy | back to summary |
|---|---|
public boolean getAutoDeploy()
| |
| getConfigBaseFile | back to summary |
|---|---|
public File getConfigBaseFile()
| |
| getConfigClass | back to summary |
|---|---|
public String getConfigClass()
| |
| getCreateDirs | back to summary |
|---|---|
| public boolean getCreateDirs() Returns
| |
| getDeployIgnore | back to summary |
|---|---|
public String getDeployIgnore()
| |
| getDeployIgnorePattern | back to summary |
|---|---|
public Pattern getDeployIgnorePattern()
| |
| getDeployOnStartup | back to summary |
|---|---|
public boolean getDeployOnStartup()
| |
| getLegacyAppBase | back to summary |
|---|---|
public String getLegacyAppBase()
| |
| getLegacyAppBaseFile | back to summary |
|---|---|
| public File getLegacyAppBaseFile() | |
| getStartStopExecutor | back to summary |
|---|---|
public ExecutorService getStartStopExecutor()
| |
| getUndeployOldVersions | back to summary |
|---|---|
public boolean getUndeployOldVersions()
| |
| getXmlBase | back to summary |
|---|---|
public String getXmlBase()
| |
| removeAlias | back to summary |
|---|---|
| public void removeAlias(String alias) Remove the specified alias name from the aliases for this Host.
| |
| setAppBase | back to summary |
|---|---|
| public void setAppBase(String appBase) 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) Set the auto deploy flag value for this host.
| |
| setConfigClass | back to summary |
|---|---|
| public void setConfigClass(String configClass) Set the Java class name of the context configuration class for new web applications.
| |
| setCreateDirs | back to summary |
|---|---|
| public void setCreateDirs(boolean createDirs) Should the Host attempt to create directories for xmlBase and appBase upon startup.
| |
| setDeployIgnore | back to summary |
|---|---|
| public void setDeployIgnore(String deployIgnore) Set the regular expression that defines the files and directories in the host's appBase that will be ignored by the automatic deployment process.
| |
| setDeployOnStartup | back to summary |
|---|---|
| public void setDeployOnStartup(boolean deployOnStartup) Set the deploy on startup flag value for this host.
| |
| setLegacyAppBase | back to summary |
|---|---|
| public void setLegacyAppBase(String legacyAppBase) Set the legacy (Java EE) application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.
| |
| setUndeployOldVersions | back to summary |
|---|---|
| public void setUndeployOldVersions(boolean undeployOldVersions) Set to
| |
| setXmlBase | back to summary |
|---|---|
| public void setXmlBase(String xmlBase) 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
| |