Public Member Functions | |
void | endElement (String pURI, String pLocalName, String pQName) throws SAXException |
Throwable | getErrorCause () |
int | getErrorCode () |
String | getErrorMessage () |
boolean | isSuccess () |
void | startDocument () throws SAXException |
void | startElement (String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException |
XmlRpcResponseParser (XmlRpcStreamRequestConfig pConfig, TypeFactory pTypeFactory) | |
Protected Member Functions | |
void | addResult (Object pResult) throws SAXException |
Private Attributes | |
Throwable | errorCause |
int | errorCode |
String | errorMessage |
boolean | isSuccess |
int | level |
A SAX parser for an org.apache.xmlrpc.server.XmlRpcServer's response.
Definition at line 39 of file XmlRpcResponseParser.java.
org.apache.xmlrpc.parser.XmlRpcResponseParser.XmlRpcResponseParser | ( | XmlRpcStreamRequestConfig | pConfig, |
TypeFactory | pTypeFactory | ||
) | [inline] |
Creates a new instance.
pConfig | The response configuration. |
pTypeFactory | The type factory for creating instances of TypeParser. |
Definition at line 51 of file XmlRpcResponseParser.java.
void org.apache.xmlrpc.parser.XmlRpcResponseParser.addResult | ( | Object | pResult | ) | throws SAXException [inline, protected, virtual] |
Implements org.apache.xmlrpc.parser.RecursiveTypeParserImpl.
Definition at line 56 of file XmlRpcResponseParser.java.
void org.apache.xmlrpc.parser.XmlRpcResponseParser.endElement | ( | String | pURI, |
String | pLocalName, | ||
String | pQName | ||
) | throws SAXException [inline] |
Reimplemented from org.apache.xmlrpc.parser.RecursiveTypeParserImpl.
Definition at line 153 of file XmlRpcResponseParser.java.
Throwable org.apache.xmlrpc.parser.XmlRpcResponseParser.getErrorCause | ( | ) | [inline] |
If the response contained a fault, returns the (optional) exception.
Definition at line 235 of file XmlRpcResponseParser.java.
int org.apache.xmlrpc.parser.XmlRpcResponseParser.getErrorCode | ( | ) | [inline] |
If the response contained a fault, returns the error code.
Definition at line 225 of file XmlRpcResponseParser.java.
String org.apache.xmlrpc.parser.XmlRpcResponseParser.getErrorMessage | ( | ) | [inline] |
If the response contained a fault, returns the error message.
Definition at line 230 of file XmlRpcResponseParser.java.
boolean org.apache.xmlrpc.parser.XmlRpcResponseParser.isSuccess | ( | ) | [inline] |
Returns whether the response returned success. If so, the result object may be fetched using getResult(). Otherwise, you may use the methods getErrorCode() and getErrorMessage() to check for error reasons.
Definition at line 220 of file XmlRpcResponseParser.java.
void org.apache.xmlrpc.parser.XmlRpcResponseParser.startDocument | ( | ) | throws SAXException [inline] |
Reimplemented from org.apache.xmlrpc.parser.RecursiveTypeParserImpl.
Definition at line 88 of file XmlRpcResponseParser.java.
void org.apache.xmlrpc.parser.XmlRpcResponseParser.startElement | ( | String | pURI, |
String | pLocalName, | ||
String | pQName, | ||
Attributes | pAttrs | ||
) | throws SAXException [inline] |
Reimplemented from org.apache.xmlrpc.parser.RecursiveTypeParserImpl.
Definition at line 96 of file XmlRpcResponseParser.java.
Throwable org.apache.xmlrpc.parser.XmlRpcResponseParser.errorCause [private] |
Definition at line 44 of file XmlRpcResponseParser.java.
int org.apache.xmlrpc.parser.XmlRpcResponseParser.errorCode [private] |
Definition at line 42 of file XmlRpcResponseParser.java.
String org.apache.xmlrpc.parser.XmlRpcResponseParser.errorMessage [private] |
Definition at line 43 of file XmlRpcResponseParser.java.
boolean org.apache.xmlrpc.parser.XmlRpcResponseParser.isSuccess [private] |
Definition at line 41 of file XmlRpcResponseParser.java.
int org.apache.xmlrpc.parser.XmlRpcResponseParser.level [private] |
Definition at line 40 of file XmlRpcResponseParser.java.