org.apache.xmlrpc.server
Class ReflectiveXmlRpcHandler
java.lang.Object
org.apache.xmlrpc.server.ReflectiveXmlRpcHandler
- All Implemented Interfaces:
- org.apache.xmlrpc.XmlRpcHandler
- Direct Known Subclasses:
- ReflectiveXmlRpcMetaDataHandler
public class ReflectiveXmlRpcHandler
- extends java.lang.Object
- implements org.apache.xmlrpc.XmlRpcHandler
Default implementation of XmlRpcHandler
.
Method Summary |
java.lang.Object |
execute(org.apache.xmlrpc.XmlRpcRequest pRequest)
|
private java.lang.Object |
getInstance(org.apache.xmlrpc.XmlRpcRequest pRequest)
|
private java.lang.Object |
invoke(java.lang.Object pInstance,
java.lang.reflect.Method pMethod,
java.lang.Object[] pArgs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapping
private final AbstractReflectiveHandlerMapping mapping
methods
private final ReflectiveXmlRpcHandler.MethodData[] methods
clazz
private final java.lang.Class clazz
requestProcessorFactory
private final RequestProcessorFactoryFactory.RequestProcessorFactory requestProcessorFactory
ReflectiveXmlRpcHandler
public ReflectiveXmlRpcHandler(AbstractReflectiveHandlerMapping pMapping,
org.apache.xmlrpc.common.TypeConverterFactory pTypeConverterFactory,
java.lang.Class pClass,
RequestProcessorFactoryFactory.RequestProcessorFactory pFactory,
java.lang.reflect.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 as
pInstance.getClass()
. It is used for diagnostic
messages only.pMethods
- The method, which will be invoked for
executing the handler.
getInstance
private java.lang.Object getInstance(org.apache.xmlrpc.XmlRpcRequest pRequest)
throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
execute
public java.lang.Object execute(org.apache.xmlrpc.XmlRpcRequest pRequest)
throws org.apache.xmlrpc.XmlRpcException
- Specified by:
execute
in interface org.apache.xmlrpc.XmlRpcHandler
- Throws:
org.apache.xmlrpc.XmlRpcException
invoke
private java.lang.Object invoke(java.lang.Object pInstance,
java.lang.reflect.Method pMethod,
java.lang.Object[] pArgs)
throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException