org.apache.xmlrpc
Class XmlRpcClient.Worker

java.lang.Object
  extended byorg.xml.sax.HandlerBase
      extended byorg.apache.xmlrpc.XmlRpc
          extended byorg.apache.xmlrpc.XmlRpcClient.Worker
All Implemented Interfaces:
org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, java.lang.Runnable
Direct Known Subclasses:
XmlRpcClientLite.LiteWorker
Enclosing class:
XmlRpcClient

class XmlRpcClient.Worker
extends XmlRpc
implements java.lang.Runnable


Nested Class Summary
 
Nested classes inherited from class org.apache.xmlrpc.XmlRpc
XmlRpc.Value
 
Field Summary
(package private)  java.io.ByteArrayOutputStream buffer
          The output buffer used in creating a request.
(package private)  XmlRpcClient.CallData call
           
(package private)  boolean fault
           
(package private)  java.lang.Object result
           
 
Fields inherited from class org.apache.xmlrpc.XmlRpc
ARRAY, BASE64, BOOLEAN, cdata, currentValue, DATE, debug, DOUBLE, encoding, errorLevel, errorMsg, FATAL, INTEGER, keepalive, methodName, NONE, readCdata, RECOVERABLE, STRING, STRUCT, types, values, version
 
Constructor Summary
XmlRpcClient.Worker()
           
 
Method Summary
(package private)  java.lang.Object execute(java.lang.String method, java.util.Vector params)
          Execute an XML-RPC call.
(package private)  void executeAsync(java.lang.String method, java.util.Vector params, AsyncCallback callback)
          Execute an XML-RPC call and handle asyncronous callback.
protected  void objectParsed(java.lang.Object what)
          Called when the return value has been parsed.
 void run()
           
 void start(java.lang.String method, java.util.Vector params, AsyncCallback callback)
           
 void startElement(java.lang.String name, org.xml.sax.AttributeList atts)
          Overrides method in XmlRpc to handle fault repsonses.
(package private)  void writeRequest(XmlWriter writer, java.lang.String method, java.util.Vector params)
          Generate an XML-RPC request from a method name and a parameter vector.
 
Methods inherited from class org.apache.xmlrpc.XmlRpc
characters, endElement, error, fatalError, getEncoding, getKeepAlive, getMaxThreads, parse, setDebug, setDriver, setDriver, setEncoding, setKeepAlive, setMaxThreads
 
Methods inherited from class org.xml.sax.HandlerBase
endDocument, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fault

boolean fault

result

java.lang.Object result

buffer

java.io.ByteArrayOutputStream buffer
The output buffer used in creating a request.


call

XmlRpcClient.CallData call
Constructor Detail

XmlRpcClient.Worker

public XmlRpcClient.Worker()
Method Detail

start

public void start(java.lang.String method,
                  java.util.Vector params,
                  AsyncCallback callback)
Parameters:
method -
params -
callback -

run

public void run()
Specified by:
run in interface java.lang.Runnable

executeAsync

void executeAsync(java.lang.String method,
                  java.util.Vector params,
                  AsyncCallback callback)
Execute an XML-RPC call and handle asyncronous callback.


execute

java.lang.Object execute(java.lang.String method,
                         java.util.Vector params)
                   throws XmlRpcException,
                          java.io.IOException
Execute an XML-RPC call.

Throws:
XmlRpcException
java.io.IOException

objectParsed

protected void objectParsed(java.lang.Object what)
Called when the return value has been parsed.

Specified by:
objectParsed in class XmlRpc

writeRequest

void writeRequest(XmlWriter writer,
                  java.lang.String method,
                  java.util.Vector params)
            throws java.io.IOException,
                   XmlRpcException
Generate an XML-RPC request from a method name and a parameter vector.

Throws:
java.io.IOException
XmlRpcException

startElement

public void startElement(java.lang.String name,
                         org.xml.sax.AttributeList atts)
                  throws org.xml.sax.SAXException
Overrides method in XmlRpc to handle fault repsonses.

Specified by:
startElement in interface org.xml.sax.DocumentHandler
Overrides:
startElement in class XmlRpc
Throws:
org.xml.sax.SAXException


Copyright © ${year} Apache Software Foundation. All Rights Reserved.