|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.client.util.XmlUtils
public final class XmlUtils
Common utilities for easily parsing XML without duplicating logic.
| Constructor Summary | |
|---|---|
XmlUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getTextForElement(java.lang.String xmlAsString,
java.lang.String element)
Retrieve the text for a specific element (when we know there is only one). |
static java.util.List |
getTextForElements(java.lang.String xmlAsString,
java.lang.String element)
Retrieve the text for a group of elements. |
static org.xml.sax.XMLReader |
getXmlReader()
Get an instance of an XML reader from the XMLReaderFactory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlUtils()
| Method Detail |
|---|
public static org.xml.sax.XMLReader getXmlReader()
public static java.util.List getTextForElements(java.lang.String xmlAsString,
java.lang.String element)
This method is currently optimized for the use case of two elements in a list.
xmlAsString - the xml responseelement - the element to look for
public static java.lang.String getTextForElement(java.lang.String xmlAsString,
java.lang.String element)
xmlAsString - the xml responseelement - the element to look for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||