Package org.apache.xmlrpc.server
Class ReflectiveXmlRpcHandler
- java.lang.Object
-
- org.apache.xmlrpc.server.ReflectiveXmlRpcHandler
-
- All Implemented Interfaces:
XmlRpcHandler
- Direct Known Subclasses:
ReflectiveXmlRpcMetaDataHandler
public class ReflectiveXmlRpcHandler extends java.lang.Object implements XmlRpcHandler
Default implementation ofXmlRpcHandler.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classReflectiveXmlRpcHandler.MethodData
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Classclazzprivate AbstractReflectiveHandlerMappingmappingprivate ReflectiveXmlRpcHandler.MethodData[]methodsprivate RequestProcessorFactoryFactory.RequestProcessorFactoryrequestProcessorFactory
-
Constructor Summary
Constructors Constructor Description ReflectiveXmlRpcHandler(AbstractReflectiveHandlerMapping pMapping, TypeConverterFactory pTypeConverterFactory, java.lang.Class pClass, RequestProcessorFactoryFactory.RequestProcessorFactory pFactory, java.lang.reflect.Method[] pMethods)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexecute(XmlRpcRequest pRequest)Performs the request and returns the result object.private java.lang.ObjectgetInstance(XmlRpcRequest pRequest)private java.lang.Objectinvoke(java.lang.Object pInstance, java.lang.reflect.Method pMethod, java.lang.Object[] pArgs)
-
-
-
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, 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 aspInstance.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(XmlRpcRequest pRequest) throws XmlRpcException
- Throws:
XmlRpcException
-
execute
public java.lang.Object execute(XmlRpcRequest pRequest) throws XmlRpcException
Description copied from interface:XmlRpcHandlerPerforms the request and returns the result object.- Specified by:
executein interfaceXmlRpcHandler- Parameters:
pRequest- The request being performed (method name and parameters.)- Returns:
- The result object.
- Throws:
XmlRpcException- Performing the request failed.
-
invoke
private java.lang.Object invoke(java.lang.Object pInstance, java.lang.reflect.Method pMethod, java.lang.Object[] pArgs) throws XmlRpcException- Throws:
XmlRpcException
-
-