public class LdifResultConverter extends Object
LdifResultConverter provides utility methods for converting
LdapResult to and from LDIF 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 |
|---|
LdifResultConverter() |
| Modifier and Type | Method and Description |
|---|---|
LdapResult |
fromLdif(String ldif)
This reads any entries in the supplied LDIF into this
LdifResult. |
LdapBeanFactory |
getLdapBeanFactory()
Returns the factory for creating ldap beans.
|
void |
setLdapBeanFactory(LdapBeanFactory lbf)
Sets the factory for creating ldap beans.
|
String |
toLdif(LdapResult result)
This returns this
LdifResult as LDIF. |
protected final org.apache.commons.logging.Log logger
protected LdapBeanFactory beanFactory
public LdapBeanFactory getLdapBeanFactory()
LdapBeanFactorypublic void setLdapBeanFactory(LdapBeanFactory lbf)
lbf - LdapBeanFactorypublic String toLdif(LdapResult result)
LdifResult as LDIF.result - LdapResult to convertStringpublic LdapResult fromLdif(String ldif)
LdifResult.ldif - String to readLdapResultCopyright © 2014. All rights reserved.