org.jboss.web.tomcat.tc5
Class TomcatDeployer

java.lang.Object
  extended byorg.jboss.web.AbstractWebDeployer (src) 
      extended byorg.jboss.web.tomcat.tc5.TomcatDeployer

public class TomcatDeployer
extends AbstractWebDeployer (src)

The tomcat web application deployer


Field Summary
 
Fields inherited from class org.jboss.web.AbstractWebDeployer (src)
defaultSecurityDomain, ERROR, java2ClassLoadingCompliance, lenientEjbLink, log, server, unpackWars
 
Constructor Summary
TomcatDeployer()
           
 
Method Summary
 void init(java.lang.Object containerConfig)
           
protected  java.util.Iterator mapVirtualHosts(java.util.Iterator vhostNames)
          Resolve the input virtual host names to the names of the configured Hosts
protected  void performDeploy(WebApplication (src)  appInfo, java.lang.String warUrl, AbstractWebContainer.WebDescriptorParser (src)  webAppParser)
          Perform the tomcat specific deployment steps.
protected  void performDeployInternal(java.lang.String hostName, WebApplication (src)  appInfo, java.lang.String warUrl, AbstractWebContainer.WebDescriptorParser (src)  webAppParser)
           
protected  void performUndeploy(java.lang.String warUrl, WebApplication (src)  appInfo)
          Called as part of the undeploy() method template to ask the subclass for perform the web container specific undeployment steps.
protected  void performUndeployInternal(java.lang.String hostName, java.lang.String warUrl, WebApplication (src)  appInfo)
           
 
Methods inherited from class org.jboss.web.AbstractWebDeployer (src)
addEnvEntries, createPermissions, getCompileClasspath, getDefaultSecurityDomain, getJava2ClassLoadingCompliance, getLenientEjbLink, getServer, getStandardCompileClasspath, getUnpackWars, linkEjbLocalRefs, linkEjbRefs, linkMessageDestinationRefs, linkResourceEnvRefs, linkResourceRefs, linkSecurityDomain, parseWebAppDescriptors, setDefaultSecurityDomain, setJava2ClassLoadingCompliance, setLenientEjbLink, setServer, setUnpackWars, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatDeployer

public TomcatDeployer()
Method Detail

init

public void init(java.lang.Object containerConfig)
          throws java.lang.Exception
Specified by:
init in class AbstractWebDeployer (src)
Throws:
java.lang.Exception

performDeploy

protected void performDeploy(WebApplication (src)  appInfo,
                             java.lang.String warUrl,
                             AbstractWebContainer.WebDescriptorParser (src)  webAppParser)
                      throws java.lang.Exception
Perform the tomcat specific deployment steps.

Specified by:
performDeploy in class AbstractWebDeployer (src)
Parameters:
appInfo - The web application information context. This contains the metadata such as the context-root element value from the J2EE application/module/web application.xml descriptor and virtual-host.
warUrl - The string for the URL of the web application war.
webAppParser - The callback interface the web container should use to setup the web app JNDI environment for use by the web app components. This needs to be invoked after the web app class loader is known, but before and web app components attempt to access the java:comp/env JNDI namespace.
Throws:
java.lang.Exception

performDeployInternal

protected void performDeployInternal(java.lang.String hostName,
                                     WebApplication (src)  appInfo,
                                     java.lang.String warUrl,
                                     AbstractWebContainer.WebDescriptorParser (src)  webAppParser)
                              throws java.lang.Exception
Throws:
java.lang.Exception

performUndeploy

protected void performUndeploy(java.lang.String warUrl,
                               WebApplication (src)  appInfo)
                        throws java.lang.Exception
Called as part of the undeploy() method template to ask the subclass for perform the web container specific undeployment steps.

Specified by:
performUndeploy in class AbstractWebDeployer (src)
Throws:
java.lang.Exception

performUndeployInternal

protected void performUndeployInternal(java.lang.String hostName,
                                       java.lang.String warUrl,
                                       WebApplication (src)  appInfo)
                                throws java.lang.Exception
Throws:
java.lang.Exception

mapVirtualHosts

protected java.util.Iterator mapVirtualHosts(java.util.Iterator vhostNames)
                                      throws java.lang.Exception
Resolve the input virtual host names to the names of the configured Hosts

Parameters:
vhostNames - Iterator for the jboss-web/virtual-host elements
Returns:
Iterator of the unique Host names
Throws:
java.lang.Exception