| Constructor and Description |
|---|
DefaultUrlHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Must be called after setting properties and before using provided services.
|
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
UrlHelper.getExternalBaseURL(). |
String |
getExternalURLHostOnly()
The base URL including the protocol scheme, host and port only without any path information.
|
protected String |
makeExternalHostURL() |
void |
setExternalContextPath(String externalContextPath) |
void |
setExternalHost(String externalHost) |
void |
setExternalPort(int externalPort) |
void |
setExternalProtocol(String externalProtocol) |
void |
setLocalHostNameProvider(LocalHostNameProvider localHostNameProvider) |
protected String makeExternalHostURL()
public String getExternalURL(String pathWithinContext)
UrlHelperUrlHelper.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
getExternalURL in interface UrlHelperpublic String getExternalBaseURL()
UrlHelpergetExternalBaseURL in interface UrlHelperpublic String getExternalURLHostOnly()
UrlHelper
https://sp.example.com:7070
getExternalURLHostOnly in interface UrlHelperpublic void setLocalHostNameProvider(LocalHostNameProvider localHostNameProvider)
public void setExternalProtocol(String externalProtocol)
public void setExternalHost(String externalHost)
public void setExternalPort(int externalPort)
public void setExternalContextPath(String externalContextPath)
Copyright © 2005–2014 Alfresco Software. All rights reserved.