public final class UrlUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.net.URL |
createCompositeUrl(java.util.List<java.net.URL> urls)
Builds a composite URL from which the original URLs can be recovered via
splitCompositeUrl(java.net.URL). |
static boolean |
isCompositeURL(java.net.URL url)
Indicates if a given URL is a composite URL created via
createCompositeUrl(List). |
static java.util.List<java.net.URL> |
splitCompositeUrl(java.net.URL composite)
Splits a composite URL created with
createCompositeUrl(List) into its original parts. |
static java.io.File |
toFile(java.net.URL url) |
static java.net.URL |
toUrl(java.io.File file)
URL from
File throwing a TestEEfiException instead of checked ones. |
static java.net.URL |
toUrl(java.lang.String string)
URL from string throwing a
TestEEfiException instead of checked ones. |
public static java.net.URL toUrl(java.lang.String string)
TestEEfiException instead of checked ones.string - the string to convert to a URL.public static java.net.URL toUrl(java.io.File file)
File throwing a TestEEfiException instead of checked ones.file - the file to convert to a URL.public static java.net.URL createCompositeUrl(java.util.List<java.net.URL> urls)
splitCompositeUrl(java.net.URL).urls - the urls to compose to a single URL.public static java.util.List<java.net.URL> splitCompositeUrl(java.net.URL composite)
createCompositeUrl(List) into its original parts.composite - the composite URL to split.public static boolean isCompositeURL(java.net.URL url)
createCompositeUrl(List).url - the URL to check.true if the URL is a composite URL, false otherwise.public static java.io.File toFile(java.net.URL url)