|
||||||||||
| 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 abstract class WWWUtils
Helper class that contains methods that send http requests and evaluate results
| Constructor Summary | |
|---|---|
WWWUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getServerHeader(java.net.URL httpURL)
Get the content of the 'Server:' header |
static boolean |
isAvailable(java.net.URL httpURL)
Sends a HEAD request to the passed url and returns if the server was reachable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WWWUtils()
| Method Detail |
|---|
public static boolean isAvailable(java.net.URL httpURL)
httpURL - a http or https URL to check
public static java.lang.String getServerHeader(java.net.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 | |||||||||