Class AbstractCatalinaTask

    • Field Detail

      • charset

        protected String charset
        The charset used during URL encoding.
      • password

        protected String password
        The login password for the Manager application.
      • url

        protected String url
        The URL of the Manager application to be used.
      • username

        protected String username
        The login username for the Manager application.
      • ignoreResponseConstraint

        protected boolean ignoreResponseConstraint
        If set to true - ignore the constraint of the first line of the response message that must be "OK -".

        When this attribute is set to false (the default), the first line of server response is expected to start with "OK -". If it does not then the task is considered as failed and the first line is treated as an error message.

        When this attribute is set to true, the first line of the response is treated like any other, regardless of its text.

    • Constructor Detail

      • AbstractCatalinaTask

        public AbstractCatalinaTask()
    • Method Detail

      • getCharset

        public String getCharset()
      • setCharset

        public void setCharset​(String charset)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String password)
      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String username)
      • isIgnoreResponseConstraint

        public boolean isIgnoreResponseConstraint()
      • setIgnoreResponseConstraint

        public void setIgnoreResponseConstraint​(boolean ignoreResponseConstraint)
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Execute the specified command. This logic only performs the common attribute validation required by all subclasses; it does not perform any functional logic directly.
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException - if a validation error occurs
      • execute

        public void execute​(String command)
                     throws org.apache.tools.ant.BuildException
        Execute the specified command, based on the configured properties.
        Parameters:
        command - Command to be executed
        Throws:
        org.apache.tools.ant.BuildException - if an error occurs
      • execute

        public void execute​(String command,
                            InputStream istream,
                            String contentType,
                            long contentLength)
                     throws org.apache.tools.ant.BuildException
        Execute the specified command, based on the configured properties. The input stream will be closed upon completion of this task, whether it was executed successfully or not.
        Parameters:
        command - Command to be executed
        istream - InputStream to include in an HTTP PUT, if any
        contentType - Content type to specify for the input, if any
        contentLength - Content length to specify for the input, if any
        Throws:
        org.apache.tools.ant.BuildException - if an error occurs