Class AbstractCatalinaCommandTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DeployTask, ReloadTask, SessionsTask, StartTask, StopTask, UndeployTask

public abstract class AbstractCatalinaCommandTask extends AbstractCatalinaTask
Abstract task for Catalina commands.
  • Field Details

    • path

      protected String path
      The context path of the web application we are managing.
    • version

      protected String version
      The context version of the web application we are managing.
  • Constructor Details

    • AbstractCatalinaCommandTask

      public AbstractCatalinaCommandTask()
  • Method Details

    • getPath

      public String getPath()
      Returns the path.
      Returns:
      the path
    • setPath

      public void setPath(String path)
      Sets the path.
      Parameters:
      path - The path to set
    • getVersion

      public String getVersion()
      Returns the version.
      Returns:
      the version
    • setVersion

      public void setVersion(String version)
      Sets the version.
      Parameters:
      version - The version to set
    • createQueryString

      public StringBuilder createQueryString(String command) throws org.apache.tools.ant.BuildException
      Create query string for the specified command.
      Parameters:
      command - Command to be executed
      Returns:
      The generated query string
      Throws:
      org.apache.tools.ant.BuildException - if an error occurs