|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlrpc.parser.TypeParserImpl org.apache.xmlrpc.parser.RecursiveTypeParserImpl org.apache.xmlrpc.parser.XmlRpcResponseParser
public class XmlRpcResponseParser
A SAX parser for an XmlRpcServer
's
response.
Field Summary |
---|
Fields inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl |
---|
cfg |
Constructor Summary | |
---|---|
XmlRpcResponseParser(XmlRpcStreamRequestConfig pConfig,
TypeFactory pTypeFactory)
Creates a new instance. |
Method Summary | |
---|---|
protected void |
addResult(java.lang.Object pResult)
|
void |
endElement(java.lang.String pURI,
java.lang.String pLocalName,
java.lang.String pQName)
|
java.lang.Throwable |
getErrorCause()
If the response contained a fault, returns the (optional) exception. |
int |
getErrorCode()
If the response contained a fault, returns the error code. |
java.lang.String |
getErrorMessage()
If the response contained a fault, returns the error message. |
boolean |
isSuccess()
Returns whether the response returned success. |
void |
startDocument()
|
void |
startElement(java.lang.String pURI,
java.lang.String pLocalName,
java.lang.String pQName,
org.xml.sax.Attributes pAttrs)
|
Methods inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl |
---|
characters, endPrefixMapping, endValueTag, ignorableWhitespace, processingInstruction, skippedEntity, startPrefixMapping, startValueTag |
Methods inherited from class org.apache.xmlrpc.parser.TypeParserImpl |
---|
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcResponseParser(XmlRpcStreamRequestConfig pConfig, TypeFactory pTypeFactory)
pConfig
- The response configuration.pTypeFactory
- The type factory for creating instances of
TypeParser
.Method Detail |
---|
protected void addResult(java.lang.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(java.lang.String pURI, java.lang.String pLocalName, java.lang.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(java.lang.String pURI, java.lang.String pLocalName, java.lang.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 java.lang.String getErrorMessage()
public java.lang.Throwable getErrorCause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |