Examples of GerServiceRefType


Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

    private static Map mapServiceRefs(XmlObject[] refs) {
        Map refMap = new HashMap();
        if (refs != null) {
            for (int i = 0; i < refs.length; i++) {
                GerServiceRefType ref = (GerServiceRefType) refs[i].copy().changeType(GerServiceRefType.type);
                String serviceRefName = ref.getServiceRefName().trim();
                refMap.put(serviceRefName, ref);
            }
        }
        return refMap;
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

    }


    //ServicereferenceBuilder
    public Object createService(Class serviceInterface, URI wsdlURI, URI jaxrpcMappingURI, QName serviceQName, Map portComponentRefMap, List handlerInfos, Object serviceRefType, Module module, ClassLoader classLoader) throws DeploymentException {
        GerServiceRefType gerServiceRefType = (GerServiceRefType) serviceRefType;
        JarFile moduleFile = module.getModuleFile();
        SchemaInfoBuilder schemaInfoBuilder = null;
        JavaWsdlMappingType mapping = null;
        if (wsdlURI != null) {
            schemaInfoBuilder = new SchemaInfoBuilder(moduleFile, wsdlURI);
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

    }

    public void readWebServiceRefsData(PortletRequest request, GerWebAppType webApp) {
        Map map = request.getParameterMap();
        for (int i = 0; i < webApp.getServiceRefArray().length; i++) {
            GerServiceRefType serviceRef = webApp.getServiceRefArray(i);
            for (int j = serviceRef.getPortArray().length - 1; j >= 0; j--) {
                serviceRef.removePort(j);
            }
            String prefix1 = "serviceRef" + "." + i + "." + "port" + ".";
            int lastIndex = Integer.parseInt(request.getParameter(prefix1 + "lastIndex"));
            for (int j = 0; j < lastIndex; j++) {
                String prefix2 = prefix1 + j + ".";
                if (!map.containsKey(prefix2 + "portName")) {
                    continue;
                }
                GerPortType port = serviceRef.addNewPort();
                String value = request.getParameter(prefix2 + "portName");
                if (!isEmpty(value)) {
                    port.setPortName(value);
                }
                value = request.getParameter(prefix2 + "protocol");
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

    private static Map mapServiceRefs(XmlObject[] refs) {
        Map refMap = new HashMap();
        if (refs != null) {
            for (int i = 0; i < refs.length; i++) {
                GerServiceRefType ref = (GerServiceRefType) refs[i].copy().changeType(GerServiceRefType.type);
                String serviceRefName = ref.getServiceRefName().trim();
                refMap.put(serviceRefName, ref);
            }
        }
        return refMap;
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

    }

    public void readWebServiceRefsData(PortletRequest request, GerWebAppType webApp) {
        Map map = request.getParameterMap();
        for (int i = 0; i < webApp.getServiceRefArray().length; i++) {
            GerServiceRefType serviceRef = webApp.getServiceRefArray(i);
            for (int j = serviceRef.getPortArray().length - 1; j >= 0; j--) {
                serviceRef.removePort(j);
            }
            String prefix1 = "serviceRef" + "." + i + "." + "port" + ".";
            int lastIndex = Integer.parseInt(request.getParameter(prefix1 + "lastIndex"));
            for (int j = 0; j < lastIndex; j++) {
                String prefix2 = prefix1 + j + ".";
                if (!map.containsKey(prefix2 + "portName")) {
                    continue;
                }
                GerPortType port = serviceRef.addNewPort();
                String value = request.getParameter(prefix2 + "portName");
                if (!isEmpty(value)) {
                    port.setPortName(value);
                }
                value = request.getParameter(prefix2 + "protocol");
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

            Class<?> jaxwsClass = loadClass("javax.xml.ws.Service", bundle);

            for (ServiceRef serviceRef : serviceRefs) {

                String name = getStringValue(serviceRef.getServiceRefName());
                GerServiceRefType gerServiceRefType = serviceRefMap.get(name);
                serviceRefMap.remove(name);

                String serviceInterfaceName = serviceRef.getServiceInterface();
                Class<?> serviceInterfaceClass = loadClass(serviceInterfaceName, bundle);
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

    private Map<String, GerServiceRefType> mapServiceRefs(XmlObject[] refs) {
        if (refs != null && refs.length > 0) {
            Map<String, GerServiceRefType> refMap = new HashMap<String, GerServiceRefType>();
            for (int i = 0; i < refs.length; i++) {
                GerServiceRefType ref = (GerServiceRefType) refs[i].copy().changeType(GerServiceRefType.type);
                String serviceRefName = ref.getServiceRefName().trim();
                refMap.put(serviceRefName, ref);
            }
            return refMap;
        }
        return Collections.<String, GerServiceRefType> emptyMap();
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

    }


    //ServicereferenceBuilder
    public Object createService(Class serviceInterface, URI wsdlURI, URI jaxrpcMappingURI, QName serviceQName, Map portComponentRefMap, List handlerInfos, Object serviceRefType, Module module, Bundle bundle) throws DeploymentException {
        GerServiceRefType gerServiceRefType = (GerServiceRefType) serviceRefType;
        JarFile moduleFile = module.getModuleFile();
        SchemaInfoBuilder schemaInfoBuilder = null;
        JavaWsdlMapping mapping = null;
        if (wsdlURI != null) {
            schemaInfoBuilder = new SchemaInfoBuilder(moduleFile, wsdlURI);
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

        XmlObject[] gerServiceRefsUntyped = plan == null ? NO_REFS : plan.selectChildren(GER_SERVICE_REF_QNAME_SET);
        Map<String, GerServiceRefType> serviceRefMap = mapServiceRefs(gerServiceRefsUntyped);

        for (ServiceRef serviceRef : serviceRefsUntyped) {
            String name = getStringValue(serviceRef.getServiceRefName());
            GerServiceRefType serviceRefType = serviceRefMap.remove(name);
            buildNaming(serviceRef, serviceRefType, module, componentContext);
        }

        if (serviceRefMap.size() > 0) {
            log.warn("Failed to build reference to service reference "+serviceRefMap.keySet()+" defined in plan file, reason - corresponding entry in deployment descriptor missing.");
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType

    private static Map<String, GerServiceRefType> mapServiceRefs(XmlObject[] refs) {
        Map<String, GerServiceRefType> refMap = new HashMap<String, GerServiceRefType>();
        if (refs != null) {
            for (int i = 0; i < refs.length; i++) {
                GerServiceRefType ref = (GerServiceRefType) refs[i].copy()
                        .changeType(GerServiceRefType.type);
                String serviceRefName = ref.getServiceRefName().trim();
                refMap.put(serviceRefName, ref);
            }
        }
        return refMap;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.