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 XmlRpcServerWorkerFactoryfactory
-
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.Objectexecute(XmlRpcRequest pRequest)Performs a synchronous request.XmlRpcControllergetController()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:XmlRpcWorkerReturns the workers controller.- Specified by:
getControllerin interfaceXmlRpcWorker- Returns:
- The controller, an instance of
XmlRpcClient, orXmlRpcServer.
-
execute
public java.lang.Object execute(XmlRpcRequest pRequest) throws XmlRpcException
Description copied from interface:XmlRpcWorkerPerforms a synchronous request. The client worker extends this interface with the ability to perform asynchronous requests.- Specified by:
executein interfaceXmlRpcWorker- Parameters:
pRequest- The request being performed.- Returns:
- The requests result.
- Throws:
XmlRpcException- Performing the request failed.
-
-