public class ParseMessage extends Object
Constructor and Description |
---|
ParseMessage(String response) |
Modifier and Type | Method and Description |
---|---|
String |
getElementByXPath(String xPathExpression) |
NodeList |
getNodeList(String xPathSearch) |
String |
getSummaryText()
Returns the summary element if available.
|
boolean |
isCommandType(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 "ErrorResponse".
|
boolean |
isSuccessResponse()
Returns true if the "xsi:type" of this response is a "c:SuccessResponse".
|
public static XPath xPath
public ParseMessage(String response)
public String getElementByXPath(String xPathExpression) throws XPathExpressionException
XPathExpressionException
public boolean isCommandType(String commandType) throws XPathExpressionException
XPathExpressionException
public boolean isSuccessResponse() throws XPathExpressionException
XPathExpressionException
public boolean isErrorResponse() throws XPathExpressionException
XPathExpressionException
public String getSummaryText() throws XPathExpressionException
XPathExpressionException
public NodeList getNodeList(String xPathSearch) throws XPathExpressionException
XPathExpressionException
Copyright © 2016. All rights reserved.