org.yawlfoundation.yawl.util
Class HttpURLValidator

java.lang.Object
  extended by org.yawlfoundation.yawl.util.HttpURLValidator

public class HttpURLValidator
extends Object

A simple static checker that (1) checks that the url string passed in is a valid URL, and then (2) that the server at the URL is responsive. Author: Michael Adams Creation Date: 7/05/2009


Constructor Summary
HttpURLValidator()
           
 
Method Summary
static void cancelAll()
           
static boolean isTomcatRunning(String urlStr)
           
static boolean pingUntilAvailable(String urlStr, int timeoutSeconds)
           
static boolean simplePing(String host, int port)
           
static String validate(String urlStr)
          validaets a url passed as a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpURLValidator

public HttpURLValidator()
Method Detail

validate

public static String validate(String urlStr)
validaets a url passed as a String

Parameters:
urlStr - the url to validate
Returns:
a message describing the success of failure of the validation

cancelAll

public static void cancelAll()

pingUntilAvailable

public static boolean pingUntilAvailable(String urlStr,
                                         int timeoutSeconds)
                                  throws MalformedURLException
Throws:
MalformedURLException

simplePing

public static boolean simplePing(String host,
                                 int port)

isTomcatRunning

public static boolean isTomcatRunning(String urlStr)


Copyright © 2004-2012 The YAWL Foundation.