Class ServiceInstancePaths

java.lang.Object
org.kiwiproject.registry.util.ServiceInstancePaths

public final class ServiceInstancePaths extends Object
Utility methods for generating URLs from the service information
  • Method Details

    • urlForPath

      public static String urlForPath(String hostName, List<Port> ports, Port.PortType type, @Nullable String path)
      Generates a URL given service information.
      Parameters:
      hostName - The hostname for the url
      ports - The list of possible ports to use
      type - The type of port (Application versus Admin) for the url
      path - The path to append to the url, with or without a leading "/". May be null
      Returns:
      The combined URL