org.nuxeo.ecm.directory.ldap.dns
Class DNSServiceResolverImpl
java.lang.Object
org.nuxeo.ecm.directory.ldap.dns.DNSServiceResolverImpl
- All Implemented Interfaces:
- DNSServiceResolver
public class DNSServiceResolverImpl
- extends Object
- implements DNSServiceResolver
Utility class to perform DNS lookups for services.
log
public static final Log log
getInstance
public static DNSServiceResolver getInstance()
resolveLDAPDomainServers
public List<DNSServiceEntry> resolveLDAPDomainServers(String domain)
throws NamingException
- Description copied from interface:
DNSServiceResolver
- Returns a list of LDAP servers for the specified domain by performing an
SRV DNS lookup on _ldap._tcp.${domain}.
- Specified by:
resolveLDAPDomainServers
in interface DNSServiceResolver
- Returns:
- the list of SRV dns entries
- Throws:
NamingException
resolveLDAPDomainServers
public List<DNSServiceEntry> resolveLDAPDomainServers(String domain,
String prefix)
throws NamingException
- Description copied from interface:
DNSServiceResolver
- Returns a list of LDAP servers for the specified domain by performing an
SRV DNS lookup using a custom DNS service prefix.
- Specified by:
resolveLDAPDomainServers
in interface DNSServiceResolver
prefix
- custom SRV prefix such as "_gc._tcp"
- Returns:
- the list of SRV dns entries
- Throws:
NamingException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.