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)
UrlHelper
UrlHelper.getExternalBaseURL()
. For example
if the base URL is
https://sp.example.com:7070/sharepointContextand pathWithinContext is
myfolder/mydocument.txtthen the returned URL will be
https://sp.example.com:7070/sharepointContext/myfolder/mydocument.txt
getExternalURL
in interface UrlHelper
public String getExternalBaseURL()
UrlHelper
getExternalBaseURL
in interface UrlHelper
public String getExternalURLHostOnly()
UrlHelper
https://sp.example.com:7070
getExternalURLHostOnly
in interface UrlHelper
public 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–2017 Alfresco Software. All rights reserved.