org.apache.catalina.ant

Class AbstractCatalinaTask

public abstract class AbstractCatalinaTask extends BaseRedirectorHelperTask

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.

Since: 4.1

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Field Summary
protected Stringcharset
The charset used during URL encoding.
protected Stringpassword
The login password for the Manager application.
protected Stringurl
The URL of the Manager application to be used.
protected Stringusername
The login username for the Manager application.
Method Summary
voidexecute()
Execute the specified command.
voidexecute(String command)
Execute the specified command, based on the configured properties.
voidexecute(String command, InputStream istream, String contentType, int contentLength)
Execute the specified command, based on the configured properties.
StringgetCharset()
StringgetPassword()
StringgetUrl()
StringgetUsername()
voidsetCharset(String charset)
voidsetPassword(String password)
voidsetUrl(String url)
voidsetUsername(String username)

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.

Method Detail

execute

public void execute()
Execute the specified command. This logic only performs the common attribute validation required by all subclasses; it does not perform any functional logic directly.

Throws: BuildException if a validation error occurs

execute

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

Parameters: command Command to be executed

Throws: BuildException if an error occurs

execute

public void execute(String command, InputStream istream, String contentType, int contentLength)
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: BuildException if an error occurs

getCharset

public String getCharset()

getPassword

public String getPassword()

getUrl

public String getUrl()

getUsername

public String getUsername()

setCharset

public void setCharset(String charset)

setPassword

public void setPassword(String password)

setUrl

public void setUrl(String url)

setUsername

public void setUsername(String username)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.