net.sf.antcontrib.net.httpclient
Class AbstractMethodTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.sf.antcontrib.net.httpclient.AbstractMethodTask
- Direct Known Subclasses:
- GetMethodTask, HeadMethodTask, PostMethodTask
public abstract class AbstractMethodTask
- extends org.apache.tools.ant.Task
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMethodTask
public AbstractMethodTask()
createNewMethod
protected abstract org.apache.commons.httpclient.HttpMethodBase createNewMethod()
configureMethod
protected void configureMethod(org.apache.commons.httpclient.HttpMethodBase method)
cleanupResources
protected void cleanupResources(org.apache.commons.httpclient.HttpMethodBase method)
addConfiguredResponseHeader
public void addConfiguredResponseHeader(AbstractMethodTask.ResponseHeader responseHeader)
addConfiguredHttpClient
public void addConfiguredHttpClient(HttpClientType httpClientType)
createMethodIfNecessary
protected org.apache.commons.httpclient.HttpMethodBase createMethodIfNecessary()
setResponseDataFile
public void setResponseDataFile(java.io.File responseDataFile)
setResponseDataProperty
public void setResponseDataProperty(java.lang.String responseDataProperty)
setStatusCodeProperty
public void setStatusCodeProperty(java.lang.String statusCodeProperty)
setClientRefId
public void setClientRefId(java.lang.String clientRefId)
setDoAuthentication
public void setDoAuthentication(boolean doAuthentication)
setFollowRedirects
public void setFollowRedirects(boolean doFollowRedirects)
addConfiguredParams
public void addConfiguredParams(MethodParams params)
setPath
public void setPath(java.lang.String path)
setURL
public void setURL(java.lang.String url)
setQueryString
public void setQueryString(java.lang.String queryString)
addConfiguredHeader
public void addConfiguredHeader(org.apache.commons.httpclient.Header header)
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Overrides:
execute
in class org.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException