Package org.apache.xmlrpc.server
Class ReflectiveXmlRpcHandler
java.lang.Object
org.apache.xmlrpc.server.ReflectiveXmlRpcHandler
- All Implemented Interfaces:
XmlRpcHandler
- Direct Known Subclasses:
ReflectiveXmlRpcMetaDataHandler
Default implementation of
XmlRpcHandler
.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class
private final AbstractReflectiveHandlerMapping
private final ReflectiveXmlRpcHandler.MethodData[]
private final RequestProcessorFactoryFactory.RequestProcessorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionReflectiveXmlRpcHandler
(AbstractReflectiveHandlerMapping pMapping, TypeConverterFactory pTypeConverterFactory, Class pClass, RequestProcessorFactoryFactory.RequestProcessorFactory pFactory, Method[] pMethods) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(XmlRpcRequest pRequest) Performs the request and returns the result object.private Object
getInstance
(XmlRpcRequest pRequest) private Object
-
Field Details
-
mapping
-
methods
-
clazz
-
requestProcessorFactory
-
-
Constructor Details
-
ReflectiveXmlRpcHandler
public ReflectiveXmlRpcHandler(AbstractReflectiveHandlerMapping pMapping, TypeConverterFactory pTypeConverterFactory, Class pClass, RequestProcessorFactoryFactory.RequestProcessorFactory pFactory, Method[] pMethods) Creates a new instance.- Parameters:
pMapping
- The mapping, which creates this handler.pClass
- The class, which has been inspected to create this handler. Typically, this will be the same aspInstance.getClass()
. It is used for diagnostic messages only.pMethods
- The method, which will be invoked for executing the handler.
-
-
Method Details
-
getInstance
- Throws:
XmlRpcException
-
execute
Description copied from interface:XmlRpcHandler
Performs the request and returns the result object.- Specified by:
execute
in interfaceXmlRpcHandler
- Parameters:
pRequest
- The request being performed (method name and parameters.)- Returns:
- The result object.
- Throws:
XmlRpcException
- Performing the request failed.
-
invoke
- Throws:
XmlRpcException
-