Package org.ldaptive.dns
Class DefaultDNSContextFactory
java.lang.Object
org.ldaptive.dns.DefaultDNSContextFactory
- All Implemented Interfaces:
DNSContextFactory
Provides the default implementation of the JNDI context factory for DNS queries.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDNSContextFactory
(String... servers) Creates a new instance that resolves DNS names using the given name servers. -
Method Summary
-
Field Details
-
DNS_CONTEXT_FACTORY
JNDI context factory for DNS.- See Also:
-
DEFAULT_DNS_PROVIDER_URL
Default provider URL for DNS, determines DNS from the underlying OS. Value is "dns:".- See Also:
-
nameservers
DNS name servers in order of preference.
-
-
Constructor Details
-
DefaultDNSContextFactory
Creates a new instance that resolves DNS names using the given name servers.- Parameters:
servers
- name servers in order of preference.
-
-
Method Details
-
create
Description copied from interface:DNSContextFactory
Creates a new JNDI context.- Specified by:
create
in interfaceDNSContextFactory
- Returns:
- JNDI context
- Throws:
NamingException
- if an error occurs creating the context
-
toString
-