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(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) |
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(java.lang.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(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.ContentHandlerstartElement in class RecursiveTypeParserImplorg.xml.sax.SAXExceptionpublic 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.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 java.lang.String getErrorMessage()
public java.lang.Throwable getErrorCause()
Copyright © 2001-2013. All Rights Reserved.