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 Stringprotected static StringbuildWorkspaceUrl(String workSpaceProtocol, String workspaceHost, int workspacePort) static 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 StringgetWorkspaceUrl(SysAdminParams sysAdminParams) Builds up the Url to Adw based on the settings in theSysAdminParams.static StringreplaceAlfrescoUrlPlaceholder(String value, SysAdminParams sysAdminParams) static StringreplaceRepoBaseUrlPlaceholder(String value, SysAdminParams sysAdminParams) Replaces the repo base url placeholder, namely ${repoBaseUrl}, with workspace url.static StringreplaceShareUrlPlaceholder(String value, SysAdminParams sysAdminParams) Replaces the share url placeholder, namely ${shareUrl}, with share url.static StringreplaceWorkSpaceUrlPlaceholder(String pageUrl, String workspaceUrl)
-
Field Details
-
PATTERN
-
REPO_PATTERN
-
REPOBASE_PATTERN
-
WORKSPACE_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
-
getWorkspaceUrl
Builds up the Url to Adw based on the settings in theSysAdminParams.- Returns:
- Adw Url such as https://col.ab.or.ate/#/ or http://localhost:8081/#/
-
buildWorkspaceUrl
-
replaceRepoBaseUrlPlaceholder
Replaces the repo base url placeholder, namely ${repoBaseUrl}, with workspace url.- Parameters:
value- the string value which contains the repoBase url placeholdersysAdminParams- theSysAdminParamsobject- Returns:
- if the given
valuecontains share url placeholder, the placeholder is replaced with share url; otherwise, the givenvalueis simply returned
-
replaceWorkSpaceUrlPlaceholder
-