-
- All Known Implementing Classes:
DefaultHostsFileEntriesResolver
public interface HostsFileEntriesResolver
Resolves a hostname against the hosts file entries.
-
-
Field Summary
Fields Modifier and Type Field Description static HostsFileEntriesResolver
DEFAULT
Default instance: aDefaultHostsFileEntriesResolver
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
DEFAULT
static final HostsFileEntriesResolver DEFAULT
Default instance: aDefaultHostsFileEntriesResolver
.
-
-
Method Detail
-
address
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
- the hostname to resolveresolvedAddressTypes
- the address types to resolve- Returns:
- the first matching address
-
-