org.apache.xmlrpc.server

Class ReflectiveXmlRpcHandler

Implemented Interfaces:
XmlRpcHandler
Known Direct Subclasses:
ReflectiveXmlRpcMetaDataHandler

public class ReflectiveXmlRpcHandler
extends java.lang.Object
implements XmlRpcHandler

Default implementation of XmlRpcHandler.

Constructor Summary

ReflectiveXmlRpcHandler(AbstractReflectiveHandlerMapping pMapping, TypeConverterFactory pTypeConverterFactory, Class pClass, RequestProcessorFactoryFactory.RequestProcessorFactory pFactory, Method[] pMethods)
Creates a new instance.

Method Summary

Object
execute(XmlRpcRequest pRequest)
Performs the request and returns the result object.

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 as
pInstance.getClass()
. It is used for diagnostic messages only.
pMethods - The method, which will be invoked for executing the handler.

Method Details

execute

public Object execute(XmlRpcRequest pRequest)
            throws XmlRpcException
Performs the request and returns the result object.
Specified by:
execute in interface XmlRpcHandler
Parameters:
pRequest - The request being performed (method name and parameters.)
Returns:
The result object.
Throws:
XmlRpcException - Performing the request failed.

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.