org.apache.xmlrpc.common

Class XmlRpcController

public abstract class XmlRpcController extends Object

A common base class for {@link org.apache.xmlrpc.server.XmlRpcServer} and {@link org.apache.xmlrpc.client.XmlRpcClient}.
Method Summary
abstract XmlRpcConfiggetConfig()
Returns the controllers default configuration.
protected abstract XmlRpcWorkerFactorygetDefaultXmlRpcWorkerFactory()
Creates the controllers default worker factory.
intgetMaxThreads()
Returns the maximum number of concurrent requests.
TypeFactorygetTypeFactory()
Returns the type factory.
XmlRpcWorkerFactorygetWorkerFactory()
Returns the clients worker factory.
voidsetMaxThreads(int pMaxThreads)
Sets the maximum number of concurrent requests.
voidsetTypeFactory(TypeFactory pTypeFactory)
Sets the type factory.
voidsetWorkerFactory(XmlRpcWorkerFactory pFactory)
Sets the clients worker factory.

Method Detail

getConfig

public abstract XmlRpcConfig getConfig()
Returns the controllers default configuration.

Returns: The default configuration.

getDefaultXmlRpcWorkerFactory

protected abstract XmlRpcWorkerFactory getDefaultXmlRpcWorkerFactory()
Creates the controllers default worker factory.

Returns: The default factory for workers.

getMaxThreads

public int getMaxThreads()
Returns the maximum number of concurrent requests. This includes both synchronous and asynchronous requests.

Returns: Maximum number of threads or 0 to disable the limit.

getTypeFactory

public TypeFactory getTypeFactory()
Returns the type factory.

Returns: The type factory.

getWorkerFactory

public XmlRpcWorkerFactory getWorkerFactory()
Returns the clients worker factory.

Returns: The factory being used to create workers.

setMaxThreads

public void setMaxThreads(int pMaxThreads)
Sets the maximum number of concurrent requests. This includes both synchronous and asynchronous requests.

Parameters: pMaxThreads Maximum number of threads or 0 to disable the limit.

setTypeFactory

public void setTypeFactory(TypeFactory pTypeFactory)
Sets the type factory.

Parameters: pTypeFactory The type factory.

setWorkerFactory

public void setWorkerFactory(XmlRpcWorkerFactory pFactory)
Sets the clients worker factory.

Parameters: pFactory The factory being used to create workers.

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.