public final class URLUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static URL |
buildUrl(String context,
String... relocations)
Use URL context and one or more relocations to build end URL.
|
static URL |
buildUrl(URL context,
String... relocations)
Use URL context and one or more relocations to build end URL.
|
static URL |
changeBase(URL url,
URL base) |
static URL |
getUrlBase(URL url) |
public static URL buildUrl(String context, String... relocations)
context - first URL used like a context root for all relocation changesrelocations - array of relocation URLsAssertionError - when context or some of relocations are malformed URLspublic static URL buildUrl(URL context, String... relocations)
context - first URL used like a context root for all relocation changesrelocations - array of relocation URLsAssertionError - when context or some of relocations are malformed URLsCopyright © 2019 JBoss by Red Hat. All rights reserved.