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:portcombinations.Original code borrowed from Google Guava libraries.
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InetSocketAddressparse(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. 
 - 
 
 -