public class ReflectiveXmlRpcHandler extends java.lang.Object implements XmlRpcHandler
XmlRpcHandler.| Modifier and Type | Class and Description |
|---|---|
private static class |
ReflectiveXmlRpcHandler.MethodData |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class |
clazz |
private AbstractReflectiveHandlerMapping |
mapping |
private ReflectiveXmlRpcHandler.MethodData[] |
methods |
private RequestProcessorFactoryFactory.RequestProcessorFactory |
requestProcessorFactory |
| Constructor and Description |
|---|
ReflectiveXmlRpcHandler(AbstractReflectiveHandlerMapping pMapping,
TypeConverterFactory pTypeConverterFactory,
java.lang.Class pClass,
RequestProcessorFactoryFactory.RequestProcessorFactory pFactory,
java.lang.reflect.Method[] pMethods)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(XmlRpcRequest pRequest)
Performs the request and returns the result object.
|
private java.lang.Object |
getInstance(XmlRpcRequest pRequest) |
private java.lang.Object |
invoke(java.lang.Object pInstance,
java.lang.reflect.Method pMethod,
java.lang.Object[] pArgs) |
private final AbstractReflectiveHandlerMapping mapping
private final ReflectiveXmlRpcHandler.MethodData[] methods
private final java.lang.Class clazz
private final RequestProcessorFactoryFactory.RequestProcessorFactory requestProcessorFactory
public ReflectiveXmlRpcHandler(AbstractReflectiveHandlerMapping pMapping, TypeConverterFactory pTypeConverterFactory, java.lang.Class pClass, RequestProcessorFactoryFactory.RequestProcessorFactory pFactory, java.lang.reflect.Method[] pMethods)
pMapping - The mapping, which creates this handler.pClass - The class, which has been inspected to create
this handler. Typically, this will be the same as
pInstance.getClass(). It is used for diagnostic messages only.
pMethods - The method, which will be invoked for
executing the handler.private java.lang.Object getInstance(XmlRpcRequest pRequest) throws XmlRpcException
XmlRpcExceptionpublic java.lang.Object execute(XmlRpcRequest pRequest) throws XmlRpcException
XmlRpcHandlerexecute in interface XmlRpcHandlerpRequest - The request being performed (method name and
parameters.)XmlRpcException - Performing the request failed.private java.lang.Object invoke(java.lang.Object pInstance,
java.lang.reflect.Method pMethod,
java.lang.Object[] pArgs)
throws XmlRpcException
XmlRpcException