Package org.apache.tuscany.sca.assembly

Examples of org.apache.tuscany.sca.assembly.OperationSelector


        XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(BINDING_WITH_OPERATION_SELECTOR));
       
        RESTBinding binding = (RESTBinding)staxProcessor.read(reader, context);       
        Assert.assertNotNull(binding);
       
        OperationSelector operationSelector = binding.getOperationSelector();
        Assert.assertEquals(JAXRSOperationSelector.class, operationSelector.getClass().getInterfaces()[0]);       
    }
View Full Code Here


    }
   
    public Interceptor createInterceptor() {
        if(binding instanceof BindingRRB) {
            BindingRRB rrbBinding = (BindingRRB) binding;
            OperationSelector operationSelector = rrbBinding.getOperationSelector();
            if(operationSelector != null && operationSelector instanceof JSONRPCOperationSelector) {
                return new JSONRPCOperationSelectorInterceptor((HTTPBinding) binding, service.getRuntimeWire(binding), messageFactory);
            }
        }
       
View Full Code Here

       
        Composite composite = (Composite)staxProcessor.read(reader);
        HTTPBinding binding = (HTTPBinding)   composite.getComponents().get(0).getServices().get(0).getBindings().get(0);       
        assertNotNull(binding);
       
        OperationSelector operationSelector = binding.getOperationSelector();
        assertEquals(JSONRPCOperationSelector.class, operationSelector.getClass().getInterfaces()[0]);
    }
View Full Code Here

    }
   
    public Interceptor createInterceptor() {
        if(binding instanceof BindingRRB) {
            BindingRRB rrbBinding = (BindingRRB) binding;
            OperationSelector operationSelector = rrbBinding.getOperationSelector();
            if(operationSelector != null && operationSelector instanceof JSONRPCOperationSelector) {
                return new JSONRPCOperationSelectorInterceptor((HTTPBinding) binding, service.getRuntimeWire(binding));
            }
        }
       
View Full Code Here

       
        Composite composite = (Composite)staxProcessor.read(reader);
        HTTPBinding binding = (HTTPBinding)   composite.getComponents().get(0).getServices().get(0).getBindings().get(0);       
        assertNotNull(binding);
       
        OperationSelector operationSelector = binding.getOperationSelector();
        assertEquals(JSONRPCOperationSelector.class, operationSelector.getClass().getInterfaces()[0]);
    }
View Full Code Here

        XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(BINDING_WITH_OPERATION_SELECTOR));
       
        RESTBinding binding = (RESTBinding)staxProcessor.read(reader, context);       
        Assert.assertNotNull(binding);
       
        OperationSelector operationSelector = binding.getOperationSelector();
        Assert.assertEquals(JAXRSOperationSelector.class, operationSelector.getClass().getInterfaces()[0]);       
    }
View Full Code Here

        WireFormat responseWireFormat = model.getResponseWireFormat();
        if (responseWireFormat != null) {
            extensionProcessor.resolve(responseWireFormat, resolver, context);
        }   
       
        OperationSelector operationSelector = model.getOperationSelector();
        if (operationSelector != null) {
            extensionProcessor.resolve(operationSelector, resolver, context);
        }     
    }
View Full Code Here

        XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(BINDING_WITH_OPERATION_SELECTOR));
       
        RESTBinding binding = (RESTBinding)staxProcessor.read(reader, context);       
        Assert.assertNotNull(binding);
       
        OperationSelector operationSelector = binding.getOperationSelector();
        Assert.assertEquals(JAXRSOperationSelector.class, operationSelector.getClass().getInterfaces()[0]);       
    }
View Full Code Here

       
        Composite composite = (Composite)staxProcessor.read(reader);
        HTTPBinding binding = (HTTPBinding)   composite.getComponents().get(0).getServices().get(0).getBindings().get(0);       
        assertNotNull(binding);
       
        OperationSelector operationSelector = binding.getOperationSelector();
        assertEquals(JSONRPCOperationSelector.class, operationSelector.getClass().getInterfaces()[0]);
    }
View Full Code Here

    }
   
    public Interceptor createInterceptor() {
        if(binding instanceof BindingRRB) {
            BindingRRB rrbBinding = (BindingRRB) binding;
            OperationSelector operationSelector = rrbBinding.getOperationSelector();
            if(operationSelector != null && operationSelector instanceof JSONRPCOperationSelector) {
                return new JSONRPCOperationSelectorInterceptor((HTTPBinding) binding, service.getRuntimeWire(binding), messageFactory);
            }
        }
       
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.assembly.OperationSelector

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.