public class UrlUtil extends Object
| Constructor and Description |
|---|
UrlUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
buildUrl(String protocol,
String host,
int port,
String context) |
static String |
getAlfrescoUrl(SysAdminParams sysAdminParams)
Builds up the Url to Alfresco based on the settings in the
SysAdminParams. |
static String |
getApiExplorerUrl(SysAdminParams sysAdminParams) |
static String |
getApiExplorerUrl(SysAdminParams sysAdminParams,
String requestURL,
String requestURI)
Builds URL to Api-Explorer based on the request only if the URL property is not provided
SysAdminParams. |
static String |
getShareUrl(SysAdminParams sysAdminParams)
Builds up the Url to Share based on the settings in the
SysAdminParams. |
static String |
replaceShareUrlPlaceholder(String value,
SysAdminParams sysAdminParams)
Replaces the share url placeholder, namely ${shareUrl}, with share url.
|
public static final Pattern PATTERN
public static String getAlfrescoUrl(SysAdminParams sysAdminParams)
SysAdminParams.public static String getShareUrl(SysAdminParams sysAdminParams)
SysAdminParams.public static String getApiExplorerUrl(SysAdminParams sysAdminParams)
public static String getApiExplorerUrl(SysAdminParams sysAdminParams, String requestURL, String requestURI)
SysAdminParams.public static String replaceShareUrlPlaceholder(String value, SysAdminParams sysAdminParams)
value - the string value which contains the share url placeholdersysAdminParams - the SysAdminParams objectvalue contains share url placeholder,
the placeholder is replaced with share url; otherwise, the given value is simply returnedCopyright © 2005–2018 Alfresco Software. All rights reserved.