edu.vt.middleware.ldap.ldif
public class LdifSearch extends LdapSearch
LdifSearch queries an LDAP and returns the result as an LDIF.
Each instance of LdifSearch maintains it's own pool of LDAP
connections.beanFactory, logger, pool| Constructor and Description |
|---|
LdifSearch(LdapPool<Ldap> pool)
This creates a new
LdifSearch with the supplied pool. |
| Modifier and Type | Method and Description |
|---|---|
void |
search(java.lang.String query,
java.lang.String[] attrs,
java.io.Writer writer)
This will perform an LDAP search with the supplied query and return
attributes.
|
close, finalize, getLdapBeanFactory, search, setLdapBeanFactorypublic void search(java.lang.String query,
java.lang.String[] attrs,
java.io.Writer writer)
throws javax.naming.NamingException,
java.io.IOException
Writer.search in class LdapSearchquery - String to search forattrs - String[] to returnwriter - Writer to write tojavax.naming.NamingException - if an error occurs while searchingjava.io.IOException - if an error occurs while writing search resultsCopyright © 2014. All Rights Reserved.