Package de.dfki.util.xmlrpc.common

Examples of de.dfki.util.xmlrpc.common.MethodSignature


        if( method.getDeclaringClass() == Object.class )
        {
            throw new XmlRpcException( 0, "Can't call methods defined in java.lang.Object" );
        }
       
        MethodSignature methodSig = MethodSignature.createFromMethod( method );
        Object[] adaptedParameters = adaptParameters( methodSig, args );
       
       
        Object result = method.invoke( delegate, adaptedParameters );
       
        //convert result back to a XML-RPC compliant representation
        result = getTypeConverter().convertToXmlRpcRepresentation( methodSig.getReturnParameter(), result );
       
        if (result == null && !methodSig.getReturnParameter().getApiRepresentationClass().equals( void.class ))
        {
            throw( new XmlRpcException( 0, "Method '" + method + "' must not return <null>" ) );
        }
       
        return( result );
View Full Code Here


    }

   
    public MethodCall prepareCall( MethodSignature sig )
    {
        final MethodSignature tmpSig = new MethodSignature( getHandlerName(), sig );
        return( new MethodCall( tmpSig ) );
    }
View Full Code Here

        {
            return( method.invoke( getClient(), args ) );
        }

        //we have a call on the api class: convert it into a XML-RPC call
        MethodSignature sig = MethodSignature.createFromMethod( method );
        MethodCall call = getClient().prepareCall( sig );
       
        if (args == null)
        {
            args = new Object[0];
View Full Code Here

TOP

Related Classes of de.dfki.util.xmlrpc.common.MethodSignature

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.