org.apache.xmlrpc.server

Class XmlRpcServer

public class XmlRpcServer extends XmlRpcController implements XmlRpcRequestProcessor

A multithreaded, reusable XML-RPC server object. The name may be misleading because this does not open any server sockets. Instead it is fed by passing instances of XmlRpcRequest from a transport.
Method Summary
Objectexecute(XmlRpcRequest pRequest)
Performs the given request.
XmlRpcConfiggetConfig()
protected XmlRpcWorkerFactorygetDefaultXmlRpcWorkerFactory()
XmlRpcHandlerMappinggetHandlerMapping()
Returns the servers handler mapping.
TypeConverterFactorygetTypeConverterFactory()
voidsetConfig(XmlRpcServerConfig pConfig)
Sets the servers configuration.
voidsetHandlerMapping(XmlRpcHandlerMapping pMapping)
Sets the servers handler mapping.
voidsetTypeConverterFactory(TypeConverterFactory pFactory)
Sets the servers TypeConverterFactory.

Method Detail

execute

public Object execute(XmlRpcRequest pRequest)
Performs the given request.

Parameters: pRequest The request being executed.

Returns: The result object.

Throws: XmlRpcException The request failed.

getConfig

public XmlRpcConfig getConfig()

getDefaultXmlRpcWorkerFactory

protected XmlRpcWorkerFactory getDefaultXmlRpcWorkerFactory()

getHandlerMapping

public XmlRpcHandlerMapping getHandlerMapping()
Returns the servers handler mapping.

Returns: The servers handler mapping.

getTypeConverterFactory

public TypeConverterFactory getTypeConverterFactory()

setConfig

public void setConfig(XmlRpcServerConfig pConfig)
Sets the servers configuration.

Parameters: pConfig The new server configuration.

setHandlerMapping

public void setHandlerMapping(XmlRpcHandlerMapping pMapping)
Sets the servers handler mapping.

Parameters: pMapping The servers handler mapping.

setTypeConverterFactory

public void setTypeConverterFactory(TypeConverterFactory pFactory)
Sets the servers TypeConverterFactory.
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.