org.apache.xmlrpc

Class XmlRpcClientWorker

public class XmlRpcClientWorker extends Object

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

Since: 2.0

Author: Andrew Evers

Field Summary
static ObjectPROCESSING_ERROR_FLAG
Used as an internal marker value in XmlRpcClientWorker.
protected XmlRpcClientRequestProcessorrequestProcessor
protected XmlRpcClientResponseProcessorresponseProcessor
Constructor Summary
XmlRpcClientWorker(TimeZone tz)
XmlRpcClientWorker(XmlRpcClientRequestProcessor requestProcessor, XmlRpcClientResponseProcessor responseProcessor)
Method Summary
protected booleancanReUse()
Called by the worker management framework to see if this worker can be re-used.
Objectexecute(XmlRpcClientRequest xmlRpcRequest, XmlRpcTransport transport)

Field Detail

PROCESSING_ERROR_FLAG

private static final Object PROCESSING_ERROR_FLAG
Used as an internal marker value in XmlRpcClientWorker.

requestProcessor

protected XmlRpcClientRequestProcessor requestProcessor

responseProcessor

protected XmlRpcClientResponseProcessor responseProcessor

Constructor Detail

XmlRpcClientWorker

public XmlRpcClientWorker(TimeZone tz)

XmlRpcClientWorker

public XmlRpcClientWorker(XmlRpcClientRequestProcessor requestProcessor, XmlRpcClientResponseProcessor responseProcessor)

Method Detail

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.

execute

public Object execute(XmlRpcClientRequest xmlRpcRequest, XmlRpcTransport transport)
Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.