org.apache.xmlrpc
Class XmlRpcClientWorker

java.lang.Object
  extended byorg.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
private static java.lang.Object PROCESSING_ERROR_FLAG
          Used as an internal marker value in execute(XmlRpcClientRequest, XmlRpcTransport).
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

PROCESSING_ERROR_FLAG

private static final java.lang.Object PROCESSING_ERROR_FLAG
Used as an internal marker value in execute(XmlRpcClientRequest, XmlRpcTransport).

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 ? 1999-2002 Apache Software Foundation. All Rights Reserved.