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, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
protected abstract org.apache.commons.httpclient.HttpMethodBase
void
execute()
void
setClientRefId
(String clientRefId) void
setDoAuthentication
(boolean doAuthentication) void
setFollowRedirects
(boolean doFollowRedirects) void
void
setQueryString
(String queryString) void
setResponseDataFile
(File responseDataFile) void
setResponseDataProperty
(String responseDataProperty) void
setStatusCodeProperty
(String statusCodeProperty) void
Methods 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, setTaskType
Methods 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:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-