public abstract class AbstractCatalinaTask extends BaseRedirectorHelperTask
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
charset
The charset used during URL encoding.
|
protected boolean |
ignoreResponseConstraint
If set to true - ignore the constraint of the first line of the response
message that must be "OK -".
|
protected java.lang.String |
password
The login password for the
Manager application. |
protected java.lang.String |
url
The URL of the
Manager application to be used. |
protected java.lang.String |
username
The login username for the
Manager application. |
alwaysLog, failOnError, redirectErrStream, redirector, redirectorConfigured, redirectorElement, redirectOutput, redirectOutStream
Constructor and Description |
---|
AbstractCatalinaTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the specified command.
|
void |
execute(java.lang.String command)
Execute the specified command, based on the configured properties.
|
void |
execute(java.lang.String command,
java.io.InputStream istream,
java.lang.String contentType,
long contentLength)
Execute the specified command, based on the configured properties.
|
java.lang.String |
getCharset() |
java.lang.String |
getPassword() |
java.lang.String |
getUrl() |
java.lang.String |
getUsername() |
boolean |
isIgnoreResponseConstraint() |
void |
setCharset(java.lang.String charset) |
void |
setIgnoreResponseConstraint(boolean ignoreResponseConstraint) |
void |
setPassword(java.lang.String password) |
void |
setUrl(java.lang.String url) |
void |
setUsername(java.lang.String username) |
addConfiguredRedirector, closeRedirector, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, handleOutput, isFailOnError, openRedirector, setAlwaysLog, setAppend, setCreateEmptyFiles, setError, setErrorProperty, setFailonerror, setLogError, setOutput, setOutputproperty
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleInput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected java.lang.String charset
protected java.lang.String password
Manager
application.protected java.lang.String url
Manager
application to be used.protected java.lang.String username
Manager
application.protected boolean ignoreResponseConstraint
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.
public java.lang.String getCharset()
public void setCharset(java.lang.String charset)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public boolean isIgnoreResponseConstraint()
public void setIgnoreResponseConstraint(boolean ignoreResponseConstraint)
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(java.lang.String command) throws org.apache.tools.ant.BuildException
command
- Command to be executedorg.apache.tools.ant.BuildException
- if an error occurspublic void execute(java.lang.String command, java.io.InputStream istream, java.lang.String contentType, long 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 anyorg.apache.tools.ant.BuildException
- if an error occursCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.