Inserts the host name prefix in the response URL. The host name prefix is unique for each Company in the system, and is configured on the Company details page in the web user interface.
Availability: xMatters on demand and xMatters version 5.0.
@company::insertHostnamePrefix(String responseURL)
(String) responseUrl: the response URL to which you want to add the host name prefix.
The response URL with company host name prefix.
The following example illustrates how to use the insertHostnamePrefix method to combine a Company's prefix with the WEBSERVERURL global constant:
@company = @event::getCompany()
$main.xmattersURL = @script::getGlobalConstant("WEBSERVERURL")
$main.xmattersURL = @company::insertHostnamePrefix($main.xmattersURL)
If the WEBSERVER URL was "www.xmatters.com", and the Company hostname prefix was "companya", the above code would result in the following URL as the content of the $main.xmattersurl variable:
companya.xmatters.com