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 parse `host: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 a `InetSocketTransportAddress`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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.