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
DNSServiceResolver
resolveLDAPDomainServers
in interface DNSServiceResolver
NamingException
public List<DNSServiceEntry> resolveLDAPDomainServers(String domain, String prefix) throws NamingException
DNSServiceResolver
resolveLDAPDomainServers
in interface DNSServiceResolver
prefix
- custom SRV prefix such as "_gc._tcp"NamingException
Copyright © 2015 Nuxeo SA. All rights reserved.