Class URLUtils

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

public class URLUtils extends Object
  • Constructor Details

    • URLUtils

      public URLUtils()
  • Method Details

    • getURL

      public static URL getURL(String url) throws 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:
      MalformedURLException - if the value entered in the text field was invalid