Package org.switchyard.config.model.composer.v1

Examples of org.switchyard.config.model.composer.v1.V1MessageComposerModel


       
        if (name.equals(JCAConstants.BINDING + "." + JCAConstants.JCA)) {
           return new V1JCABindingModel(config, getDescriptor());
        }
        if (name.equals(ContextMapperModel.CONTEXT_MAPPER)) {
            return new V1ContextMapperModel(config, getDescriptor());
        }
        if (name.equals(MessageComposerModel.MESSAGE_COMPOSER)) {
            return new V1MessageComposerModel(config, getDescriptor());
        }
        if (name.equals(JCAConstants.OUTBOUND_CONNECTION)) {
View Full Code Here


     * @return the ContextMapper instance
     */
    public static final <D extends BindingData> ContextMapper<D> getContextMapper(Class<D> bindingDataType, ContextMapperModel contextMapperModel) {
        if (contextMapperModel == null) {
            // If you don't specify a ContexMapperInfo, your ContextMapper will not match anything!
            contextMapperModel = new V1ContextMapperModel(SwitchYardNamespace.DEFAULT.uri()).setExcludes(".*");
        }
        return ContextMapperFactory.getContextMapperFactory(bindingDataType).newContextMapper(contextMapperModel);
    }
View Full Code Here

    @Override
    public Model read(Configuration config) {
        String name = config.getName();
        Descriptor desc = getDescriptor();
        if (name.equals(ContextMapperModel.CONTEXT_MAPPER)) {
            return new V1ContextMapperModel(config, desc);
        } else if (name.equals(MessageComposerModel.MESSAGE_COMPOSER)) {
            return new V1MessageComposerModel(config, desc);
        }
        return super.read(config);
    }
View Full Code Here

        Descriptor desc = getDescriptor();
        String name = config.getName();
        if (name.startsWith(BindingModel.BINDING)) {
            return new V1RESTEasyBindingModel(config, desc);
        } else if (name.equals(ContextMapperModel.CONTEXT_MAPPER)) {
            return new V1ContextMapperModel(config, desc);
        } else if (name.equals(MessageComposerModel.MESSAGE_COMPOSER)) {
            return new V1MessageComposerModel(config, desc);
        } else if (name.equals(RESTEasyName.basic.name())) {
            return new V1BasicAuthModel(config, desc);
        } else if (name.equals(RESTEasyName.ntlm.name())) {
View Full Code Here

    public void contextMapperMapToTest() {
        MockHandler mock = new MockHandler().forwardInToOut();
        _serviceDomain.registerService(_serviceName, _metadata, mock);
        _serviceDomain.registerServiceReference(_serviceName, _metadata);
        InboundHandler<?> handler = createInboundHandler(_serviceName, "direct:input", "direct",
                new V1ContextMapperModel(SwitchYardNamespace.DEFAULT.uri()).setClazz(Mapper.class.getName()));
        handler.start();

        sendBody("direct:input", PAYLOAD);
        mock.waitForOKMessage();
        List<Exchange> exchanges = new ArrayList<Exchange>();
View Full Code Here

        Descriptor desc = getDescriptor();
        String name = config.getName();
        if (name.startsWith(BindingModel.BINDING)) {
            return new V1HttpBindingModel(config, getDescriptor());
        } else if (name.equals(ContextMapperModel.CONTEXT_MAPPER)) {
            return new V1ContextMapperModel(config, getDescriptor());
        } else if (name.equals(MessageComposerModel.MESSAGE_COMPOSER)) {
            return new V1MessageComposerModel(config, getDescriptor());
        } else if (name.equals(HttpName.basic.name())) {
            return new V1BasicAuthModel(config, getDescriptor());
        } else if (name.equals(HttpName.ntlm.name())) {
View Full Code Here

        }
        if (name.equals(ContextMapperModel.CONTEXT_MAPPER)) {
            return new V1ContextMapperModel(config, getDescriptor());
        }
        if (name.equals(MessageComposerModel.MESSAGE_COMPOSER)) {
            return new V1MessageComposerModel(config, getDescriptor());
        }
        if (name.equals(JCAConstants.OUTBOUND_CONNECTION)) {
            return new V1OutboundConnectionModel(config, getDescriptor());
        }
        if (name.equals(JCAConstants.INBOUND_CONNECTION)) {
View Full Code Here

        String name = config.getName();
        Descriptor desc = getDescriptor();
        if (name.equals(ContextMapperModel.CONTEXT_MAPPER)) {
            return new V1ContextMapperModel(config, desc);
        } else if (name.equals(MessageComposerModel.MESSAGE_COMPOSER)) {
            return new V1MessageComposerModel(config, desc);
        }
        return super.read(config);
    }
View Full Code Here

        if (name.startsWith(BindingModel.BINDING)) {
            return new V1RESTEasyBindingModel(config, desc);
        } else if (name.equals(ContextMapperModel.CONTEXT_MAPPER)) {
            return new V1ContextMapperModel(config, desc);
        } else if (name.equals(MessageComposerModel.MESSAGE_COMPOSER)) {
            return new V1MessageComposerModel(config, desc);
        } else if (name.equals(RESTEasyName.basic.name())) {
            return new V1BasicAuthModel(config, desc);
        } else if (name.equals(RESTEasyName.ntlm.name())) {
            return new V1NtlmAuthModel(config, desc);
        } else if (name.equals(RESTEasyName.proxy.name())) {
View Full Code Here

    public void messageComposerComposeTest() {
        MockHandler mock = new MockHandler().forwardInToOut();
        _serviceDomain.registerService(_serviceName, _metadata, mock);
        _serviceDomain.registerServiceReference(_serviceName, _metadata);
        InboundHandler<?> handler = createInboundHandler(_serviceName, "direct:input", "input",
                new V1MessageComposerModel(SwitchYardNamespace.DEFAULT.uri()).setClazz(Composer.class.getName()));
        handler.start();

        sendBody("direct:input", PAYLOAD);
        mock.waitForOKMessage();
        List<Exchange> exchanges = new ArrayList<Exchange>();
View Full Code Here

TOP

Related Classes of org.switchyard.config.model.composer.v1.V1MessageComposerModel

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.