public final class URIParserUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
containsReservedKeywords(String token) |
static String |
escapeChars(String s) |
static String |
getAbsoluteURI(String arg) |
static String |
getNamespace(String packageName) |
static String |
getPackageName(String nameSpaceURI) |
static String |
normalize(String uri) |
static String |
parsePackageName(String namespace,
String defaultPackageName) |
static URL[] |
pathToURLs(String path) |
static String |
relativize(String base,
String toBeRelativized) |
static String |
relativize(URI baseURI,
URI toBeRelativizedURI)
This is a custom implementation for doing what URI.relativize(URI uri) should be
doing but is not actually doing when URI roots do not fully match.
|
public static boolean containsReservedKeywords(String token)
public static String relativize(String base, String toBeRelativized) throws URISyntaxException
URISyntaxException
public static String relativize(URI baseURI, URI toBeRelativizedURI) throws URISyntaxException
base
- The base URItoBeRelativized
- The URI to be realivizedURISyntaxException
Copyright © 2016 JBoss by Red Hat. All rights reserved.