public final class UriUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.net.URL |
buildJarSafeUrl(java.io.File file) |
static java.net.URL |
buildJarUrl(java.io.File jarFile) |
static java.net.URL |
buildJarUrl(java.io.File jarFile,
java.lang.String entryPath) |
static java.net.URL |
buildJarUrl(java.lang.String fileUrlString) |
static java.net.URL |
buildJarUrl(java.lang.String fileUrlString,
java.lang.String entryPath) |
static java.lang.String |
getWarSeparator() |
static boolean |
hasScheme(java.lang.CharSequence uri)
Determine if a URI string has a
scheme component. |
static java.net.URL |
warToJar(java.net.URL warUrl)
Convert a URL of the form
war:file:... |
public static boolean hasScheme(java.lang.CharSequence uri)
scheme
component.uri
- The URI to testtrue
if a scheme is present, otherwise {code @false}public static java.net.URL buildJarUrl(java.io.File jarFile) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.net.URL buildJarUrl(java.io.File jarFile, java.lang.String entryPath) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.net.URL buildJarUrl(java.lang.String fileUrlString) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.net.URL buildJarUrl(java.lang.String fileUrlString, java.lang.String entryPath) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.net.URL buildJarSafeUrl(java.io.File file) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.net.URL warToJar(java.net.URL warUrl) throws java.net.MalformedURLException
war:file:...
to
jar:file:...
.warUrl
- The WAR URL to convertjava.net.MalformedURLException
- If the conversion failspublic static java.lang.String getWarSeparator()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.