public class HttpUtils
extends org.codehaus.cargo.util.log.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,
Map requestProperties,
HttpUtils.HttpResult result)
Ping a URL and store the detailed result in a
HttpUtils.HttpResult object. |
public final boolean ping(URL pingURL)
pingURL
- the URL to pingpublic final boolean ping(URL pingURL, HttpUtils.HttpResult result)
HttpUtils.HttpResult
object.pingURL
- the URL to pingresult
- the detailed ping resultpublic final boolean ping(URL pingURL, Map 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 resultCopyright © 2004-2013 Codehaus. All Rights Reserved.