Package de.hybris.smartedit
Class UriVariablesResolver
- java.lang.Object
-
- de.hybris.smartedit.UriVariablesResolver
-
public class UriVariablesResolver extends java.lang.ObjectHelper class to resolve URI variables to be used with spring integration configuration
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringresolveHost()Use the host name defined inproject.properties.static java.lang.StringresolvePort()Find the port of the server running smartedit.static voidsetHostConfiguration(java.lang.String securedPort, java.lang.String unsecuredPort, java.lang.String hostname)Set the port values used by the host
-
-
-
Method Detail
-
resolveHost
public static java.lang.String resolveHost()
Use the host name defined inproject.properties.- Returns:
- the host address
-
resolvePort
public static java.lang.String resolvePort()
Find the port of the server running smartedit. If the port in the request does not match the port of the current host, then return the current host port instead.- Returns:
- the host port
-
setHostConfiguration
public static void setHostConfiguration(java.lang.String securedPort, java.lang.String unsecuredPort, java.lang.String hostname)Set the port values used by the host- Parameters:
securedPort- the value of the secured (ssl) portunsecuredPort- the value of the unsecured (http) port
-
-