Package io.kroxylicious.proxy.service
Class HostPort
java.lang.Object
io.kroxylicious.proxy.service.HostPort
Represents a host port pair.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HostPort
Creates a host port.- Parameters:
host- Symbolic hostnames, FQDNs, IPv4, and IPv6 forms are supportedport- port number
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
host
host- Returns:
- host
-
port
public int port()port- Returns:
- port
-
parse
Parses a host port pair from a string representation.
For the host part, symbolic hostname, FQDN, IPv4, and IPv6 forms are supported. In the case of IPv6, the notation specified by rfc4038 must be used.
For the port part, it must be numeric.
- Parameters:
address- stringified form of the host port, separated by colon (:).- Returns:
- a
HostPort
-
asString
-