Uses of Class
com.google.common.net.HostAndPort
-
Packages that use HostAndPort Package Description com.google.common.net This package contains utility methods and classes for working with net addresses (numeric IP and domain names). -
-
Uses of HostAndPort in com.google.common.net
Methods in com.google.common.net that return HostAndPort Modifier and Type Method 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.
-