Package org.minidns.dnsserverlookup
Class AbstractDnsServerLookupMechanism
java.lang.Object
org.minidns.dnsserverlookup.AbstractDnsServerLookupMechanism
- All Implemented Interfaces:
Comparable<DnsServerLookupMechanism>,DnsServerLookupMechanism
- Direct Known Subclasses:
AndroidUsingExec,AndroidUsingLinkProperties,AndroidUsingReflection,UnixUsingEtcResolvConf
public abstract class AbstractDnsServerLookupMechanism
extends Object
implements DnsServerLookupMechanism
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDnsServerLookupMechanism(String name, int priority) -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturns a List of String representing ideally IP addresses.final StringgetName()final inttoListOfStrings(Collection<? extends InetAddress> inetAddresses) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.minidns.dnsserverlookup.DnsServerLookupMechanism
isAvailable
-
Field Details
-
LOGGER
-
-
Constructor Details
-
AbstractDnsServerLookupMechanism
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceDnsServerLookupMechanism
-
getPriority
- Specified by:
getPriorityin interfaceDnsServerLookupMechanism
-
compareTo
- Specified by:
compareToin interfaceComparable<DnsServerLookupMechanism>
-
getDnsServerAddresses
Description copied from interface:DnsServerLookupMechanismReturns 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:
getDnsServerAddressesin interfaceDnsServerLookupMechanism- Returns:
- a List of Strings presenting hopefully IP addresses.
-
toListOfStrings
-