Class TomcatWebAppDeployer
- java.lang.Object
-
- com.sun.portal.portletcontainer.admin.deployment.TomcatWebAppDeployer
-
- All Implemented Interfaces:
WebAppDeployer
public class TomcatWebAppDeployer extends Object implements WebAppDeployer
The class which implements the WebAppDeployer interface to provide the deployment and undeployment functionality for Portlets on Tomcat container.
-
-
Field Summary
-
Fields inherited from interface com.sun.portal.portletcontainer.admin.deployment.WebAppDeployer
CONFIG_FILE, WAR_NOT_DEPLOYED, WAR_NOT_UNDEPLOYED
-
-
Constructor Summary
Constructors Constructor Description TomcatWebAppDeployer()
Initialize the autoDeployDirectory by reading the configuration data from the config file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deploy(String warFileName)
Provides the implementation of deploying Portlet war on Tomcat.boolean
undeploy(String warFileName)
Provides the implementation of undeploying Portlet war from Tomcat.
-
-
-
Method Detail
-
deploy
public boolean deploy(String warFileName) throws WebAppDeployerException
Provides the implementation of deploying Portlet war on Tomcat.- Specified by:
deploy
in interfaceWebAppDeployer
- Parameters:
warFileName
- The complete path to the Portlet war file.- Returns:
- boolean Returns true if the deployment is successful.
- Throws:
WebAppDeployerException
-
undeploy
public boolean undeploy(String warFileName) throws WebAppDeployerException
Provides the implementation of undeploying Portlet war from Tomcat.- Specified by:
undeploy
in interfaceWebAppDeployer
- Parameters:
warFileName
- The complete path to the Portlet war file.- Returns:
- boolean Returns true if the deployment is successful.
- Throws:
WebAppDeployerException
-
-