org.dawb.common.util.net
Class URLUtils

java.lang.Object
  extended by org.dawb.common.util.net.URLUtils

public class URLUtils
extends java.lang.Object


Constructor Summary
URLUtils()
           
 
Method Summary
static java.net.URL getURL(java.lang.String url)
          Tries to create an URL from the passed string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLUtils

public URLUtils()
Method Detail

getURL

public static java.net.URL getURL(java.lang.String url)
                           throws java.net.MalformedURLException
Tries to create an URL from the passed string.

Parameters:
url - the string to transform into an URL
Returns:
URL if entered value could be properly tranformed, or
Throws:
java.net.MalformedURLException - if the value entered in the text field was invalid