org.apache.catalina.ant

Class AbstractCatalinaTask

Known Direct Subclasses:
DeployTask, InstallTask, JMXQueryTask, JMXSetTask, ListTask, ReloadTask, RemoveTask, ResourcesTask, RolesTask, ServerinfoTask, SessionsTask, StartTask, StopTask, UndeployTask

public abstract class AbstractCatalinaTask
extends Task

Abstract base class for Ant tasks that interact with the Manager web application for dynamically deploying and undeploying applications. These tasks require Ant 1.4 or later.

Version:
$Revision: 1.3 $ $Date: 2004/02/27 14:58:40 $

Author:
Craig R. McClanahan

Since:
4.1

Field Summary

protected String
password
The login password for the Manager application.
protected String
url
The URL of the Manager application to be used.
protected String
username
The login username for the Manager application.

Method Summary

void
execute()
Execute the specified command.
void
execute(String command)
Execute the specified command, based on the configured properties.
void
execute(String command, InputStream istream, String contentType, int contentLength)
Execute the specified command, based on the configured properties.
String
getPassword()
String
getUrl()
String
getUsername()
void
setPassword(String password)
void
setUrl(String url)
void
setUsername(String username)

Field Details

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.

Method Details

execute

public void execute()
            throws 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.


execute

public void execute(String command)
            throws BuildException
Execute the specified command, based on the configured properties.

Parameters:
command - Command to be executed


execute

public void execute(String command,
                    InputStream istream,
                    String contentType,
                    int contentLength)
            throws 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


getPassword

public String getPassword()


getUrl

public String getUrl()


getUsername

public String getUsername()


setPassword

public void setPassword(String password)


setUrl

public void setUrl(String url)


setUsername

public void setUsername(String username)


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.