org.apache.xmlrpc.parser
Class XmlRpcResponseParser
- ContentHandler, TypeParser
public class XmlRpcResponseParser
protected void | addResult(Object pResult)
|
void | endElement(String pURI, String pLocalName, String pQName)
|
Throwable | getErrorCause() - If the response contained a fault, returns the (optional)
exception.
|
int | getErrorCode() - If the response contained a fault, returns the error code.
|
String | getErrorMessage() - If the response contained a fault, returns the error message.
|
boolean | isSuccess() - Returns whether the response returned success.
|
void | startDocument()
|
void | startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs)
|
addResult , characters , endElement , endPrefixMapping , endValueTag , ignorableWhitespace , processingInstruction , skippedEntity , startDocument , startElement , startPrefixMapping , startValueTag |
characters , endDocument , endPrefixMapping , getDocumentLocator , getResult , ignorableWhitespace , isEmpty , processingInstruction , setDocumentLocator , setResult , skippedEntity , startDocument , startPrefixMapping |
XmlRpcResponseParser
public XmlRpcResponseParser(XmlRpcStreamRequestConfig pConfig,
TypeFactory pTypeFactory)
Creates a new instance.
pConfig
- The response configuration.pTypeFactory
- The type factory for creating instances of
TypeParser
.
getErrorCause
public Throwable getErrorCause()
If the response contained a fault, returns the (optional)
exception.
getErrorCode
public int getErrorCode()
If the response contained a fault, returns the error code.
getErrorMessage
public String getErrorMessage()
If the response contained a fault, returns the error message.
isSuccess
public boolean isSuccess()
- True, if the response indicated success, false otherwise.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.