edu.vt.middleware.ldap.ldif
public class LdifResultConverter extends java.lang.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(java.lang.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.
|
java.lang.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 java.lang.String toLdif(LdapResult result)
LdifResult
as LDIF.result
- LdapResult
to convertString
public LdapResult fromLdif(java.lang.String ldif)
LdifResult
.ldif
- String
to readLdapResult
Copyright © 2014. All Rights Reserved.