public class UrlUtils extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_PROTOCOL
"file://" protocol prefix in URLs
|
| Constructor and Description |
|---|
UrlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkHttpConnection(java.lang.String url)
Checks whether an http connection to the given URL is possible or throws an
IOException. |
static java.net.URI |
convertUriFromUrl(java.lang.String url)
Converts the given url to a
URI. |
public static final java.lang.String FILE_PROTOCOL
public UrlUtils()
public static java.net.URI convertUriFromUrl(java.lang.String url) throws java.net.URISyntaxException
URI. Has special handling for "file://"
paths since URI.URI(String) does not handle windows paths correctly.java.net.URISyntaxExceptionpublic static void checkHttpConnection(java.lang.String url) throws java.io.IOException
IOException.java.io.IOException