org.apache.xmlrpc

Class XmlRpcClientWorker


public class XmlRpcClientWorker
extends java.lang.Object

Tie together the XmlRequestProcessor and XmlResponseProcessor to handle a request serially in a single thread.
Author:
Andrew Evers
Since:
2.0

Field Summary

private static Object
PROCESSING_ERROR_FLAG
Used as an internal marker value in execute(XmlRpcClientRequest,XmlRpcTransport).
protected XmlRpcClientRequestProcessor
requestProcessor
protected XmlRpcClientResponseProcessor
responseProcessor

Constructor Summary

XmlRpcClientWorker(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.
Object
execute(XmlRpcClientRequest xmlRpcRequest, XmlRpcTransport transport)

Field Details

PROCESSING_ERROR_FLAG

private static final Object PROCESSING_ERROR_FLAG

requestProcessor

protected XmlRpcClientRequestProcessor requestProcessor

responseProcessor

protected XmlRpcClientResponseProcessor responseProcessor

Constructor Details

XmlRpcClientWorker

public XmlRpcClientWorker(TimeZone tz)

XmlRpcClientWorker

public XmlRpcClientWorker(XmlRpcClientRequestProcessor requestProcessor,
                          XmlRpcClientResponseProcessor responseProcessor)

Method Details

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)
            throws XmlRpcException,
                   XmlRpcClientException,
                   IOException

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.