Top Description Fields Methods
io.netty5.resolver

public Interface HostsFileEntriesResolver

Known Direct Implementers
io.netty5.resolver.DefaultHostsFileEntriesResolver
Imports
java.net.InetAddress

Resolves a hostname against the hosts file entries.

Field Summary

Modifier and TypeField and Description
public static final HostsFileEntriesResolver

Method Summary

Modifier and TypeMethod and Description
public InetAddress

Returns:

the first matching address
address
(String
the hostname to resolve
inetHost
,
ResolvedAddressTypes
the address types to resolve
resolvedAddressTypes
)

Resolve the address of a hostname against the entries in a hosts file, depending on some address types.

Field Detail

DEFAULTback to summary
public static final HostsFileEntriesResolver DEFAULT

Default instance: a DefaultHostsFileEntriesResolver.

Method Detail

addressback to summary
public InetAddress address(String inetHost, ResolvedAddressTypes resolvedAddressTypes)

Resolve the address of a hostname against the entries in a hosts file, depending on some address types.

Parameters
inetHost:String

the hostname to resolve

resolvedAddressTypes:ResolvedAddressTypes

the address types to resolve

Returns:InetAddress

the first matching address