public class AndroidUsingLinkProperties extends AbstractDnsServerLookupMechanism
setup(Context)
to setup this mechanism.
Requires the ACCESS_NETWORK_STATE permission.
LOGGER
Constructor and Description |
---|
AndroidUsingLinkProperties(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getDnsServerAddresses()
Returns a List of String representing ideally IP addresses.
|
boolean |
isAvailable() |
static AndroidUsingLinkProperties |
setup(android.content.Context context)
Setup this DNS server lookup mechanism.
|
compareTo, getName, getPriority, toListOfStrings
public AndroidUsingLinkProperties(android.content.Context context)
public static AndroidUsingLinkProperties setup(android.content.Context context)
context
- a Context instance.public boolean isAvailable()
public 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
getDnsServerAddresses
in class AbstractDnsServerLookupMechanism