org.apache.xmlrpc.server
Class XmlRpcServerWorker

java.lang.Object
  extended by org.apache.xmlrpc.server.XmlRpcServerWorker
All Implemented Interfaces:
XmlRpcWorker

public class XmlRpcServerWorker
extends java.lang.Object
implements XmlRpcWorker

Server specific implementation of XmlRpcWorker.


Constructor Summary
XmlRpcServerWorker(XmlRpcServerWorkerFactory pFactory)
          Creates a new instance.
 
Method Summary
 java.lang.Object execute(XmlRpcRequest pRequest)
          Performs a synchronous request.
 XmlRpcController getController()
          Returns the workers controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface XmlRpcWorker
Returns:
The controller, an instance of XmlRpcClient, or XmlRpcServer.

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 interface XmlRpcWorker
Parameters:
pRequest - The request being performed.
Returns:
The requests result.
Throws:
XmlRpcException - Performing the request failed.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.