|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.io.Dsmlv1Reader
public class Dsmlv1Reader
Reads DSML version 1 from a Reader and returns a SearchResult.
| Constructor Summary | |
|---|---|
Dsmlv1Reader(Reader reader)
Creates a new dsml reader. |
|
Dsmlv1Reader(Reader reader,
SortBehavior sb)
Creates a new dsml reader. |
|
| Method Summary | |
|---|---|
protected LdapAttribute |
createLdapAttribute(String name,
NodeList nodes)
Returns an ldap attribute derived from the supplied node list. |
protected LdapEntry |
createLdapEntry(Element entryElement)
Converts the supplied DSML entry element into an ldap entry object. |
protected SearchResult |
createSearchResult(Document doc)
Creates a search result that corresponds to the supplied DSML document. |
protected Object |
getAttrValue(Element valueElement,
boolean base64)
Returns the value of the supplied element taking into account whether the value needs to be base64 decoded. |
SearchResult |
read()
Reads DSML data from the reader and returns a search result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dsmlv1Reader(Reader reader)
reader - to read DSML from
public Dsmlv1Reader(Reader reader,
SortBehavior sb)
reader - to read DSML fromsb - sort behavior of the ldap result| Method Detail |
|---|
public SearchResult read()
throws IOException
read in interface SearchResultReaderIOException - if an error occurs using the readerprotected SearchResult createSearchResult(Document doc)
doc - DSML to parse
protected LdapEntry createLdapEntry(Element entryElement)
entryElement - to parse
protected LdapAttribute createLdapAttribute(String name,
NodeList nodes)
name - of the ldap attributenodes - to parse
protected Object getAttrValue(Element valueElement,
boolean base64)
valueElement - to read value frombase64 - whether to base64 decode the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||