de.dfki.util.xmlrpc.common
Class MethodSignature

java.lang.Object
  extended by de.dfki.util.xmlrpc.common.MethodSignature

public class MethodSignature
extends java.lang.Object

Defines name, parameters and return type of a XML-RPC method.

Author:
lauer

Field Summary
static XmlRpc.Type[] NO_PARAMS
           
static XmlRpc.Type NO_RETURN
           
 
Constructor Summary
  MethodSignature(java.lang.Class<?> cls, java.lang.String methodName)
           
protected MethodSignature(java.lang.reflect.Method method)
          Creates a method signature based on a java method object.
  MethodSignature(java.lang.String name)
          Deprecated. 
  MethodSignature(java.lang.String handlerId, MethodSignature oldSig)
          Create a signature for a new handler name.
  MethodSignature(java.lang.String name, XmlRpc.Type paramType)
          Deprecated. 
  MethodSignature(java.lang.String name, XmlRpc.Type[] paramTypes)
          Deprecated. 
  MethodSignature(java.lang.String name, XmlRpc.Type[] paramTypes, XmlRpc.Type returnType)
          Deprecated. 
  MethodSignature(java.lang.String name, XmlRpc.Type paramType, XmlRpc.Type returnType)
          Deprecated. 
 
Method Summary
static MethodSignature createFromMethod(java.lang.reflect.Method m)
          Creates a method signature based on a java method object.
 java.lang.reflect.Method getMethod(java.lang.Class<?> cls, java.lang.String methodName)
           
 java.lang.String getName()
           
 ApiParameter getParameterAt(int pos)
           
 int getParameterCount()
           
protected  ApiParameter[] getParametersFromMethod(java.lang.reflect.Method m)
           
protected  ApiParameter[] getParametersFromXmlRpcTypes(XmlRpc.Type[] types)
          Deprecated. 
 ApiParameter getReturnParameter()
           
 ApiParameter getReturnParameterFromMethod(java.lang.reflect.Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_PARAMS

public static final XmlRpc.Type[] NO_PARAMS

NO_RETURN

public static final XmlRpc.Type NO_RETURN
Constructor Detail

MethodSignature

public MethodSignature(java.lang.String handlerId,
                       MethodSignature oldSig)
Create a signature for a new handler name.

Parameters:
handlerId - new handler name.
oldSig - old signature with parameters to be copied.

MethodSignature

@Deprecated
public MethodSignature(java.lang.String name,
                                  XmlRpc.Type[] paramTypes,
                                  XmlRpc.Type returnType)
Deprecated. 


MethodSignature

@Deprecated
public MethodSignature(java.lang.String name,
                                  XmlRpc.Type paramType,
                                  XmlRpc.Type returnType)
Deprecated. 


MethodSignature

@Deprecated
public MethodSignature(java.lang.String name,
                                  XmlRpc.Type paramType)
Deprecated. 


MethodSignature

@Deprecated
public MethodSignature(java.lang.String name,
                                  XmlRpc.Type[] paramTypes)
Deprecated. 


MethodSignature

@Deprecated
public MethodSignature(java.lang.String name)
Deprecated. 


MethodSignature

public MethodSignature(java.lang.Class<?> cls,
                       java.lang.String methodName)

MethodSignature

protected MethodSignature(java.lang.reflect.Method method)
Creates a method signature based on a java method object.

Method Detail

createFromMethod

public static MethodSignature createFromMethod(java.lang.reflect.Method m)
Creates a method signature based on a java method object. Already created signatures are cached for later use.


getMethod

public java.lang.reflect.Method getMethod(java.lang.Class<?> cls,
                                          java.lang.String methodName)

getReturnParameterFromMethod

public ApiParameter getReturnParameterFromMethod(java.lang.reflect.Method method)
                                          throws TypeConversionException
Throws:
TypeConversionException

getParametersFromMethod

protected ApiParameter[] getParametersFromMethod(java.lang.reflect.Method m)
                                          throws TypeConversionException
Throws:
TypeConversionException

getParametersFromXmlRpcTypes

@Deprecated
protected ApiParameter[] getParametersFromXmlRpcTypes(XmlRpc.Type[] types)
Deprecated. 


getName

public java.lang.String getName()

getParameterAt

public ApiParameter getParameterAt(int pos)

getReturnParameter

public ApiParameter getReturnParameter()

getParameterCount

public int getParameterCount()


Copyright © 2012. All Rights Reserved.