Uses of Class
com.google.common.net.HostAndPort
Package
Description
Utility methods and classes for networking (such as IP addresses and domain names).
-
Uses of HostAndPort in com.google.common.net
Modifier and TypeMethodDescriptionstatic HostAndPort
Build a HostAndPort instance from a host only.static HostAndPort
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.requireBracketsForIPv6()
Generate an error if the host might be a non-bracketed IPv6 literal.HostAndPort.withDefaultPort
(int defaultPort) Provide a default port if the parsed string contained only a host.