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()
LdapBeanFactory
public void setLdapBeanFactory(LdapBeanFactory lbf)
lbf
- LdapBeanFactory
public String toDsmlv1(LdapResult result)
DsmlResult
as version 1 DSML.result
- LdapResult
to convertString
public LdapResult fromDsmlv1(String dsml) throws org.dom4j.DocumentException
DsmlResult
.dsml
- String
to readLdapResult
org.dom4j.DocumentException
- if an error occurs reading the supplied DSMLpublic String toDsmlv2(LdapResult result)
DsmlResult
as version 2 DSML.result
- LdapResult
to convertString
public LdapResult fromDsmlv2(String dsml) throws org.dom4j.DocumentException
DsmlResult
.dsml
- String
to readLdapResult
org.dom4j.DocumentException
- if an error occurs reading the supplied DSMLCopyright © 2016. All rights reserved.