Package 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
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
GetMethodTask,HeadMethodTask,PostMethodTask
public abstract class AbstractMethodTask
extends org.apache.tools.ant.Task
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredHeader(org.apache.commons.httpclient.Header header) voidaddConfiguredHttpClient(HttpClientType httpClientType) voidaddConfiguredParams(MethodParams params) voidaddConfiguredResponseHeader(AbstractMethodTask.ResponseHeader responseHeader) protected voidcleanupResources(org.apache.commons.httpclient.HttpMethodBase method) protected voidconfigureMethod(org.apache.commons.httpclient.HttpMethodBase method) protected org.apache.commons.httpclient.HttpMethodBaseprotected abstract org.apache.commons.httpclient.HttpMethodBasevoidexecute()voidsetClientRefId(String clientRefId) voidsetDoAuthentication(boolean doAuthentication) voidsetFollowRedirects(boolean doFollowRedirects) voidvoidsetQueryString(String queryString) voidsetResponseDataFile(File responseDataFile) voidsetResponseDataProperty(String responseDataProperty) voidsetStatusCodeProperty(String statusCodeProperty) voidMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
AbstractMethodTask
public AbstractMethodTask()
-
-
Method Details
-
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
-
addConfiguredHttpClient
-
createMethodIfNecessary
protected org.apache.commons.httpclient.HttpMethodBase createMethodIfNecessary() -
setResponseDataFile
-
setResponseDataProperty
-
setStatusCodeProperty
-
setClientRefId
-
setDoAuthentication
public void setDoAuthentication(boolean doAuthentication) -
setFollowRedirects
public void setFollowRedirects(boolean doFollowRedirects) -
addConfiguredParams
-
setPath
-
setURL
-
setQueryString
-
addConfiguredHeader
public void addConfiguredHeader(org.apache.commons.httpclient.Header header) -
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-