Class UriVariablesResolver

java.lang.Object
de.hybris.smartedit.UriVariablesResolver

public class UriVariablesResolver extends Object
Helper class to resolve URI variables to be used with spring integration configuration
  • Method Details

    • resolveHost

      public static String resolveHost()
      Use the host name defined in project.properties.
      Returns:
      the host address
    • resolvePort

      public static 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(String securedPort, String unsecuredPort, String hostname)
      Set the port values used by the host
      Parameters:
      securedPort - the value of the secured (ssl) port
      unsecuredPort - the value of the unsecured (http) port