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 |
setBuffer(boolean buffer) |
void |
setStream(InputStream stream)
Setter for stream attribute.
|
void |
startPing(int waitMillis)
start pinging - multiple pings may run simultaneously
|
String |
toString() |
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()
public void setStream(InputStream stream)
stream
- the stream to setpublic void setBuffer(boolean buffer)
buffer
- public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.