Package org.switchyard.config.model.composer

Examples of org.switchyard.config.model.composer.ContextMapperModel


    private String[] getCamelLabels() {
        if (_camelLabels == null) {
            List<String> list = new ArrayList<String>();
            list.add(ComponentLabel.CAMEL.label());
            ContextMapperModel cm_model = getModel();
            if (cm_model != null) {
                BindingModel b_model = cm_model.getBindingModel();
                if (b_model != null) {
                    String e_label = EndpointLabel.toLabel(b_model.getType());
                    if (e_label != null) {
                        list.add(e_label);
                    }
View Full Code Here


     * Uses the {@link Composition} class to create a Camel-specific MessageComposer.
     * @param cbm a CamelBindingModel to get configuration details from
     * @return the MessageComposer
     */
    public static MessageComposer<CamelBindingData> getMessageComposer(CamelBindingModel cbm) {
        ContextMapperModel cmm = cbm != null ? cbm.getContextMapper() : null;
        MessageComposerModel mcm = cbm != null ? cbm.getMessageComposer() : null;
        return Composition.getMessageComposer(CamelBindingData.class, cmm, mcm);
    }
View Full Code Here

     * Uses the {@link Composition} class to create a RESTEasy-specific MessageComposer.
     * @param rebm a RESTEasyBindingModel to get configuration details from
     * @return the MessageComposer
     */
    public static MessageComposer<RESTEasyBindingData> getMessageComposer(RESTEasyBindingModel rebm) {
        ContextMapperModel cmm = rebm != null ? rebm.getContextMapper() : null;
        MessageComposerModel mcm = rebm != null ? rebm.getMessageComposer() : null;
        return Composition.getMessageComposer(RESTEasyBindingData.class, cmm, mcm);
    }
View Full Code Here

     * @param bindingDataType {@link Class} for binding data type
     * @param <D> jca binding data type
     * @return the MessageComposer
     */
    public static <D extends JCABindingData> MessageComposer<D> getMessageComposer(JCABindingModel jcabm, Class<D> bindingDataType) {
        ContextMapperModel cmm = jcabm != null ? jcabm.getContextMapper() : null;
        MessageComposerModel mcm = jcabm != null ? jcabm.getMessageComposer() : null;
        return Composition.getMessageComposer(bindingDataType, cmm, mcm);
    }
View Full Code Here

     * Uses the {@link Composition} class to create a HTTP-specific MessageComposer.
     * @param hbm a HttpBindingModel to get configuration details from
     * @return the MessageComposer
     */
    public static MessageComposer<HttpBindingData> getMessageComposer(HttpBindingModel hbm) {
        ContextMapperModel cmm = hbm != null ? hbm.getContextMapper() : null;
        MessageComposerModel mcm = hbm != null ? hbm.getMessageComposer() : null;
        MessageComposer<HttpBindingData> mc = Composition.getMessageComposer(HttpBindingData.class, cmm, mcm);
        if (mc instanceof HttpMessageComposer && mcm != null) {
            HttpMessageComposer smc = (HttpMessageComposer)mc;
            smc.setComposerConfig(mcm);
View Full Code Here

TOP

Related Classes of org.switchyard.config.model.composer.ContextMapperModel

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.