|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.e_c_group.bwptk.Response
public class Response
Defines the responses of the Broadworks Server Serializable so it can be conveniently cached by JCS
| Field Summary | |
|---|---|
static javax.xml.xpath.XPath |
xPath
Return a new XPath from the the default XPathFactory(). |
| Constructor Summary | |
|---|---|
Response()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getElementByXPath(java.lang.String xPathExpression)
|
java.lang.String |
getElementByXPathMaskingXPathException(java.lang.String xPathExpression)
|
org.w3c.dom.NodeList |
getNodeList(java.lang.String xPathSearch)
Return a nodelist of objects, split by the specified xPath. |
org.w3c.dom.NodeList |
getNodeListOfRows()
Return a nodelist of rows, split by the XPath "//command//row". |
boolean |
isCommandType(java.lang.String commandType)
Determine whether this response has a command (element) "xsi:type" (attribute) value of "c:" + commandType or literally commandType. |
boolean |
isErrorResponse()
Returns true if the "xsi:type" of this response is a "ErrorRersponse". |
boolean |
isSuccessResponse()
Returns true if the "xsi:type" of this response is a "c:SuccessResponse". |
java.lang.String |
toString()
|
static java.lang.String |
xPathEvaluate(java.lang.String xPathString,
org.w3c.dom.Node n)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static javax.xml.xpath.XPath xPath
XPathFactory factory = XPathFactory.newInstance(); XPath xPath = factory.newXPath();
| Constructor Detail |
|---|
public Response()
| Method Detail |
|---|
public java.lang.String getElementByXPath(java.lang.String xPathExpression)
throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.lang.String getElementByXPathMaskingXPathException(java.lang.String xPathExpression)
throws BwptkException
BwptkExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public boolean isCommandType(java.lang.String commandType)
throws BwptkException
BwptkException
public boolean isSuccessResponse()
throws BwptkException
BwptkException
public boolean isErrorResponse()
throws BwptkException
BwptkException
public org.w3c.dom.NodeList getNodeListOfRows()
throws javax.xml.xpath.XPathExpressionException
{ @code getNodeList("//command//row"); }
javax.xml.xpath.XPathExpressionException
public org.w3c.dom.NodeList getNodeList(java.lang.String xPathSearch)
throws javax.xml.xpath.XPathExpressionException
//command//rowwill pull the rows out of a
<command><rowset><row>...</row><row>...</row></rowset></command>
Likewise, //command/deviceTypewill split up the response from SystemDeviceTypeGetAvailableListResponse14sp1:
{ @code
2Wire HomePortal
ACT P103SLC
ACT P104SLD
Aastra 480i
Aastra 480i CT
Aastra 53i
Aastra 55i
Aastra 57i
}
javax.xml.xpath.XPathExpressionException
public static java.lang.String xPathEvaluate(java.lang.String xPathString,
org.w3c.dom.Node n)
throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||