Package org.kiwiproject.registry.util
Class ServiceInstancePaths
java.lang.Object
org.kiwiproject.registry.util.ServiceInstancePaths
Utility methods for generating URLs from the service information
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
urlForPath
(String hostName, List<Port> ports, Port.PortType type, @Nullable String path) Generates a URL given 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 urlports
- The list of possible ports to usetype
- The type of port (Application versus Admin) for the urlpath
- The path to append to the url, with or without a leading "/". May benull
- Returns:
- The combined URL
-