|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(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)
|
| 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(Object pResult)
throws SAXException
addResult in class RecursiveTypeParserImplSAXException
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class RecursiveTypeParserImplSAXException
public void startElement(String pURI,
String pLocalName,
String pQName,
Attributes pAttrs)
throws SAXException
startElement in interface ContentHandlerstartElement in class RecursiveTypeParserImplSAXException
public void endElement(String pURI,
String pLocalName,
String pQName)
throws SAXException
endElement in interface ContentHandlerendElement in class RecursiveTypeParserImplSAXExceptionpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||