public class XmlRpcResponseParser extends RecursiveTypeParserImpl
XmlRpcServer's
response.cfg| Constructor and Description |
|---|
XmlRpcResponseParser(XmlRpcStreamRequestConfig pConfig,
TypeFactory pTypeFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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,
org.xml.sax.Attributes pAttrs) |
characters, endPrefixMapping, endValueTag, ignorableWhitespace, processingInstruction, skippedEntity, startPrefixMapping, startValueTagendDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResultpublic XmlRpcResponseParser(XmlRpcStreamRequestConfig pConfig, TypeFactory pTypeFactory)
pConfig - The response configuration.pTypeFactory - The type factory for creating instances of
TypeParser.protected void addResult(Object pResult) throws org.xml.sax.SAXException
addResult in class RecursiveTypeParserImplorg.xml.sax.SAXExceptionpublic void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class RecursiveTypeParserImplorg.xml.sax.SAXExceptionpublic void startElement(String pURI, String pLocalName, String pQName, org.xml.sax.Attributes pAttrs) throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class RecursiveTypeParserImplorg.xml.sax.SAXExceptionpublic void endElement(String pURI, String pLocalName, String pQName) throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class RecursiveTypeParserImplorg.xml.sax.SAXExceptionpublic boolean isSuccess()
TypeParserImpl.getResult().
Otherwise, you may use the methods
getErrorCode() and getErrorMessage() to
check for error reasons.public int getErrorCode()
public String getErrorMessage()
public Throwable getErrorCause()
Copyright © 2001–2014. All rights reserved.