Package de.pangaea.metadataportal.utils
Class HostAndPort
- java.lang.Object
-
- de.pangaea.metadataportal.utils.HostAndPort
-
public final class HostAndPort extends Object
Simple static class to parsehost:port
combinations.Original code borrowed from Google Guava libraries.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InetSocketAddress
parse(String hostPortString, int defaultPort)
Parses the given string to aInetSocketTransportAddress
.
-
-
-
Method Detail
-
parse
public static InetSocketAddress parse(String hostPortString, int defaultPort)
Parses the given string to aInetSocketTransportAddress
. IPv6 addresses have to be put in[]
brackets.
-
-