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(String query,
String[] attrs,
Writer writer)
This will perform an LDAP search with the supplied query and return
attributes.
|
close, finalize, getLdapBeanFactory, search, setLdapBeanFactory
public void search(String query, String[] attrs, Writer writer) throws NamingException, IOException
Writer
.search
in class LdapSearch
query
- String
to search forattrs
- String[]
to returnwriter
- Writer
to write toNamingException
- if an error occurs while searchingIOException
- if an error occurs while writing search resultsCopyright © 2014. All rights reserved.