net.ontopia.utils
Class URLChecker
java.lang.Object
net.ontopia.utils.URLChecker
public class URLChecker
- extends Object
INTERNAL: Tries to establish a connection to URL and check whether
it could be retrieved or is not reachable.
Method Summary |
static boolean |
isAlive(String strURL)
returns false if no connection could be established |
static void |
main(String[] args)
only for test purposes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLChecker
public URLChecker()
isAlive
public static boolean isAlive(String strURL)
throws MalformedURLException,
IOException
- returns false if no connection could be established
- Throws:
MalformedURLException
IOException
main
public static void main(String[] args)
- only for test purposes
Copyright © 2000-2012 Ontopia.