Class UriVariablesResolver


  • public class UriVariablesResolver
    extends java.lang.Object
    Helper 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.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolveHost

        public static java.lang.String resolveHost()
        Use the host name defined in project.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) port
        unsecuredPort - the value of the unsecured (http) port