org.apache.camel.component.hipchat.HipchatEndpointConfigurer Maven / Gradle / Ivy
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.hipchat;
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 HipchatEndpointConfigurer 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 "authToken": ((HipchatEndpoint) endpoint).getConfiguration().setAuthToken(property(camelContext, java.lang.String.class, value)); return true;
case "consumeUsers": ((HipchatEndpoint) endpoint).getConfiguration().setConsumeUsers(property(camelContext, java.lang.String.class, value)); return true;
case "httpClient": ((HipchatEndpoint) endpoint).getConfiguration().setHttpClient(property(camelContext, org.apache.http.impl.client.CloseableHttpClient.class, value)); return true;
case "startScheduler": ((HipchatEndpoint) endpoint).setStartScheduler(property(camelContext, boolean.class, value)); return true;
case "initialDelay": ((HipchatEndpoint) endpoint).setInitialDelay(property(camelContext, long.class, value)); return true;
case "delay": ((HipchatEndpoint) endpoint).setDelay(property(camelContext, long.class, value)); return true;
case "timeUnit": ((HipchatEndpoint) endpoint).setTimeUnit(property(camelContext, java.util.concurrent.TimeUnit.class, value)); return true;
case "useFixedDelay": ((HipchatEndpoint) endpoint).setUseFixedDelay(property(camelContext, boolean.class, value)); return true;
case "pollStrategy": ((HipchatEndpoint) endpoint).setPollStrategy(property(camelContext, org.apache.camel.spi.PollingConsumerPollStrategy.class, value)); return true;
case "runLoggingLevel": ((HipchatEndpoint) endpoint).setRunLoggingLevel(property(camelContext, org.apache.camel.LoggingLevel.class, value)); return true;
case "sendEmptyMessageWhenIdle": ((HipchatEndpoint) endpoint).setSendEmptyMessageWhenIdle(property(camelContext, boolean.class, value)); return true;
case "greedy": ((HipchatEndpoint) endpoint).setGreedy(property(camelContext, boolean.class, value)); return true;
case "scheduler": ((HipchatEndpoint) endpoint).setScheduler(property(camelContext, java.lang.String.class, value)); return true;
case "schedulerProperties": ((HipchatEndpoint) endpoint).setSchedulerProperties(property(camelContext, java.util.Map.class, value)); return true;
case "scheduledExecutorService": ((HipchatEndpoint) endpoint).setScheduledExecutorService(property(camelContext, java.util.concurrent.ScheduledExecutorService.class, value)); return true;
case "backoffMultiplier": ((HipchatEndpoint) endpoint).setBackoffMultiplier(property(camelContext, int.class, value)); return true;
case "backoffIdleThreshold": ((HipchatEndpoint) endpoint).setBackoffIdleThreshold(property(camelContext, int.class, value)); return true;
case "backoffErrorThreshold": ((HipchatEndpoint) endpoint).setBackoffErrorThreshold(property(camelContext, int.class, value)); return true;
case "lazyStartProducer": ((HipchatEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeErrorHandler": ((HipchatEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionHandler": ((HipchatEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangePattern": ((HipchatEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((HipchatEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicPropertyBinding": ((HipchatEndpoint) 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 "authtoken": ((HipchatEndpoint) endpoint).getConfiguration().setAuthToken(property(camelContext, java.lang.String.class, value)); return true;
case "consumeusers": ((HipchatEndpoint) endpoint).getConfiguration().setConsumeUsers(property(camelContext, java.lang.String.class, value)); return true;
case "httpclient": ((HipchatEndpoint) endpoint).getConfiguration().setHttpClient(property(camelContext, org.apache.http.impl.client.CloseableHttpClient.class, value)); return true;
case "startscheduler": ((HipchatEndpoint) endpoint).setStartScheduler(property(camelContext, boolean.class, value)); return true;
case "initialdelay": ((HipchatEndpoint) endpoint).setInitialDelay(property(camelContext, long.class, value)); return true;
case "delay": ((HipchatEndpoint) endpoint).setDelay(property(camelContext, long.class, value)); return true;
case "timeunit": ((HipchatEndpoint) endpoint).setTimeUnit(property(camelContext, java.util.concurrent.TimeUnit.class, value)); return true;
case "usefixeddelay": ((HipchatEndpoint) endpoint).setUseFixedDelay(property(camelContext, boolean.class, value)); return true;
case "pollstrategy": ((HipchatEndpoint) endpoint).setPollStrategy(property(camelContext, org.apache.camel.spi.PollingConsumerPollStrategy.class, value)); return true;
case "runlogginglevel": ((HipchatEndpoint) endpoint).setRunLoggingLevel(property(camelContext, org.apache.camel.LoggingLevel.class, value)); return true;
case "sendemptymessagewhenidle": ((HipchatEndpoint) endpoint).setSendEmptyMessageWhenIdle(property(camelContext, boolean.class, value)); return true;
case "greedy": ((HipchatEndpoint) endpoint).setGreedy(property(camelContext, boolean.class, value)); return true;
case "scheduler": ((HipchatEndpoint) endpoint).setScheduler(property(camelContext, java.lang.String.class, value)); return true;
case "schedulerproperties": ((HipchatEndpoint) endpoint).setSchedulerProperties(property(camelContext, java.util.Map.class, value)); return true;
case "scheduledexecutorservice": ((HipchatEndpoint) endpoint).setScheduledExecutorService(property(camelContext, java.util.concurrent.ScheduledExecutorService.class, value)); return true;
case "backoffmultiplier": ((HipchatEndpoint) endpoint).setBackoffMultiplier(property(camelContext, int.class, value)); return true;
case "backoffidlethreshold": ((HipchatEndpoint) endpoint).setBackoffIdleThreshold(property(camelContext, int.class, value)); return true;
case "backofferrorthreshold": ((HipchatEndpoint) endpoint).setBackoffErrorThreshold(property(camelContext, int.class, value)); return true;
case "lazystartproducer": ((HipchatEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler": ((HipchatEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler": ((HipchatEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern": ((HipchatEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((HipchatEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicpropertybinding": ((HipchatEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy