public abstract class AbstractDnsServerLookupMechanism extends Object implements DnsServerLookupMechanism
Modifier | Constructor and Description |
---|---|
protected |
AbstractDnsServerLookupMechanism(String name,
int priority) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DnsServerLookupMechanism other) |
abstract List<String> |
getDnsServerAddresses()
Returns a List of String representing ideally IP addresses.
|
String |
getName() |
int |
getPriority() |
protected static List<String> |
toListOfStrings(Collection<? extends InetAddress> inetAddresses) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAvailable
protected AbstractDnsServerLookupMechanism(String name, int priority)
public final String getName()
getName
in interface DnsServerLookupMechanism
public final int getPriority()
getPriority
in interface DnsServerLookupMechanism
public final int compareTo(DnsServerLookupMechanism other)
compareTo
in interface Comparable<DnsServerLookupMechanism>
public abstract List<String> getDnsServerAddresses()
DnsServerLookupMechanism
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()
.
getDnsServerAddresses
in interface DnsServerLookupMechanism
protected static List<String> toListOfStrings(Collection<? extends InetAddress> inetAddresses)