org.apache.xmlrpc.metadata

Class ReflectiveXmlRpcMetaDataHandler

Implemented Interfaces:
XmlRpcHandler, XmlRpcMetaDataHandler

public class ReflectiveXmlRpcMetaDataHandler
extends ReflectiveXmlRpcHandler
implements XmlRpcMetaDataHandler

Default implementation of XmlRpcMetaDataHandler.

Constructor Summary

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

Method Summary

String
getMethodHelp()
This method may be used to implement XmlRpcListableHandlerMapping.getMethodHelp(String).
String[][]
getSignatures()
This method may be used to implement XmlRpcListableHandlerMapping.getMethodSignature(String).

Methods inherited from class org.apache.xmlrpc.server.ReflectiveXmlRpcHandler

execute

Constructor Details

ReflectiveXmlRpcMetaDataHandler

public ReflectiveXmlRpcMetaDataHandler(AbstractReflectiveHandlerMapping pMapping,
                                       TypeConverterFactory pTypeConverterFactory,
                                       Class pClass,
                                       RequestProcessorFactoryFactory.RequestProcessorFactory pFactory,
                                       Method[] pMethods,
                                       String[][] pSignatures,
                                       String pMethodHelp)
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.
pSignatures - The signature, which will be returned by getSignatures().
pMethodHelp - The help string, which will be returned by getMethodHelp().

Method Details

getMethodHelp

public String getMethodHelp()
            throws XmlRpcException
This method may be used to implement XmlRpcListableHandlerMapping.getMethodHelp(String). Typically, the handler mapping will pick up the matching handler, invoke its method XmlRpcMetaDataHandler.getMethodHelp(), and return the result.
Specified by:
getMethodHelp in interface XmlRpcMetaDataHandler

getSignatures

public String[][] getSignatures()
            throws XmlRpcException
This method may be used to implement XmlRpcListableHandlerMapping.getMethodSignature(String). Typically, the handler mapping will pick up the matching handler, invoke its method XmlRpcMetaDataHandler.getSignatures(), and return the result.

Method handlers, which are created by the AbstractReflectiveHandlerMapping, will typically return a single signature only.

Specified by:
getSignatures in interface XmlRpcMetaDataHandler
Returns:
An array of arrays. Any element in the outer array is a signature. The elements in the inner array are being concatenated with commas. The inner arrays first element is the return type, followed by the parameter types.

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