java.lang.Cloneable
GetMethodTask
, HeadMethodTask
, PostMethodTask
public abstract class AbstractMethodTask
extends org.apache.tools.ant.Task
Modifier and Type | Class | Description |
---|---|---|
static class |
AbstractMethodTask.ResponseHeader |
Constructor | Description |
---|---|
AbstractMethodTask() |
Modifier and Type | Method | Description |
---|---|---|
void |
addConfiguredHeader(org.apache.commons.httpclient.Header header) |
|
void |
addConfiguredHttpClient(HttpClientType httpClientType) |
|
void |
addConfiguredParams(MethodParams params) |
|
void |
addConfiguredResponseHeader(AbstractMethodTask.ResponseHeader responseHeader) |
|
protected void |
cleanupResources(org.apache.commons.httpclient.HttpMethodBase method) |
|
protected void |
configureMethod(org.apache.commons.httpclient.HttpMethodBase method) |
|
protected org.apache.commons.httpclient.HttpMethodBase |
createMethodIfNecessary() |
|
protected abstract org.apache.commons.httpclient.HttpMethodBase |
createNewMethod() |
|
void |
execute() |
|
void |
setClientRefId(java.lang.String clientRefId) |
|
void |
setDoAuthentication(boolean doAuthentication) |
|
void |
setFollowRedirects(boolean doFollowRedirects) |
|
void |
setPath(java.lang.String path) |
|
void |
setQueryString(java.lang.String queryString) |
|
void |
setResponseDataFile(java.io.File responseDataFile) |
|
void |
setResponseDataProperty(java.lang.String responseDataProperty) |
|
void |
setStatusCodeProperty(java.lang.String statusCodeProperty) |
|
void |
setURL(java.lang.String url) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected abstract org.apache.commons.httpclient.HttpMethodBase createNewMethod()
protected void configureMethod(org.apache.commons.httpclient.HttpMethodBase method)
protected void cleanupResources(org.apache.commons.httpclient.HttpMethodBase method)
public void addConfiguredResponseHeader(AbstractMethodTask.ResponseHeader responseHeader)
public void addConfiguredHttpClient(HttpClientType httpClientType)
protected org.apache.commons.httpclient.HttpMethodBase createMethodIfNecessary()
public void setResponseDataFile(java.io.File responseDataFile)
public void setResponseDataProperty(java.lang.String responseDataProperty)
public void setStatusCodeProperty(java.lang.String statusCodeProperty)
public void setClientRefId(java.lang.String clientRefId)
public void setDoAuthentication(boolean doAuthentication)
public void setFollowRedirects(boolean doFollowRedirects)
public void addConfiguredParams(MethodParams params)
public void setPath(java.lang.String path)
public void setURL(java.lang.String url)
public void setQueryString(java.lang.String queryString)
public void addConfiguredHeader(org.apache.commons.httpclient.Header header)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException