|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.catalina.ant.BaseRedirectorHelperTask org.apache.catalina.ant.AbstractCatalinaTask
public abstract class AbstractCatalinaTask
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.
Field Summary | |
---|---|
protected String |
charset
The charset used during URL encoding. |
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. |
Fields inherited from class org.apache.catalina.ant.BaseRedirectorHelperTask |
---|
alwaysLog, failOnError, redirectErrStream, redirector, redirectorConfigured, redirectorElement, redirectOutput, redirectOutStream |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
AbstractCatalinaTask()
|
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 |
getCharset()
|
String |
getPassword()
|
String |
getUrl()
|
String |
getUsername()
|
void |
setCharset(String charset)
|
void |
setPassword(String password)
|
void |
setUrl(String url)
|
void |
setUsername(String username)
|
Methods inherited from class org.apache.catalina.ant.BaseRedirectorHelperTask |
---|
addConfiguredRedirector, closeRedirector, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, handleOutput, isFailOnError, openRedirector, setAlwaysLog, setAppend, setCreateEmptyFiles, setError, setErrorProperty, setFailonerror, setLogError, setOutput, setOutputproperty |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleInput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String charset
protected String password
Manager
application.
protected String url
Manager
application to be used.
protected String username
Manager
application.
Constructor Detail |
---|
public AbstractCatalinaTask()
Method Detail |
---|
public String getCharset()
public void setCharset(String charset)
public String getPassword()
public void setPassword(String password)
public String getUrl()
public void setUrl(String url)
public String getUsername()
public void setUsername(String username)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- if a validation error occurspublic void execute(String command) throws org.apache.tools.ant.BuildException
command
- Command to be executed
org.apache.tools.ant.BuildException
- if an error occurspublic void execute(String command, InputStream istream, String contentType, int contentLength) throws org.apache.tools.ant.BuildException
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
org.apache.tools.ant.BuildException
- if an error occurs
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |