Package org.apache.muse.core.proxy

Examples of org.apache.muse.core.proxy.ProxyHandler


   
   
    public QName getReturnSchemaType(String operation)
    {
        ProxyHandler handler = getHandler(operation);
       
        if (handler != null)
            return handler.getReturnSchemaType();
       
        Method method = getBaseProxyMethod(operation);
        Class type = method.getReturnType();
        return getSchemaType(type);
    }
View Full Code Here


        return getSchemaType(type);
    }

    public Class getReturnType(String operation)
    {
        ProxyHandler handler = getHandler(operation);
       
        if (handler != null)
            return handler.getReturnType();
       
        Method method = getBaseProxyMethod(operation);
        return method.getReturnType();       
    }
View Full Code Here

     *
     */
    public Object invoke(WsResourceClient resource, String operation, Object[] parameters)
        throws SoapFault
    {
        ProxyHandler handler = getHandler(operation);

        if (handler != null)
            return resource.invoke(handler, parameters);
       
        Object proxy = null;
View Full Code Here

    public void start()
        throws SoapFault
    {
        Object[] args = new Object[0];
       
        ProxyHandler handler = getHandler(_METHOD_NAMES[0]);
        invoke(handler, args);
    }
View Full Code Here

    public void stop()
        throws SoapFault
    {
        Object[] args = new Object[0];
       
        ProxyHandler handler = getHandler(_METHOD_NAMES[1]);
        invoke(handler, args);       
    }
View Full Code Here

        return method;
    }
   
    private ProxyHandler createReflectionHandler(JavaMethod method)
    {
        ProxyHandler handler = new ReflectionProxyHandler();
       
        handler.setAction(method.getActionURI());
       
        handler.setRequestName(method.getName());
        handler.setRequestParameterNames(method.getParameterTypeNames());
        handler.setRequestParameterSchemaTypes(method.getParameterSchemaTypes());
        handler.setRequestParameterTypes(method.getParameterTypes());
        handler.setResponseName(method.getReturnName());
        handler.setReturnSchemaType(method.getReturnSchemaType());
        handler.setReturnType(method.getReturnType());
       
        return handler;
    }
View Full Code Here

        return handler;
    }
   
    public String getAction(String operation)
    {
        ProxyHandler handler = getHandler(operation);
       
        if (handler != null)
            return handler.getAction();
       
        return null;       
    }
View Full Code Here

            JavaMethod method = (JavaMethod)operations.get(i.next());
           
            if (isBasicResourceOperation(method.getName()))
                continue;
           
            ProxyHandler handler = createReflectionHandler(method);
           
            String javaName = method.getJavaName();
            handlers.put(javaName, handler);
        }
       
View Full Code Here

        return names;
    }

    public QName[] getParameterQNames(String operation)
    {
        ProxyHandler handler = getHandler(operation);
       
        if (handler != null)
            return handler.getRequestParameterNames();
       
        return new QName[0];
    }
View Full Code Here

        return new QName[0];
    }

    public QName[] getParameterSchemaTypes(String operation)
    {
        ProxyHandler handler = getHandler(operation);
       
        if (handler != null)
            return handler.getRequestParameterSchemaTypes();
       
        Method method = getBaseProxyMethod(operation);
        Class[] types = method.getParameterTypes();
        QName[] qnames = new QName[types.length];
       
View Full Code Here

TOP

Related Classes of org.apache.muse.core.proxy.ProxyHandler

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.