edu.vt.middleware.ldap.dsml
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(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.
|
void |
setVersion(DsmlSearch.Version v)
This sets the version of dsml to produce.
|
close, finalize, getLdapBeanFactory, search, setLdapBeanFactory
public DsmlSearch.Version getVersion()
Version
of DSML to producepublic void setVersion(DsmlSearch.Version v)
v
- Version
of DSML to producepublic void search(java.lang.String query, java.lang.String[] attrs, java.io.Writer writer) throws javax.naming.NamingException, java.io.IOException
Writer
. Use version
to control which version of DSML is
written.search
in class LdapSearch
query
- 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.