protected abstract static class HTTPTask.Request extends HTTPTask
Task for DELETE, GET, POST, and PUT
 operations.
 <Request buffer="boolean" charset="String" classname="String" classpathref="Reference" content="String" description="String" fragment="String" host="String" path="String" port="Integer" query="String" scheme="String" taskname="String" uri="String" userinfo="String">
  <classpath .../>
  <parameter if="String" name="String" unless="String">... text ...</parameter>
  <header if="String" name="String" unless="String">... text ...</header>
  ... text ...
</Request>
HTTPTask.Delete, HTTPTask.Get, HTTPTask.Head, HTTPTask.NameValuePairImpl, HTTPTask.Options, HTTPTask.Patch, HTTPTask.Post, HTTPTask.Put, HTTPTask.Requestdescription, location, project| Modifier | Constructor and Description | 
|---|---|
| protected  | Request() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addConfiguredHeader(HTTPTask.NameValuePairImpl header) | 
| void | addConfiguredParameter(HTTPTask.NameValuePairImpl parameter) | 
| void | addText(String text) | 
| protected void | configure(HttpUriRequest request)Method to configure the  HTTPTaskHttpUriRequest. | 
| void | execute()Default implementation for  Tasksubclasses. | 
| void | init()Default implementation for  Tasksubclasses. | 
| protected abstract HttpUriRequest | request()Method to construct the  HTTPTask-specificHttpUriRequest. | 
| void | setCharset(String string) | 
| void | setFragment(String string) | 
| void | setHost(String string) | 
| void | setPath(String string) | 
| void | setPort(Integer integer) | 
| void | setQuery(String string) | 
| void | setScheme(String string) | 
| void | setURI(String string) | 
| void | setUserInfo(String string) | 
builder, log, log, log, process, processbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAntTaskNamelog, log, log, log, log, log, log, log, log, log, logcreateClasspath, delegate, delegate, getClassForName, getClassLoader, setClassname, setClasspathrefconfigureprotected Request()
public void setURI(String string) throws URISyntaxException
URISyntaxExceptionpublic void setCharset(String string)
public void setFragment(String string)
public void setUserInfo(String string)
public void addConfiguredParameter(HTTPTask.NameValuePairImpl parameter)
public void addConfiguredHeader(HTTPTask.NameValuePairImpl header)
public void init() throws BuildException
ClasspathDelegateAntTaskTask
 subclasses.init in interface ClasspathDelegateAntTaskinit in interface ConfigurableAntTaskinit in class HTTPTaskBuildExceptionprotected abstract HttpUriRequest request()
HTTPTask-specific
 HttpUriRequest.HttpUriRequest.protected void configure(HttpUriRequest request) throws Exception
request - The HttpUriRequest.Exception - If an exception is encountered.public void execute() throws BuildException
AnnotatedAntTaskTask subclasses.  Check attributes
 annotated with AntTaskAttributeConstraint.
 See AnnotatedAntTaskConfigurationChecker.execute in interface AnnotatedAntTaskexecute in class HTTPTaskBuildException - If a
                          AntTaskAttributeConstraint.Checker
                          fails.Copyright © 2015–2020 Allen D. Ball. All rights reserved.