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 |
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 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–2017 Alfresco Software. All rights reserved.