- java.lang.Object
-
- io.netty5.resolver.HostsFileEntriesProvider
-
public final class HostsFileEntriesProvider extends Object
A container of hosts file entries
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HostsFileEntriesProvider.Parser
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<InetAddress>>
ipv4Entries()
The IPv4 entries.Map<String,List<InetAddress>>
ipv6Entries()
The IPv6 entries.static HostsFileEntriesProvider.Parser
parser()
Creates a parser forHostsFileEntriesProvider
.
-
-
-
Method Detail
-
parser
public static HostsFileEntriesProvider.Parser parser()
Creates a parser forHostsFileEntriesProvider
.- Returns:
- a new
HostsFileEntriesProvider.Parser
-
ipv4Entries
public Map<String,List<InetAddress>> ipv4Entries()
The IPv4 entries.- Returns:
- the IPv4 entries
-
ipv6Entries
public Map<String,List<InetAddress>> ipv6Entries()
The IPv6 entries.- Returns:
- the IPv6 entries
-
-