public class WWWUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static AvailabilityResult |
checkAvailability(URL httpURL,
int timeout)
Checks availability of the
httpURL. |
static String |
getServerHeader(URL httpURL)
Get the content of the 'Server' header.
|
static boolean |
isAvailable(URL httpURL,
int timeout)
Deprecated.
as of RHQ 4.10. Use
checkAvailability(java.net.URL, int) instead. |
@Deprecated public static boolean isAvailable(URL httpURL, int timeout)
checkAvailability(java.net.URL, int) instead.httpURL - a http or https URL to checktimeout - timeout, in millisecondspublic static AvailabilityResult checkAvailability(URL httpURL, int timeout)
httpURL.
Will first try with HEAD request and fallback to GET.httpURL - a http or https URL to checktimeout - timeout, in millisecondsAvailabilityResultCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.