org.cip4.jdflib.util.net
Class UrlCheck

java.lang.Object
  extended by org.cip4.jdflib.util.net.UrlCheck

public class UrlCheck
extends Object

class to do network checks on urls

Author:
rainer prosi

Constructor Summary
UrlCheck(String url)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlCheck

public UrlCheck(String url)
Parameters:
url -
Method Detail

ping

public UrlPart ping(int waitMillis)
check if a url is accessible, return null if no connection within waitMillis millisecons

Parameters:
waitMillis -
Returns:
the returned urlPart

getPing

public UrlPart getPing()
get the ping of a started thread

Returns:

startPing

public void startPing(int waitMillis)
start pinging - multiple pings may run simultaneously

Parameters:
waitMillis - time to wait (in total)

pingRC

public int pingRC(int waitMillis)
get the rc

Parameters:
waitMillis -
Returns:

getPingRC

public int getPingRC()
get the rc

Returns:


Copyright © 2013. All Rights Reserved.