public interface UrlHelper
Trailing slashes are never present so as to give consistency between different context paths, e.g. "/" and "/alfresco". Otherwise it would be necessary to check for trailing slashes before appending to the returned paths.
| Modifier and Type | Method and Description |
|---|---|
String |
getExternalBaseURL()
The base URL exposed to clients, regardless of where Sharepoint is deployed.
|
String |
getExternalURL(String pathWithinContext)
Creates a URL relative to the base URL as returned by
getExternalBaseURL(). |
String |
getExternalURLHostOnly()
The base URL including the protocol scheme, host and port only without any path information.
|
String getExternalBaseURL()
String getExternalURL(String pathWithinContext)
getExternalBaseURL(). For example
if the base URL is
https://sp.example.com:7070/sharepointContext
and pathWithinContext is
myfolder/mydocument.txt
then the returned URL will be
https://sp.example.com:7070/sharepointContext/myfolder/mydocument.txt
pathWithinContext - String getExternalURLHostOnly()
https://sp.example.com:7070
Copyright © 2005–2014 Alfresco Software. All rights reserved.