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 java.lang.Object
- implements DNSServiceResolver
Utility class to perform DNS lookups for services.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final Log log
getInstance
public static final DNSServiceResolver getInstance()
resolveLDAPDomainServers
public java.util.List<DNSServiceEntry> resolveLDAPDomainServers(java.lang.String domain)
throws javax.naming.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:
javax.naming.NamingException
resolveLDAPDomainServers
public java.util.List<DNSServiceEntry> resolveLDAPDomainServers(java.lang.String domain,
java.lang.String prefix)
throws javax.naming.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:
javax.naming.NamingException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.