|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.www.util.WWWUtils
public class WWWUtils
Helper class that contains methods that send HTTP requests and evaluate results.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isAvailable(URL httpURL,
int timeout)
httpURL - a http or https URL to checktimeout - timeout, in milliseconds
public static String getServerHeader(URL httpURL)
httpURL - a http or https URL to get the header from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||