org.apache.xmlrpc.server
Class ReflectiveXmlRpcHandler

java.lang.Object
  extended by 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.


Nested Class Summary
private static class ReflectiveXmlRpcHandler.MethodData
           
 
Field Summary
private  java.lang.Class clazz
           
private  AbstractReflectiveHandlerMapping mapping
           
private  ReflectiveXmlRpcHandler.MethodData[] methods
           
private  RequestProcessorFactoryFactory.RequestProcessorFactory requestProcessorFactory
           
 
Constructor Summary
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.
 
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
 

Field Detail

mapping

private final AbstractReflectiveHandlerMapping mapping

methods

private final ReflectiveXmlRpcHandler.MethodData[] methods

clazz

private final java.lang.Class clazz

requestProcessorFactory

private final RequestProcessorFactoryFactory.RequestProcessorFactory requestProcessorFactory
Constructor Detail

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.
Method Detail

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