public class DsmlResultConverter extends Object
DsmlResultConverter provides utility methods for converting
LdapResult to and from DSML in string format.| Modifier and Type | Field and Description |
|---|---|
protected LdapBeanFactory |
beanFactory
Ldap bean factory.
|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
| Constructor and Description |
|---|
DsmlResultConverter() |
| Modifier and Type | Method and Description |
|---|---|
LdapResult |
fromDsmlv1(String dsml)
This reads any entries in the supplied DSML into this
DsmlResult. |
LdapResult |
fromDsmlv2(String dsml)
This reads any entries in the supplied DSML into this
DsmlResult. |
LdapBeanFactory |
getLdapBeanFactory()
Returns the factory for creating ldap beans.
|
void |
setLdapBeanFactory(LdapBeanFactory lbf)
Sets the factory for creating ldap beans.
|
String |
toDsmlv1(LdapResult result)
This returns this
DsmlResult as version 1 DSML. |
String |
toDsmlv2(LdapResult result)
This returns this
DsmlResult as version 2 DSML. |
protected final org.apache.commons.logging.Log logger
protected LdapBeanFactory beanFactory
public LdapBeanFactory getLdapBeanFactory()
LdapBeanFactorypublic void setLdapBeanFactory(LdapBeanFactory lbf)
lbf - LdapBeanFactorypublic String toDsmlv1(LdapResult result)
DsmlResult as version 1 DSML.result - LdapResult to convertStringpublic LdapResult fromDsmlv1(String dsml) throws org.dom4j.DocumentException
DsmlResult.dsml - String to readLdapResultorg.dom4j.DocumentException - if an error occurs reading the supplied DSMLpublic String toDsmlv2(LdapResult result)
DsmlResult as version 2 DSML.result - LdapResult to convertStringpublic LdapResult fromDsmlv2(String dsml) throws org.dom4j.DocumentException
DsmlResult.dsml - String to readLdapResultorg.dom4j.DocumentException - if an error occurs reading the supplied DSMLCopyright © 2014. All rights reserved.