Class HostAndPort


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

      • host

        public final String host
        The host.
      • port

        public final int port
        The port.
    • Constructor Detail

      • 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