public class DNSServiceResolverImpl extends Object implements DNSServiceResolver
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
DNS_CACHE_EXPIRY, LDAP_SERVICE_PREFIX| Modifier and Type | Method and Description |
|---|---|
static DNSServiceResolver |
getInstance() |
List<DNSServiceEntry> |
resolveLDAPDomainServers(String domain)
Returns a list of LDAP servers for the specified domain by performing an
SRV DNS lookup on _ldap._tcp.${domain}.
|
List<DNSServiceEntry> |
resolveLDAPDomainServers(String domain,
String prefix)
Returns a list of LDAP servers for the specified domain by performing an
SRV DNS lookup using a custom DNS service prefix.
|
public static DNSServiceResolver getInstance()
public List<DNSServiceEntry> resolveLDAPDomainServers(String domain) throws NamingException
DNSServiceResolverresolveLDAPDomainServers in interface DNSServiceResolverNamingExceptionpublic List<DNSServiceEntry> resolveLDAPDomainServers(String domain, String prefix) throws NamingException
DNSServiceResolverresolveLDAPDomainServers in interface DNSServiceResolverprefix - custom SRV prefix such as "_gc._tcp"NamingExceptionCopyright © 2014 Nuxeo SA. All rights reserved.