public class UrlCheck extends Object
| Constructor and Description |
|---|
UrlCheck(String url) |
UrlCheck(String url,
String method) |
| Modifier and Type | Method and Description |
|---|---|
UrlPart |
getPing()
get the ping of a started thread
|
int |
getPingRC()
get the rc
|
UrlPart |
ping(int waitMillis)
check if a url is accessible, return null if no connection within waitMillis millisecons
|
int |
pingRC(int waitMillis)
get the rc
|
void |
startPing(int waitMillis)
start pinging - multiple pings may run simultaneously
|
public final String method
public UrlCheck(String url)
url - public UrlPart ping(int waitMillis)
waitMillis - public UrlPart getPing()
public void startPing(int waitMillis)
waitMillis - time to wait (in total)public int pingRC(int waitMillis)
waitMillis - public int getPingRC()
Copyright © 2013. All Rights Reserved.