public class UriVariablesResolver
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
resolveHost()
Use the host name defined in
project.properties. |
static java.lang.String |
resolvePort()
Find the port of the server running smartedit.
|
static void |
setHostConfiguration(java.lang.String securedPort,
java.lang.String unsecuredPort,
java.lang.String hostname)
Set the port values used by the host
|
public static java.lang.String resolveHost()
throws java.net.UnknownHostException
project.properties. If it is not defined, find the host name of the server
running smartedit. If the host name in the request does not match the current host, then return the current host
name instead.java.net.UnknownHostException - when no IP address for the host could be foundpublic static java.lang.String resolvePort()
public static void setHostConfiguration(java.lang.String securedPort,
java.lang.String unsecuredPort,
java.lang.String hostname)
securedPort - the value of the secured (ssl) portunsecuredPort - the value of the unsecured (http) portCopyright © 2018 SAP SE. All Rights Reserved.