Package org.apache.xmlrpc.server
Class XmlRpcServer
java.lang.Object
org.apache.xmlrpc.common.XmlRpcController
org.apache.xmlrpc.server.XmlRpcServer
- All Implemented Interfaces:
XmlRpcRequestProcessor
- Direct Known Subclasses:
XmlRpcStreamServer
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate XmlRpcServerConfig
private XmlRpcHandlerMapping
private TypeConverterFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(XmlRpcRequest pRequest) Performs the given request.Returns the controllers default configuration.protected XmlRpcWorkerFactory
Creates the controllers default worker factory.Returns the servers handler mapping.Returns the request processorsTypeConverterFactory
.void
setConfig
(XmlRpcServerConfig pConfig) Sets the servers configuration.void
setHandlerMapping
(XmlRpcHandlerMapping pMapping) Sets the servers handler mapping.void
setTypeConverterFactory
(TypeConverterFactory pFactory) Sets the serversTypeConverterFactory
.Methods inherited from class org.apache.xmlrpc.common.XmlRpcController
getMaxThreads, getTypeFactory, getWorkerFactory, setMaxThreads, setTypeFactory, setWorkerFactory
-
Field Details
-
handlerMapping
-
typeConverterFactory
-
config
-
-
Constructor Details
-
XmlRpcServer
public XmlRpcServer()
-
-
Method Details
-
getDefaultXmlRpcWorkerFactory
Description copied from class:XmlRpcController
Creates the controllers default worker factory.- Specified by:
getDefaultXmlRpcWorkerFactory
in classXmlRpcController
- Returns:
- The default factory for workers.
-
setTypeConverterFactory
Sets the serversTypeConverterFactory
. -
getTypeConverterFactory
Description copied from interface:XmlRpcRequestProcessor
Returns the request processorsTypeConverterFactory
.- Specified by:
getTypeConverterFactory
in interfaceXmlRpcRequestProcessor
-
setConfig
Sets the servers configuration.- Parameters:
pConfig
- The new server configuration.
-
getConfig
Description copied from class:XmlRpcController
Returns the controllers default configuration.- Specified by:
getConfig
in classXmlRpcController
- Returns:
- The default configuration.
-
setHandlerMapping
Sets the servers handler mapping.- Parameters:
pMapping
- The servers handler mapping.
-
getHandlerMapping
Returns the servers handler mapping.- Returns:
- The servers handler mapping.
-
execute
Performs the given request.- Specified by:
execute
in interfaceXmlRpcRequestProcessor
- Parameters:
pRequest
- The request being executed.- Returns:
- The result object.
- Throws:
XmlRpcException
- The request failed.
-