Modifier and Type | Field and Description |
---|---|
private static final String | |
private static final int | |
private int | |
private boolean | |
private static final String | |
private static final String | |
private int | |
private String | |
private String |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if the HTTP request succeedsImplements org. |
private boolean | |
private int | |
public void | setErrorsBeginAt(int
number at which errors begin at, default is
400 errorsBeginAt)Set the errorsBeginAt attribute |
public void | setFollowRedirects(boolean
boolean f)Whether redirects sent by the server should be followed, defaults to true. |
public void | |
public void | setRequestMethod(String
The HTTP request method to use. Valid values are
the same as those accepted by the
HttpURLConnection.setRequestMethod() method,
such as "GET", "HEAD", "TRACE", etc. The default
if not specified is "GET". method)Sets the method to be used when issuing the HTTP request. |
public void |
DEFAULT_REQUEST_METHOD | back to summary |
---|---|
private static final String DEFAULT_REQUEST_METHOD |
ERROR_BEGINS | back to summary |
---|---|
private static final int ERROR_BEGINS |
errorsBeginAt | back to summary |
---|---|
private int errorsBeginAt |
followRedirects | back to summary |
---|---|
private boolean followRedirects |
HTTP | back to summary |
---|---|
private static final String HTTP |
HTTPS | back to summary |
---|---|
private static final String HTTPS |
readTimeout | back to summary |
---|---|
private int readTimeout |
requestMethod | back to summary |
---|---|
private String requestMethod |
spec | back to summary |
---|---|
private String spec |
Http | back to summary |
---|---|
public Http() |
eval | back to summary |
---|---|
public boolean eval() throws BuildException Implements org. Doc from org. Is this condition true?
|
redirectionAllowed | back to summary |
---|---|
private boolean redirectionAllowed(final URL from, final URL to) |
request | back to summary |
---|---|
private int request(final HttpURLConnection http, final URL url) throws IOException |
setErrorsBeginAt | back to summary |
---|---|
public void setErrorsBeginAt(int errorsBeginAt) Set the errorsBeginAt attribute
|
setFollowRedirects | back to summary |
---|---|
public void setFollowRedirects(boolean f) Whether redirects sent by the server should be followed, defaults to true.
|
setReadTimeout | back to summary |
---|---|
public void setReadTimeout(int t) Sets the read timeout. Any value < 0 will be ignored
|
setRequestMethod | back to summary |
---|---|
public void setRequestMethod(String method) Sets the method to be used when issuing the HTTP request.
|
setUrl | back to summary |
---|---|
public void setUrl(String url) Set the url attribute
|