- java.lang.Object
-
- io.netty5.resolver.HostsFileEntries
-
public final class HostsFileEntries extends Object
A container of hosts file entries. The mappings contain only the first entry per hostname. Consider usingHostsFileEntriesProvider
when mappings with all entries per hostname are needed.
-
-
Constructor Summary
Constructors Constructor Description HostsFileEntries(Map<String,Inet4Address> inet4Entries, Map<String,Inet6Address> inet6Entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Inet4Address>
inet4Entries()
The IPv4 entriesMap<String,Inet6Address>
inet6Entries()
The IPv6 entries
-
-
-
Constructor Detail
-
HostsFileEntries
public HostsFileEntries(Map<String,Inet4Address> inet4Entries, Map<String,Inet6Address> inet6Entries)
-
-
Method Detail
-
inet4Entries
public Map<String,Inet4Address> inet4Entries()
The IPv4 entries- Returns:
- the IPv4 entries
-
inet6Entries
public Map<String,Inet6Address> inet6Entries()
The IPv6 entries- Returns:
- the IPv6 entries
-
-