Package org.apache.xmlrpc.common
Class XmlRpcController
- java.lang.Object
-
- org.apache.xmlrpc.common.XmlRpcController
-
- Direct Known Subclasses:
XmlRpcClient,XmlRpcServer
public abstract class XmlRpcController extends java.lang.ObjectA common base class forXmlRpcServerandXmlRpcClient.
-
-
Field Summary
Fields Modifier and Type Field Description private intmaxThreadsprivate TypeFactorytypeFactoryprivate XmlRpcWorkerFactoryworkerFactory
-
Constructor Summary
Constructors Constructor Description XmlRpcController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
workerFactory
private XmlRpcWorkerFactory workerFactory
-
maxThreads
private int maxThreads
-
typeFactory
private TypeFactory typeFactory
-
-
Method Detail
-
getDefaultXmlRpcWorkerFactory
protected abstract XmlRpcWorkerFactory getDefaultXmlRpcWorkerFactory()
Creates the controllers default worker factory.- Returns:
- The default factory for 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.
-
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.
-
setWorkerFactory
public void setWorkerFactory(XmlRpcWorkerFactory pFactory)
Sets the clients worker factory.- Parameters:
pFactory- The factory being used to create workers.
-
getWorkerFactory
public XmlRpcWorkerFactory getWorkerFactory()
Returns the clients worker factory.- Returns:
- The factory being used to create workers.
-
getConfig
public abstract XmlRpcConfig getConfig()
Returns the controllers default configuration.- Returns:
- The default configuration.
-
setTypeFactory
public void setTypeFactory(TypeFactory pTypeFactory)
Sets the type factory.- Parameters:
pTypeFactory- The type factory.
-
getTypeFactory
public TypeFactory getTypeFactory()
Returns the type factory.- Returns:
- The type factory.
-
-