public class HttpUtils extends LoggedObject
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpUtils.HttpResult
Storage class for the HTTP ping result.
|
| Constructor and Description |
|---|
HttpUtils() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ping(URL pingURL) |
boolean |
ping(URL pingURL,
HttpUtils.HttpResult result)
Ping a URL and store the detailed result in a
HttpUtils.HttpResult object. |
boolean |
ping(URL pingURL,
HttpUtils.HttpResult result,
long timeout)
Ping a URL and store the detailed result in a
HttpUtils.HttpResult object. |
boolean |
ping(URL pingURL,
Map<String,String> requestProperties,
HttpUtils.HttpResult result)
Ping a URL and store the detailed result in a
HttpUtils.HttpResult object. |
boolean |
ping(URL pingURL,
Map<String,String> requestProperties,
HttpUtils.HttpResult result,
long timeout)
Ping a URL and store the detailed result in a
HttpUtils.HttpResult object. |
getLogger, setLoggerpublic boolean ping(URL pingURL)
pingURL - the URL to pingpublic boolean ping(URL pingURL, HttpUtils.HttpResult result)
HttpUtils.HttpResult object.pingURL - the URL to pingresult - the detailed ping resultpublic boolean ping(URL pingURL, HttpUtils.HttpResult result, long timeout)
HttpUtils.HttpResult object.pingURL - the URL to pingresult - the detailed ping resulttimeout - the timeout to wait for, 0 if waiting to infinitypublic boolean ping(URL pingURL, Map<String,String> requestProperties, HttpUtils.HttpResult result)
HttpUtils.HttpResult object.pingURL - the URL to pingrequestProperties - optional request properties to add to the connection (can be null)result - the detailed ping resultpublic boolean ping(URL pingURL, Map<String,String> requestProperties, HttpUtils.HttpResult result, long timeout)
HttpUtils.HttpResult object.pingURL - the URL to pingrequestProperties - optional request properties to add to the connection (can be null)result - the detailed ping resulttimeout - the timeout to wait for, 0 if waiting to infinityCopyright © 2004-2013 Codehaus. All Rights Reserved.