org.apache.camel.component.jira.JiraEndpointConfigurer Maven / Gradle / Ivy
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.jira;
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 JiraEndpointConfigurer 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 "jql": ((JiraEndpoint) endpoint).setJql(property(camelContext, java.lang.String.class, value)); return true;
case "maxResults": ((JiraEndpoint) endpoint).setMaxResults(property(camelContext, java.lang.Integer.class, value)); return true;
case "verificationCode": ((JiraEndpoint) endpoint).getConfiguration().setVerificationCode(property(camelContext, java.lang.String.class, value)); return true;
case "consumerKey": ((JiraEndpoint) endpoint).getConfiguration().setConsumerKey(property(camelContext, java.lang.String.class, value)); return true;
case "privateKey": ((JiraEndpoint) endpoint).getConfiguration().setPrivateKey(property(camelContext, java.lang.String.class, value)); return true;
case "accessToken": ((JiraEndpoint) endpoint).getConfiguration().setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
case "jiraUrl": ((JiraEndpoint) endpoint).getConfiguration().setJiraUrl(property(camelContext, java.lang.String.class, value)); return true;
case "username": ((JiraEndpoint) endpoint).getConfiguration().setUsername(property(camelContext, java.lang.String.class, value)); return true;
case "password": ((JiraEndpoint) endpoint).getConfiguration().setPassword(property(camelContext, java.lang.String.class, value)); return true;
case "delay": ((JiraEndpoint) endpoint).getConfiguration().setDelay(property(camelContext, java.lang.Integer.class, value)); return true;
case "lazyStartProducer": ((JiraEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeErrorHandler": ((JiraEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionHandler": ((JiraEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangePattern": ((JiraEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((JiraEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicPropertyBinding": ((JiraEndpoint) 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 "jql": ((JiraEndpoint) endpoint).setJql(property(camelContext, java.lang.String.class, value)); return true;
case "maxresults": ((JiraEndpoint) endpoint).setMaxResults(property(camelContext, java.lang.Integer.class, value)); return true;
case "verificationcode": ((JiraEndpoint) endpoint).getConfiguration().setVerificationCode(property(camelContext, java.lang.String.class, value)); return true;
case "consumerkey": ((JiraEndpoint) endpoint).getConfiguration().setConsumerKey(property(camelContext, java.lang.String.class, value)); return true;
case "privatekey": ((JiraEndpoint) endpoint).getConfiguration().setPrivateKey(property(camelContext, java.lang.String.class, value)); return true;
case "accesstoken": ((JiraEndpoint) endpoint).getConfiguration().setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
case "jiraurl": ((JiraEndpoint) endpoint).getConfiguration().setJiraUrl(property(camelContext, java.lang.String.class, value)); return true;
case "username": ((JiraEndpoint) endpoint).getConfiguration().setUsername(property(camelContext, java.lang.String.class, value)); return true;
case "password": ((JiraEndpoint) endpoint).getConfiguration().setPassword(property(camelContext, java.lang.String.class, value)); return true;
case "delay": ((JiraEndpoint) endpoint).getConfiguration().setDelay(property(camelContext, java.lang.Integer.class, value)); return true;
case "lazystartproducer": ((JiraEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler": ((JiraEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler": ((JiraEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern": ((JiraEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((JiraEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicpropertybinding": ((JiraEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy