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()
LdapBeanFactory
public void setLdapBeanFactory(LdapBeanFactory lbf)
lbf
- LdapBeanFactory
public String toLdif(LdapResult result)
LdifResult
as LDIF.result
- LdapResult
to convertString
public LdapResult fromLdif(String ldif)
LdifResult
.ldif
- String
to readLdapResult
Copyright © 2019. All rights reserved.