public class EmbeddedHostConfig
extends org.apache.catalina.startup.HostConfig
HostConfig for use in the Embedded Tomcat container integration for Arquillian.
This configuration makes the protected Tomcat WAR deployment implementation (as is used by the typical standalone
server)
available for embedded use. We do this to retain standard deployment features that are notably absent from the current
Tomcat deployment logic, for instance:
You'll very likely want to set the ContextConfig class for the associated host to an EmbeddedContextConfig
via host.setConfigClass(EmbeddedContextConfig.class.getCanonicalName()). (Note that
HostConfig#getConfigClass() is not currently used.) This will result in the application of context
configuration
normally sourced from "$CATALINA_BASE/conf/web.xml". This is typically done by Tomcat via a
Tomcat.DefaultWebXmlListener added to the context, but HostConfig lacks a suitable hook to add such a
listener
prior to the start life cycle.
| Constructor and Description |
|---|
EmbeddedHostConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
deployWAR(String warFileName)
Deploy a WAR with the given file name to be found in the configured app base.
|
void |
undeployWAR(String warFileName)
Undeploy a WAR with the given file name.
|
addGlobalRedeployResources, addServiced, addWatchedResources, beforeStart, check, check, checkResources, checkUndeploy, createDigester, deployApps, deployApps, deployDescriptor, deployDescriptors, deployDirectories, deployDirectory, deploymentExists, deployWAR, deployWARs, filterAppPaths, getConfigBaseName, getContextClass, getDeploymentTime, isCopyXML, isDeployed, isDeployXML, isServiced, isUnpackWARs, lifecycleEvent, manageApp, removeServiced, returnCanonicalPath, setContextClass, setCopyXML, setDeployXML, setUnpackWARs, start, stop, unmanageApppublic void deployWAR(String warFileName)
warFileName - the WAR file name, e.g. "ROOT.war".public void undeployWAR(String warFileName)
warFileName - the WAR file name, e.g. "ROOT.war".Copyright © 2020 JBoss by Red Hat. All rights reserved.