Interface HostsFileEntriesResolver

All Known Implementing Classes:
DefaultHostsFileEntriesResolver

public interface HostsFileEntriesResolver
Resolves a hostname against the hosts file entries.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Default instance: a DefaultHostsFileEntriesResolver.
  • Method Summary

    Modifier and Type
    Method
    Description
    java.net.InetAddress
    address(java.lang.String inetHost, ResolvedAddressTypes resolvedAddressTypes)
    Resolve the address of a hostname against the entries in a hosts file, depending on some address types.
  • Field Details

  • Method Details

    • address

      java.net.InetAddress address(java.lang.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 resolve
      resolvedAddressTypes - the address types to resolve
      Returns:
      the first matching address