net.ontopia.utils
Class URLChecker

java.lang.Object
  extended by net.ontopia.utils.URLChecker

public class URLChecker
extends java.lang.Object

INTERNAL: Tries to establish a connection to URL and check whether it could be retrieved or is not reachable.


Constructor Summary
URLChecker()
           
 
Method Summary
static boolean isAlive(java.lang.String strURL)
          returns false if no connection could be established
static void main(java.lang.String[] args)
          only for test purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLChecker

public URLChecker()
Method Detail

isAlive

public static boolean isAlive(java.lang.String strURL)
                       throws java.net.MalformedURLException,
                              java.io.IOException
returns false if no connection could be established

Throws:
java.net.MalformedURLException
java.io.IOException

main

public static void main(java.lang.String[] args)
only for test purposes



Copyright © 2000-2012 Ontopia.