Package org.alfresco.util
Class UrlUtil
java.lang.Object
org.alfresco.util.UrlUtil
Alfresco URL related utility functions.
- Since:
- 3.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringstatic StringgetAlfrescoUrl(SysAdminParams sysAdminParams) Builds up the Url to Alfresco based on the settings in theSysAdminParams.static StringgetApiExplorerUrl(SysAdminParams sysAdminParams) static StringgetApiExplorerUrl(SysAdminParams sysAdminParams, String requestURL, String requestURI) Builds URL to Api-Explorer based on the request only if the URL property is not providedSysAdminParams.static StringgetShareUrl(SysAdminParams sysAdminParams) Builds up the Url to Share based on the settings in theSysAdminParams.static StringreplaceAlfrescoUrlPlaceholder(String value, SysAdminParams sysAdminParams) static StringreplaceShareUrlPlaceholder(String value, SysAdminParams sysAdminParams) Replaces the share url placeholder, namely ${shareUrl}, with share url.
-
Field Details
-
PATTERN
-
REPO_PATTERN
-
-
Constructor Details
-
UrlUtil
public UrlUtil()
-
-
Method Details
-
getAlfrescoUrl
Builds up the Url to Alfresco based on the settings in theSysAdminParams.- Returns:
- Alfresco Url such as https://col.ab.or.ate/alfresco/ or http://localhost:8080/alfresco/
-
getApiExplorerUrl
-
getApiExplorerUrl
public 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 providedSysAdminParams.- Returns:
- Rest-Api Url such as https://col.ab.or.ate/api-explorer/ or http://localhost:8082/api-explorer/
-
replaceAlfrescoUrlPlaceholder
-
buildUrl
-