org.apache.xmlrpc.server

Class XmlRpcServer

Implemented Interfaces:
XmlRpcRequestProcessor
Known Direct Subclasses:
XmlRpcStreamServer

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

Object
execute(XmlRpcRequest pRequest)
Performs the given request.
XmlRpcConfig
getConfig()
Returns the controllers default configuration.
protected XmlRpcWorkerFactory
getDefaultXmlRpcWorkerFactory()
Creates the controllers default worker factory.
XmlRpcHandlerMapping
getHandlerMapping()
Returns the servers handler mapping.
TypeConverterFactory
getTypeConverterFactory()
void
setConfig(XmlRpcServerConfig pConfig)
Sets the servers configuration.
void
setHandlerMapping(XmlRpcHandlerMapping pMapping)
Sets the servers handler mapping.
void
setTypeConverterFactory(TypeConverterFactory pFactory)
Sets the servers TypeConverterFactory.

Methods inherited from class org.apache.xmlrpc.common.XmlRpcController

getConfig, getDefaultXmlRpcWorkerFactory, getMaxThreads, getTypeFactory, getWorkerFactory, setMaxThreads, setTypeFactory, setWorkerFactory

Method Details

execute

public Object execute(XmlRpcRequest pRequest)
            throws XmlRpcException
Performs the given request.
Specified by:
execute in interface XmlRpcRequestProcessor
Parameters:
pRequest - The request being executed.
Returns:
The result object.
Throws:
XmlRpcException - The request failed.

getConfig

public XmlRpcConfig getConfig()
Returns the controllers default configuration.
Overrides:
getConfig in interface XmlRpcController
Returns:
The default configuration.

getDefaultXmlRpcWorkerFactory

protected XmlRpcWorkerFactory getDefaultXmlRpcWorkerFactory()
Creates the controllers default worker factory.
Overrides:
getDefaultXmlRpcWorkerFactory in interface XmlRpcController
Returns:
The default factory for workers.

getHandlerMapping

public XmlRpcHandlerMapping getHandlerMapping()
Returns the servers handler mapping.
Returns:
The servers handler mapping.

getTypeConverterFactory

public TypeConverterFactory getTypeConverterFactory()
Specified by:
getTypeConverterFactory in interface XmlRpcRequestProcessor

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-2007 Apache Software Foundation. All Rights Reserved.