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, startValueTag
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult
public 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 RecursiveTypeParserImpl
org.xml.sax.SAXException
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class RecursiveTypeParserImpl
org.xml.sax.SAXException
public void startElement(String pURI, String pLocalName, String pQName, org.xml.sax.Attributes pAttrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class RecursiveTypeParserImpl
org.xml.sax.SAXException
public void endElement(String pURI, String pLocalName, String pQName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class RecursiveTypeParserImpl
org.xml.sax.SAXException
public 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–2021. All rights reserved.