org.apache.xmlrpc
Class XmlRpcClientWorker

java.lang.Object
  extended by org.apache.xmlrpc.XmlRpcClientWorker

public class XmlRpcClientWorker
extends java.lang.Object

Tie together the XmlRequestProcessor and XmlResponseProcessor to handle a request serially in a single thread.

Since:
2.0
Author:
Andrew Evers

Field Summary
protected  XmlRpcClientRequestProcessor requestProcessor
           
protected  XmlRpcClientResponseProcessor responseProcessor
           
 
Constructor Summary
XmlRpcClientWorker(java.util.TimeZone tz)
           
XmlRpcClientWorker(XmlRpcClientRequestProcessor requestProcessor, XmlRpcClientResponseProcessor responseProcessor)
           
 
Method Summary
protected  boolean canReUse()
          Called by the worker management framework to see if this worker can be re-used.
 java.lang.Object execute(XmlRpcClientRequest xmlRpcRequest, XmlRpcTransport transport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestProcessor

protected XmlRpcClientRequestProcessor requestProcessor

responseProcessor

protected XmlRpcClientResponseProcessor responseProcessor
Constructor Detail

XmlRpcClientWorker

public XmlRpcClientWorker(java.util.TimeZone tz)

XmlRpcClientWorker

public XmlRpcClientWorker(XmlRpcClientRequestProcessor requestProcessor,
                          XmlRpcClientResponseProcessor responseProcessor)
Method Detail

execute

public java.lang.Object execute(XmlRpcClientRequest xmlRpcRequest,
                                XmlRpcTransport transport)
                         throws XmlRpcException,
                                XmlRpcClientException,
                                java.io.IOException
Throws:
XmlRpcException
XmlRpcClientException
java.io.IOException

canReUse

protected boolean canReUse()
Called by the worker management framework to see if this worker can be re-used. Must attempt to clean up any state, and return true if it can be re-used.

Returns:
Whether this worker has been cleaned up and may be re-used.


Copyright 2001-2001-2005 Apache Software Foundation. All Rights Reserved.