Class HostAndPort

java.lang.Object
io.smallrye.stork.utils.HostAndPort

public class HostAndPort extends Object
Structure representing a host:port address.
  • Field Details

    • host

      public final String host
      The host.
    • port

      public final int port
      The port.
    • path

      public final Optional<String> path
      The path, if any.
  • Constructor Details

    • HostAndPort

      public HostAndPort(String host, int port, String path)
      Creates a new HostAndPort
      Parameters:
      host - the host
      port - the port
      path - the path, can be null
    • HostAndPort

      public HostAndPort(String host, int port)
      Creates a new HostAndPort
      Parameters:
      host - the host
      port - the port