Package io.meeds.commons.http
Interface HostResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Resolves a host name to its addresses, for
SafeAddressGuard: the
JDK's resolver in production, a table in the tests.-
Method Summary
-
Method Details
-
resolve
Resolves a host.- Parameters:
host- the host, an IPv6 literal without brackets- Returns:
- every address the host resolves to
- Throws:
UnknownHostException- when it resolves to nothing
-