Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.directory.ldap.dns
Class DNSServiceResolverImpl

java.lang.Object
  extended by 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.


Field Summary
static Log log
           
 
Fields inherited from interface org.nuxeo.ecm.directory.ldap.dns.DNSServiceResolver
DNS_CACHE_EXPIRY, LDAP_SERVICE_PREFIX
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final Log log
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.