| Modifier and Type | Class and Description |
|---|---|
static class |
UrlUtil.UrlParts |
| Constructor and Description |
|---|
UrlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
constructAbsoluteUrl(String theBase,
String theEndpoint)
Resolve a relative URL - THIS METHOD WILL NOT FAIL but will log a warning and return theEndpoint if the input is invalid.
|
static String |
constructRelativeUrl(String theParentExtensionUrl,
String theExtensionUrl) |
static String |
escape(String theValue)
URL encode a value
|
static boolean |
isAbsolute(String theValue) |
static boolean |
isValid(String theUrl) |
static void |
main(String[] args) |
static Map<String,String[]> |
parseQueryString(String theQueryString) |
static Map<String,String[]> |
parseQueryStrings(String... theQueryString) |
static UrlUtil.UrlParts |
parseUrl(String theUrl)
Parse a URL in one of the following forms:
[Resource Type]?[Search Params]
[Resource Type]/[Resource ID]
[Resource Type]/[Resource ID]/_history/[Version ID]
|
static String |
unescape(String theString) |
public UrlUtil()
public static String constructAbsoluteUrl(String theBase, String theEndpoint)
public static String constructRelativeUrl(String theParentExtensionUrl, String theExtensionUrl)
public static boolean isAbsolute(String theValue)
public static Map<String,String[]> parseQueryString(String theQueryString)
public static Map<String,String[]> parseQueryStrings(String... theQueryString)
public static UrlUtil.UrlParts parseUrl(String theUrl)
Copyright © 2014–2017 University Health Network. All rights reserved.