|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cactus.integration.ant.util.HttpProbe
public class HttpProbe
Support class that probes a URL.
| Constructor Summary | |
|---|---|
HttpProbe(java.net.URL theUrl)
Constructor. |
|
| Method Summary | |
|---|---|
int |
testConnectivity()
Tests whether we are able to connect to the HTTP server identified by the specified URL. |
boolean |
timeout(long theWaitedTime,
long theCheckedInterval)
In thread tests whether we are able to connect to the HTTP server identified by the specified URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpProbe(java.net.URL theUrl)
theUrl - The Url| Method Detail |
|---|
public boolean timeout(long theWaitedTime,
long theCheckedInterval)
throws java.lang.InterruptedException,
java.io.IOException
theWaitedTime - The time waitingtheCheckedInterval - The interval to check
java.lang.InterruptedException - If the current Thread is interupted
java.io.IOException - If there is error with reading
public int testConnectivity()
throws java.io.IOException
java.io.IOException - If there is reading error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||