Package edu.vt.middleware.ldap.ldif
Class LdifSearch
- java.lang.Object
-
- edu.vt.middleware.ldap.LdapSearch
-
- edu.vt.middleware.ldap.ldif.LdifSearch
-
public class LdifSearch extends LdapSearch
LdifSearch
queries an LDAP and returns the result as an LDIF. Each instance ofLdifSearch
maintains it's own pool of LDAP connections.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class edu.vt.middleware.ldap.LdapSearch
beanFactory, logger, pool
-
-
Constructor Summary
Constructors Constructor Description LdifSearch(LdapPool<Ldap> pool)
This creates a newLdifSearch
with the supplied pool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class edu.vt.middleware.ldap.LdapSearch
close, finalize, getLdapBeanFactory, search, setLdapBeanFactory
-
-
-
-
Method Detail
-
search
public void search(java.lang.String query, java.lang.String[] attrs, java.io.Writer writer) throws javax.naming.NamingException, java.io.IOException
This will perform an LDAP search with the supplied query and return attributes. The results will be written to the suppliedWriter
.- Overrides:
search
in classLdapSearch
- Parameters:
query
-String
to search forattrs
-String[]
to returnwriter
-Writer
to write to- Throws:
javax.naming.NamingException
- if an error occurs while searchingjava.io.IOException
- if an error occurs while writing search results
-
-