org.apache.tools.ant.taskdefs.condition
public class Http extends ProjectComponent implements Condition
Since: Ant 1.5
Method Summary | |
---|---|
boolean | eval() |
void | setErrorsBeginAt(int errorsBeginAt)
Set the errorsBeginAt attribute |
void | setRequestMethod(String method)
Sets the method to be used when issuing the HTTP request.
|
void | setUrl(String url)
Set the url attribute |
Returns: true if the HTTP request succeeds
Throws: BuildException if an error occurs
Parameters: errorsBeginAt number at which errors begin at, default is 400
Parameters: method The HTTP request method to use. Valid values are the same as those accepted by the HttpURLConnection.setRequestMetho d() method, such as "GET", "HEAD", "TRACE", etc. The default if not specified is "GET".
Since: Ant 1.8.0
See Also: java.net.HttpURLConnection#setRequestMethod
Parameters: url the url of the request