Class AbstractDnsServerLookupMechanism

    • Field Detail

      • LOGGER

        protected static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • AbstractDnsServerLookupMechanism

        protected AbstractDnsServerLookupMechanism​(java.lang.String name,
                                                   int priority)
    • Method Detail

      • getDnsServerAddresses

        public abstract java.util.List<java.lang.String> getDnsServerAddresses()
        Description copied from interface: DnsServerLookupMechanism
        Returns a List of String representing ideally IP addresses. The list must be modifiable.

        Note that the lookup mechanisms are not required to assure that only IP addresses are returned. This verification is performed in when using DnsClient.findDNS().

        Specified by:
        getDnsServerAddresses in interface DnsServerLookupMechanism
        Returns:
        a List of Strings presenting hopefully IP addresses.
      • toListOfStrings

        protected static java.util.List<java.lang.String> toListOfStrings​(java.util.Collection<? extends java.net.InetAddress> inetAddresses)