public class DsmlSearch extends LdapSearch
DsmlSearch queries an LDAP and returns the result as DSML. Each
instance of DsmlSearch maintains it's own pool of LDAP
connections.| Modifier and Type | Class and Description |
|---|---|
static class |
DsmlSearch.Version
Valid DSML versions.
|
beanFactory, logger, pool| Constructor and Description |
|---|
DsmlSearch(LdapPool<Ldap> pool)
This creates a new
DsmlSearch with the supplied pool. |
| Modifier and Type | Method and Description |
|---|---|
DsmlSearch.Version |
getVersion()
This gets the version of dsml to produce.
|
void |
search(String query,
String[] attrs,
Writer writer)
This will perform an LDAP search with the supplied query and return
attributes.
|
void |
setVersion(DsmlSearch.Version v)
This sets the version of dsml to produce.
|
close, finalize, getLdapBeanFactory, search, setLdapBeanFactorypublic DsmlSearch.Version getVersion()
Version of DSML to producepublic void setVersion(DsmlSearch.Version v)
v - Version of DSML to producepublic void search(String query, String[] attrs, Writer writer) throws NamingException, IOException
Writer. Use version to control which version of DSML is
written.search in class LdapSearchquery - 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.