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.
|
List<InetAddress> |
addresses(String inetHost,
ResolvedAddressTypes resolvedAddressTypes)
Resolves all addresses of a hostname against the entries in a hosts file, depending on the specified
ResolvedAddressTypes . |
public InetAddress address(String inetHost, ResolvedAddressTypes resolvedAddressTypes)
HostsFileEntriesResolver
address
in interface HostsFileEntriesResolver
inetHost
- the hostname to resolveresolvedAddressTypes
- the address types to resolvepublic List<InetAddress> addresses(String inetHost, ResolvedAddressTypes resolvedAddressTypes)
ResolvedAddressTypes
.inetHost
- the hostname to resolveresolvedAddressTypes
- the address types to resolvenull
in case the hostname cannot be resolvedCopyright © 2008–2024 The Netty Project. All rights reserved.