public class WWWUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getServerHeader(URL httpURL)
Get the content of the 'Server' header.
|
static boolean |
isAvailable(URL httpURL,
int timeout)
Sends a HEAD request to the passed URL and returns true if the URL was reachable.
|
public static boolean isAvailable(URL httpURL, int timeout)
httpURL - a http or https URL to checktimeout - timeout, in millisecondsCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.