All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.stomp.StompEndpointConfigurer Maven / Gradle / Ivy

/* Generated by org.apache.camel:apt */
package org.apache.camel.component.stomp;

import java.util.HashMap;
import java.util.Map;

import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.support.component.PropertyConfigurerSupport;

/**
 * Source code generated by org.apache.camel:apt
 */
@SuppressWarnings("unchecked")
public class StompEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {

    @Override
    public boolean configure(CamelContext camelContext, Object endpoint, String name, Object value, boolean ignoreCase) {
        if (ignoreCase) {
            return doConfigureIgnoreCase(camelContext, endpoint, name, value);
        } else {
            return doConfigure(camelContext, endpoint, name, value);
        }
    }

    private static boolean doConfigure(CamelContext camelContext, Object endpoint, String name, Object value) {
        switch (name) {
        case "brokerURL": ((StompEndpoint) endpoint).getConfiguration().setBrokerURL(property(camelContext, java.lang.String.class, value)); return true;
        case "login": ((StompEndpoint) endpoint).getConfiguration().setLogin(property(camelContext, java.lang.String.class, value)); return true;
        case "passcode": ((StompEndpoint) endpoint).getConfiguration().setPasscode(property(camelContext, java.lang.String.class, value)); return true;
        case "host": ((StompEndpoint) endpoint).getConfiguration().setHost(property(camelContext, java.lang.String.class, value)); return true;
        case "sslContextParameters": ((StompEndpoint) endpoint).getConfiguration().setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        case "version": ((StompEndpoint) endpoint).getConfiguration().setVersion(property(camelContext, java.lang.String.class, value)); return true;
        case "headerFilterStrategy": ((StompEndpoint) endpoint).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
        case "lazyStartProducer": ((StompEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "bridgeErrorHandler": ((StompEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "exceptionHandler": ((StompEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangePattern": ((StompEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "synchronous": ((StompEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
        case "basicPropertyBinding": ((StompEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
            default: return false;
        }
    }

    private static boolean doConfigureIgnoreCase(CamelContext camelContext, Object endpoint, String name, Object value) {
        switch (name.toLowerCase()) {
        case "brokerurl": ((StompEndpoint) endpoint).getConfiguration().setBrokerURL(property(camelContext, java.lang.String.class, value)); return true;
        case "login": ((StompEndpoint) endpoint).getConfiguration().setLogin(property(camelContext, java.lang.String.class, value)); return true;
        case "passcode": ((StompEndpoint) endpoint).getConfiguration().setPasscode(property(camelContext, java.lang.String.class, value)); return true;
        case "host": ((StompEndpoint) endpoint).getConfiguration().setHost(property(camelContext, java.lang.String.class, value)); return true;
        case "sslcontextparameters": ((StompEndpoint) endpoint).getConfiguration().setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        case "version": ((StompEndpoint) endpoint).getConfiguration().setVersion(property(camelContext, java.lang.String.class, value)); return true;
        case "headerfilterstrategy": ((StompEndpoint) endpoint).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
        case "lazystartproducer": ((StompEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "bridgeerrorhandler": ((StompEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "exceptionhandler": ((StompEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangepattern": ((StompEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "synchronous": ((StompEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
        case "basicpropertybinding": ((StompEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
            default: return false;
        }
    }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy