Class XmlRpcController
java.lang.Object
org.apache.xmlrpc.common.XmlRpcController
- Direct Known Subclasses:
XmlRpcClient, XmlRpcServer
A common base class for
XmlRpcServer and
XmlRpcClient.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract XmlRpcConfigReturns the controllers default configuration.protected abstract XmlRpcWorkerFactoryCreates the controllers default worker factory.intReturns the maximum number of concurrent requests.Returns the type factory.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 Details
-
workerFactory
-
maxThreads
private int maxThreads -
typeFactory
-
-
Constructor Details
-
XmlRpcController
public XmlRpcController()
-
-
Method Details
-
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
Sets the clients worker factory.- Parameters:
pFactory- The factory being used to create workers.
-
getWorkerFactory
Returns the clients worker factory.- Returns:
- The factory being used to create workers.
-
getConfig
Returns the controllers default configuration.- Returns:
- The default configuration.
-
setTypeFactory
Sets the type factory.- Parameters:
pTypeFactory- The type factory.
-
getTypeFactory
-