public class AndroidResolverConfigProvider extends BaseResolverConfigProvider
setContext(Context).
If you are developing for Android, consider implementing your own ResolverConfigProvider that listens to network callbacks and properly refreshes on link changes.
Something you need to do anyway to call ResolverConfig.refresh() otherwise it is pretty
much guaranteed to have outdated servers sooner or later.
| Constructor and Description |
|---|
AndroidResolverConfigProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
Initializes the servers, search paths, etc.
|
boolean |
isEnabled()
Determines if this provider is enabled.
|
static void |
setContext(android.content.Context ctx)
Gets the current configuration
|
addNameserver, addSearchPath, parseNdots, parseSearchPathList, searchPaths, serversclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitndotspublic static void setContext(android.content.Context ctx)
public void initialize()
throws InitializationException
ResolverConfigProviderInitializationExceptionpublic boolean isEnabled()
ResolverConfigProviderCopyright © 2021 dnsjava.org. All rights reserved.