Package org.apache.muse.core.proxy

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


    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();
//      TODO why was this here?
//        String action = method.getName().getNamespaceURI();             
       
//        if (!action.endsWith("/"))
//            action += '/';
//       
//        action += method.getName().getLocalPart();
//        handler.setAction(action);
       
        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 = getMethodName(method.getName().getLocalPart());
            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

        return qnames;
    }

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

        return WsResourceClient.class;
    }

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

        return null;       
    }

    public QName getReturnName(String operation)
    {
        ProxyHandler handler = getHandler(operation);
       
        if (handler != null)
            return handler.getResponseName();
       
        return null;
    }
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.