org.apache.catalina.ant
Class AbstractCatalinaTask
Task
org.apache.catalina.ant.AbstractCatalinaTask
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:
- Craig R. McClanahan
- 4.1
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.
|
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)
|
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.
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.
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.
command
- Command to be executedistream
- InputStream to include in an HTTP PUT, if anycontentType
- Content type to specify for the input, if anycontentLength
- 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.