Package org.apache.xmlrpc.server
Class XmlRpcServerWorker
- java.lang.Object
-
- org.apache.xmlrpc.server.XmlRpcServerWorker
-
- All Implemented Interfaces:
XmlRpcWorker
public class XmlRpcServerWorker extends java.lang.Object implements XmlRpcWorker
Server specific implementation ofXmlRpcWorker
.
-
-
Field Summary
Fields Modifier and Type Field Description private XmlRpcServerWorkerFactory
factory
-
Constructor Summary
Constructors Constructor Description XmlRpcServerWorker(XmlRpcServerWorkerFactory pFactory)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
execute(XmlRpcRequest pRequest)
Performs a synchronous request.XmlRpcController
getController()
Returns the workers controller.
-
-
-
Field Detail
-
factory
private final XmlRpcServerWorkerFactory factory
-
-
Constructor Detail
-
XmlRpcServerWorker
public XmlRpcServerWorker(XmlRpcServerWorkerFactory pFactory)
Creates a new instance.- Parameters:
pFactory
- The factory creating the worker.
-
-
Method Detail
-
getController
public XmlRpcController getController()
Description copied from interface:XmlRpcWorker
Returns the workers controller.- Specified by:
getController
in interfaceXmlRpcWorker
- Returns:
- The controller, an instance of
XmlRpcClient
, orXmlRpcServer
.
-
execute
public java.lang.Object execute(XmlRpcRequest pRequest) throws XmlRpcException
Description copied from interface:XmlRpcWorker
Performs a synchronous request. The client worker extends this interface with the ability to perform asynchronous requests.- Specified by:
execute
in interfaceXmlRpcWorker
- Parameters:
pRequest
- The request being performed.- Returns:
- The requests result.
- Throws:
XmlRpcException
- Performing the request failed.
-
-