Class HostAndPort


  • public final class HostAndPort
    extends Object
    Simple static class to parse host:port combinations.

    Original code borrowed from Google Guava libraries.

    • Method Detail

      • parse

        public static InetSocketAddress parse​(String hostPortString,
                                              int defaultPort)
        Parses the given string to a InetSocketTransportAddress. IPv6 addresses have to be put in [] brackets.