Package | Description |
---|---|
com.google.common.net |
This package contains utility methods and classes for working with net
addresses (numeric IP and domain names).
|
Modifier and Type | Method and Description |
---|---|
static HostAndPort |
HostAndPort.fromHost(String host)
Build a HostAndPort instance from a host only.
|
static HostAndPort |
HostAndPort.fromParts(String host,
int port)
Build a HostAndPort instance from separate host and port values.
|
static HostAndPort |
HostAndPort.fromString(String hostPortString)
Split a freeform string into a host and port, without strict validation.
|
HostAndPort |
HostAndPort.requireBracketsForIPv6()
Generate an error if the host might be a non-bracketed IPv6 literal.
|
HostAndPort |
HostAndPort.withDefaultPort(int defaultPort)
Provide a default port if the parsed string contained only a host.
|
Copyright © 2010-2015. All Rights Reserved.