Package org.apache.xmlrpc.metadata
Class ReflectiveXmlRpcMetaDataHandler
- java.lang.Object
-
- org.apache.xmlrpc.server.ReflectiveXmlRpcHandler
-
- org.apache.xmlrpc.metadata.ReflectiveXmlRpcMetaDataHandler
-
- All Implemented Interfaces:
XmlRpcMetaDataHandler,XmlRpcHandler
public class ReflectiveXmlRpcMetaDataHandler extends ReflectiveXmlRpcHandler implements XmlRpcMetaDataHandler
Default implementation ofXmlRpcMetaDataHandler.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringmethodHelpprivate java.lang.String[][]signatures
-
Constructor Summary
Constructors Constructor Description ReflectiveXmlRpcMetaDataHandler(AbstractReflectiveHandlerMapping pMapping, TypeConverterFactory pTypeConverterFactory, java.lang.Class pClass, RequestProcessorFactoryFactory.RequestProcessorFactory pFactory, java.lang.reflect.Method[] pMethods, java.lang.String[][] pSignatures, java.lang.String pMethodHelp)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMethodHelp()This method may be used to implementXmlRpcListableHandlerMapping.getMethodHelp(String).java.lang.String[][]getSignatures()This method may be used to implementXmlRpcListableHandlerMapping.getMethodSignature(String).-
Methods inherited from class org.apache.xmlrpc.server.ReflectiveXmlRpcHandler
execute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.xmlrpc.XmlRpcHandler
execute
-
-
-
-
Constructor Detail
-
ReflectiveXmlRpcMetaDataHandler
public ReflectiveXmlRpcMetaDataHandler(AbstractReflectiveHandlerMapping pMapping, TypeConverterFactory pTypeConverterFactory, java.lang.Class pClass, RequestProcessorFactoryFactory.RequestProcessorFactory pFactory, java.lang.reflect.Method[] pMethods, java.lang.String[][] pSignatures, java.lang.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 aspInstance.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 bygetSignatures().pMethodHelp- The help string, which will be returned bygetMethodHelp().
-
-
Method Detail
-
getSignatures
public java.lang.String[][] getSignatures() throws XmlRpcExceptionDescription copied from interface:XmlRpcMetaDataHandlerThis method may be used to implement
XmlRpcListableHandlerMapping.getMethodSignature(String). Typically, the handler mapping will pick up the matching handler, invoke its methodXmlRpcMetaDataHandler.getSignatures(), and return the result.Method handlers, which are created by the
AbstractReflectiveHandlerMapping, will typically return a single signature only.- Specified by:
getSignaturesin interfaceXmlRpcMetaDataHandler- 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.
- Throws:
XmlRpcException
-
getMethodHelp
public java.lang.String getMethodHelp() throws XmlRpcExceptionDescription copied from interface:XmlRpcMetaDataHandlerThis method may be used to implement
XmlRpcListableHandlerMapping.getMethodHelp(String). Typically, the handler mapping will pick up the matching handler, invoke its methodXmlRpcMetaDataHandler.getMethodHelp(), and return the result.- Specified by:
getMethodHelpin interfaceXmlRpcMetaDataHandler- Throws:
XmlRpcException
-
-