public class XmlRpcClientResponseProcessor extends XmlRpc
XmlRpc.Value
Modifier and Type | Field and Description |
---|---|
protected boolean |
fault
Set to true if a fault occured on the server.
|
protected java.lang.Object |
result
The result of the XML-RPC operation.
|
Constructor and Description |
---|
XmlRpcClientResponseProcessor(java.util.TimeZone tz)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canReUse()
Called by the worker management framework to see if this worker can be
re-used.
|
protected XmlRpcException |
decodeException(java.lang.Object result)
Decode an exception from the result returned from the remote server.
|
java.lang.Object |
decodeResponse(java.io.InputStream is)
Decode an XML-RPC response from the specified InputStream.
|
protected void |
objectParsed(java.lang.Object what)
This method is called when a root level object has been parsed.
|
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
Overrides method in XmlRpc to handle fault repsonses.
|
characters, endElement, error, fatalError, getDefaultInputEncoding, getEncoding, getInputEncoding, getKeepAlive, getMaxThreads, getServerTimeZone, parse, setDebug, setDefaultInputEncoding, setDriver, setDriver, setEncoding, setInputEncoding, setKeepAlive, setMaxThreads, setServerTimeZone
protected java.lang.Object result
protected boolean fault
public XmlRpcClientResponseProcessor(java.util.TimeZone tz)
public java.lang.Object decodeResponse(java.io.InputStream is) throws XmlRpcClientException
is
- The stream from which to read the response.XmlRpcClientException
protected XmlRpcException decodeException(java.lang.Object result) throws XmlRpcClientException
result
- The response from the remote XML-RPC server.XmlRpcClientException
- if the result could not be processed.protected void objectParsed(java.lang.Object what)
XmlRpc
objectParsed
in class XmlRpc
public void startElement(java.lang.String name, org.xml.sax.AttributeList atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.DocumentHandler
startElement
in class XmlRpc
name
- The element type name.atts
- The specified or defaulted attributes.org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
protected boolean canReUse()
Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.