Interface HostsFileEntriesResolver
- All Known Implementing Classes:
DefaultHostsFileEntriesResolver
public interface HostsFileEntriesResolver
Resolves a hostname against the hosts file entries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HostsFileEntriesResolverDefault instance: aDefaultHostsFileEntriesResolver. -
Method Summary
Modifier and TypeMethodDescriptionaddress(String inetHost, ResolvedAddressTypes resolvedAddressTypes) Resolve the address of a hostname against the entries in a hosts file, depending on some address types.
-
Field Details
-
DEFAULT
Default instance: aDefaultHostsFileEntriesResolver.
-
-
Method Details
-
address
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
-