org.springframework.shell.support.util
Class UrlUtils
java.lang.Object
org.springframework.shell.support.util.UrlUtils
public final class UrlUtils
- extends Object
Utility methods relating to networking types such as URLs.
- Since:
- 1.2.0
Method Summary |
static URL |
toURL(URI uri)
Converts the given URI to a URL; equivalent to URI.toURL()
except that it throws a runtime exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toURL
public static URL toURL(URI uri)
- Converts the given URI to a URL; equivalent to
URI.toURL()
except that it throws a runtime exception.
- Parameters:
uri
-
- Returns:
- a non-
null
URL
- Throws:
IllegalArgumentException
- if the conversion is not possible