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