|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portaluiinfrastructure.restconsumerframework.RestXMLResponse
public class RestXMLResponse
Helper class to process responses containing XML
Field Summary | |
---|---|
protected XPDocument |
m_doc
|
protected boolean |
m_notoplevelnodes
|
protected java.lang.String |
m_toplevelnodenames
|
Constructor Summary | |
---|---|
RestXMLResponse(IOKHttpResponse response)
|
Method Summary | |
---|---|
protected XPHashtable |
ExtractNodeChildData(XPNode topnode)
Fills a hashtable with the child node names and node body text of the provided node. |
java.lang.String |
GetListName()
Returns the name of a node list under the root node. |
protected java.lang.String |
GetNodeTextBody(XPNode node)
Helper method to get the text value in a node |
XPArrayList |
GetResponseList()
Exclusive from GetSingleDataItem method, only one is valid in any one response |
java.lang.String |
GetRootElementName()
Gets the name of the top level element |
protected XPElement |
GetRootNode()
INTERNAL METHODS |
java.lang.String |
GetRootNodeName()
Gets the element name of the root element. |
XPHashtable |
GetSingleDataItem()
Exclusive from GetResponseList method, only one is valid in any one response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XPDocument m_doc
protected java.lang.String m_toplevelnodenames
protected boolean m_notoplevelnodes
Constructor Detail |
---|
public RestXMLResponse(IOKHttpResponse response)
response
- Method Detail |
---|
public java.lang.String GetRootElementName()
GetRootElementName
in interface IRestResponse
public java.lang.String GetListName()
GetListName
in interface IRestResponse
public XPHashtable GetSingleDataItem()
GetSingleDataItem
in interface IRestResponse
public java.lang.String GetRootNodeName()
public XPArrayList GetResponseList()
GetResponseList
in interface IRestResponse
protected XPElement GetRootNode()
protected java.lang.String GetNodeTextBody(XPNode node)
node
-
protected XPHashtable ExtractNodeChildData(XPNode topnode)
topnode
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |