Class 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.
    • Constructor Detail

      • TomcatWebAppDeployer

        public TomcatWebAppDeployer()
                             throws Exception
        Initialize the autoDeployDirectory by reading the configuration data from the config file.
        Throws:
        Exception
    • Method Detail

      • deploy

        public boolean deploy​(String warFileName)
                       throws WebAppDeployerException
        Provides the implementation of deploying Portlet war on Tomcat.
        Specified by:
        deploy in interface WebAppDeployer
        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 interface WebAppDeployer
        Parameters:
        warFileName - The complete path to the Portlet war file.
        Returns:
        boolean Returns true if the deployment is successful.
        Throws:
        WebAppDeployerException