|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.dsml.DsmlResultConverter
public class DsmlResultConverter
DsmlResultConverter provides utility methods for converting
LdapResult to and from DSML in string format.
| Field Summary | |
|---|---|
protected LdapBeanFactory |
beanFactory
Ldap bean factory. |
protected org.apache.commons.logging.Log |
logger
Log for this class. |
| Constructor Summary | |
|---|---|
DsmlResultConverter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
protected LdapBeanFactory beanFactory
| Constructor Detail |
|---|
public DsmlResultConverter()
| Method Detail |
|---|
public LdapBeanFactory getLdapBeanFactory()
LdapBeanFactorypublic void setLdapBeanFactory(LdapBeanFactory lbf)
lbf - LdapBeanFactorypublic String toDsmlv1(LdapResult result)
DsmlResult as version 1 DSML.
result - LdapResult to convert
String
public LdapResult fromDsmlv1(String dsml)
throws org.dom4j.DocumentException
DsmlResult.
dsml - String to read
LdapResult
org.dom4j.DocumentException - if an error occurs reading the supplied DSMLpublic String toDsmlv2(LdapResult result)
DsmlResult as version 2 DSML.
result - LdapResult to convert
String
public LdapResult fromDsmlv2(String dsml)
throws org.dom4j.DocumentException
DsmlResult.
dsml - String to read
LdapResult
org.dom4j.DocumentException - if an error occurs reading the supplied DSML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||