org.apache.camel.component.stomp.StompComponentConfigurer 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 StompComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
@Override
public boolean configure(CamelContext camelContext, Object component, String name, Object value, boolean ignoreCase) {
if (ignoreCase) {
return doConfigureIgnoreCase(camelContext, component, name, value);
} else {
return doConfigure(camelContext, component, name, value);
}
}
private static boolean doConfigure(CamelContext camelContext, Object component, String name, Object value) {
switch (name) {
case "configuration": ((StompComponent) component).setConfiguration(property(camelContext, org.apache.camel.component.stomp.StompConfiguration.class, value)); return true;
case "brokerURL": ((StompComponent) component).setBrokerURL(property(camelContext, java.lang.String.class, value)); return true;
case "login": ((StompComponent) component).setLogin(property(camelContext, java.lang.String.class, value)); return true;
case "passcode": ((StompComponent) component).setPasscode(property(camelContext, java.lang.String.class, value)); return true;
case "host": ((StompComponent) component).setHost(property(camelContext, java.lang.String.class, value)); return true;
case "useGlobalSslContextParameters": ((StompComponent) component).setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true;
case "headerFilterStrategy": ((StompComponent) component).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "basicPropertyBinding": ((StompComponent) component).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
case "lazyStartProducer": ((StompComponent) component).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeErrorHandler": ((StompComponent) component).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
private static boolean doConfigureIgnoreCase(CamelContext camelContext, Object component, String name, Object value) {
switch (name.toLowerCase()) {
case "configuration": ((StompComponent) component).setConfiguration(property(camelContext, org.apache.camel.component.stomp.StompConfiguration.class, value)); return true;
case "brokerurl": ((StompComponent) component).setBrokerURL(property(camelContext, java.lang.String.class, value)); return true;
case "login": ((StompComponent) component).setLogin(property(camelContext, java.lang.String.class, value)); return true;
case "passcode": ((StompComponent) component).setPasscode(property(camelContext, java.lang.String.class, value)); return true;
case "host": ((StompComponent) component).setHost(property(camelContext, java.lang.String.class, value)); return true;
case "useglobalsslcontextparameters": ((StompComponent) component).setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true;
case "headerfilterstrategy": ((StompComponent) component).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "basicpropertybinding": ((StompComponent) component).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
case "lazystartproducer": ((StompComponent) component).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler": ((StompComponent) component).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy