Package org.minidns.dnsserverlookup
Class AndroidUsingReflection
- java.lang.Object
-
- org.minidns.dnsserverlookup.AbstractDnsServerLookupMechanism
-
- org.minidns.dnsserverlookup.AndroidUsingReflection
-
- All Implemented Interfaces:
java.lang.Comparable<DnsServerLookupMechanism>
,DnsServerLookupMechanism
public class AndroidUsingReflection extends AbstractDnsServerLookupMechanism
Try to retrieve the list of DNS server by calling SystemProperties.
-
-
Field Summary
Fields Modifier and Type Field Description static DnsServerLookupMechanism
INSTANCE
static int
PRIORITY
-
Fields inherited from class org.minidns.dnsserverlookup.AbstractDnsServerLookupMechanism
LOGGER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AndroidUsingReflection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getDnsServerAddresses()
Returns a List of String representing ideally IP addresses.boolean
isAvailable()
-
Methods inherited from class org.minidns.dnsserverlookup.AbstractDnsServerLookupMechanism
compareTo, getName, getPriority, toListOfStrings
-
-
-
-
Field Detail
-
INSTANCE
public static final DnsServerLookupMechanism INSTANCE
-
PRIORITY
public static final int PRIORITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AndroidUsingReflection
protected AndroidUsingReflection()
-
-
Method Detail
-
getDnsServerAddresses
public 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 interfaceDnsServerLookupMechanism
- Specified by:
getDnsServerAddresses
in classAbstractDnsServerLookupMechanism
- Returns:
- a List of Strings presenting hopefully IP addresses.
-
isAvailable
public boolean isAvailable()
-
-