Package arc.net.dns
Class JndiContextNameserverProvider
java.lang.Object
arc.net.dns.JndiContextNameserverProvider
- All Implemented Interfaces:
NameserverProvider
Resolver config provider that tries to extract the system's DNS servers from the
JNDI DNS Service Provider.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns all located servers, which may be empty.void
Initializes the servers.boolean
Determines if this provider is enabled.
-
Constructor Details
-
JndiContextNameserverProvider
public JndiContextNameserverProvider()
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:NameserverProvider
Initializes the servers.- Specified by:
initialize
in interfaceNameserverProvider
-
getNameservers
Description copied from interface:NameserverProvider
Returns all located servers, which may be empty.- Specified by:
getNameservers
in interfaceNameserverProvider
-
isEnabled
public boolean isEnabled()Description copied from interface:NameserverProvider
Determines if this provider is enabled.- Specified by:
isEnabled
in interfaceNameserverProvider
-