@UnstableApi public final class DefaultHostsFileEntriesResolver extends Object implements HostsFileEntriesResolver
HostsFileEntriesResolver
that resolves hosts file entries only once.DEFAULT
Constructor and Description |
---|
DefaultHostsFileEntriesResolver() |
Modifier and Type | Method and Description |
---|---|
InetAddress |
address(String inetHost,
ResolvedAddressTypes resolvedAddressTypes)
Resolve the address of a hostname against the entries in a hosts file, depending on some address types.
|
public InetAddress address(String inetHost, ResolvedAddressTypes resolvedAddressTypes)
HostsFileEntriesResolver
address
in interface HostsFileEntriesResolver
inetHost
- the hostname to resolveresolvedAddressTypes
- the address types to resolveCopyright © 2008–2017 The Netty Project. All rights reserved.