Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.splunk;
import javax.annotation.processing.Generated;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
@SuppressWarnings("unchecked")
public class SplunkEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
SplunkEndpoint target = (SplunkEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "app": target.getConfiguration().setApp(property(camelContext, java.lang.String.class, value)); return true;
case "backofferrorthreshold":
case "backoffErrorThreshold": target.setBackoffErrorThreshold(property(camelContext, int.class, value)); return true;
case "backoffidlethreshold":
case "backoffIdleThreshold": target.setBackoffIdleThreshold(property(camelContext, int.class, value)); return true;
case "backoffmultiplier":
case "backoffMultiplier": target.setBackoffMultiplier(property(camelContext, int.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "connectiontimeout":
case "connectionTimeout": target.getConfiguration().setConnectionTimeout(property(camelContext, int.class, value)); return true;
case "count": target.getConfiguration().setCount(property(camelContext, int.class, value)); return true;
case "delay": target.setDelay(property(camelContext, long.class, value)); return true;
case "earliesttime":
case "earliestTime": target.getConfiguration().setEarliestTime(property(camelContext, java.lang.String.class, value)); return true;
case "eventhost":
case "eventHost": target.getConfiguration().setEventHost(property(camelContext, java.lang.String.class, value)); return true;
case "exceptionhandler":
case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern":
case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "greedy": target.setGreedy(property(camelContext, boolean.class, value)); return true;
case "host": target.getConfiguration().setHost(property(camelContext, java.lang.String.class, value)); return true;
case "index": target.getConfiguration().setIndex(property(camelContext, java.lang.String.class, value)); return true;
case "initearliesttime":
case "initEarliestTime": target.getConfiguration().setInitEarliestTime(property(camelContext, java.lang.String.class, value)); return true;
case "initialdelay":
case "initialDelay": target.setInitialDelay(property(camelContext, long.class, value)); return true;
case "latesttime":
case "latestTime": target.getConfiguration().setLatestTime(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "owner": target.getConfiguration().setOwner(property(camelContext, java.lang.String.class, value)); return true;
case "password": target.getConfiguration().setPassword(property(camelContext, java.lang.String.class, value)); return true;
case "pollstrategy":
case "pollStrategy": target.setPollStrategy(property(camelContext, org.apache.camel.spi.PollingConsumerPollStrategy.class, value)); return true;
case "port": target.getConfiguration().setPort(property(camelContext, int.class, value)); return true;
case "raw": target.getConfiguration().setRaw(property(camelContext, boolean.class, value)); return true;
case "repeatcount":
case "repeatCount": target.setRepeatCount(property(camelContext, long.class, value)); return true;
case "runlogginglevel":
case "runLoggingLevel": target.setRunLoggingLevel(property(camelContext, org.apache.camel.LoggingLevel.class, value)); return true;
case "savedsearch":
case "savedSearch": target.getConfiguration().setSavedSearch(property(camelContext, java.lang.String.class, value)); return true;
case "scheduledexecutorservice":
case "scheduledExecutorService": target.setScheduledExecutorService(property(camelContext, java.util.concurrent.ScheduledExecutorService.class, value)); return true;
case "scheduler": target.setScheduler(property(camelContext, java.lang.Object.class, value)); return true;
case "schedulerproperties":
case "schedulerProperties": target.setSchedulerProperties(property(camelContext, java.util.Map.class, value)); return true;
case "scheme": target.getConfiguration().setScheme(property(camelContext, java.lang.String.class, value)); return true;
case "search": target.getConfiguration().setSearch(property(camelContext, java.lang.String.class, value)); return true;
case "sendemptymessagewhenidle":
case "sendEmptyMessageWhenIdle": target.setSendEmptyMessageWhenIdle(property(camelContext, boolean.class, value)); return true;
case "source": target.getConfiguration().setSource(property(camelContext, java.lang.String.class, value)); return true;
case "sourcetype":
case "sourceType": target.getConfiguration().setSourceType(property(camelContext, java.lang.String.class, value)); return true;
case "sslprotocol":
case "sslProtocol": target.getConfiguration().setSslProtocol(property(camelContext, com.splunk.SSLSecurityProtocol.class, value)); return true;
case "startscheduler":
case "startScheduler": target.setStartScheduler(property(camelContext, boolean.class, value)); return true;
case "streaming": target.getConfiguration().setStreaming(property(camelContext, boolean.class, value)); return true;
case "tcpreceiverlocalport":
case "tcpReceiverLocalPort": target.getConfiguration().setTcpReceiverLocalPort(property(camelContext, java.lang.Integer.class, value)); return true;
case "tcpreceiverport":
case "tcpReceiverPort": target.getConfiguration().setTcpReceiverPort(property(camelContext, int.class, value)); return true;
case "timeunit":
case "timeUnit": target.setTimeUnit(property(camelContext, java.util.concurrent.TimeUnit.class, value)); return true;
case "token": target.getConfiguration().setToken(property(camelContext, java.lang.String.class, value)); return true;
case "usefixeddelay":
case "useFixedDelay": target.setUseFixedDelay(property(camelContext, boolean.class, value)); return true;
case "usesunhttpshandler":
case "useSunHttpsHandler": target.getConfiguration().setUseSunHttpsHandler(property(camelContext, boolean.class, value)); return true;
case "username": target.getConfiguration().setUsername(property(camelContext, java.lang.String.class, value)); return true;
case "validatecertificates":
case "validateCertificates": target.getConfiguration().setValidateCertificates(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "app": return java.lang.String.class;
case "backofferrorthreshold":
case "backoffErrorThreshold": return int.class;
case "backoffidlethreshold":
case "backoffIdleThreshold": return int.class;
case "backoffmultiplier":
case "backoffMultiplier": return int.class;
case "bridgeerrorhandler":
case "bridgeErrorHandler": return boolean.class;
case "connectiontimeout":
case "connectionTimeout": return int.class;
case "count": return int.class;
case "delay": return long.class;
case "earliesttime":
case "earliestTime": return java.lang.String.class;
case "eventhost":
case "eventHost": return java.lang.String.class;
case "exceptionhandler":
case "exceptionHandler": return org.apache.camel.spi.ExceptionHandler.class;
case "exchangepattern":
case "exchangePattern": return org.apache.camel.ExchangePattern.class;
case "greedy": return boolean.class;
case "host": return java.lang.String.class;
case "index": return java.lang.String.class;
case "initearliesttime":
case "initEarliestTime": return java.lang.String.class;
case "initialdelay":
case "initialDelay": return long.class;
case "latesttime":
case "latestTime": return java.lang.String.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "owner": return java.lang.String.class;
case "password": return java.lang.String.class;
case "pollstrategy":
case "pollStrategy": return org.apache.camel.spi.PollingConsumerPollStrategy.class;
case "port": return int.class;
case "raw": return boolean.class;
case "repeatcount":
case "repeatCount": return long.class;
case "runlogginglevel":
case "runLoggingLevel": return org.apache.camel.LoggingLevel.class;
case "savedsearch":
case "savedSearch": return java.lang.String.class;
case "scheduledexecutorservice":
case "scheduledExecutorService": return java.util.concurrent.ScheduledExecutorService.class;
case "scheduler": return java.lang.Object.class;
case "schedulerproperties":
case "schedulerProperties": return java.util.Map.class;
case "scheme": return java.lang.String.class;
case "search": return java.lang.String.class;
case "sendemptymessagewhenidle":
case "sendEmptyMessageWhenIdle": return boolean.class;
case "source": return java.lang.String.class;
case "sourcetype":
case "sourceType": return java.lang.String.class;
case "sslprotocol":
case "sslProtocol": return com.splunk.SSLSecurityProtocol.class;
case "startscheduler":
case "startScheduler": return boolean.class;
case "streaming": return boolean.class;
case "tcpreceiverlocalport":
case "tcpReceiverLocalPort": return java.lang.Integer.class;
case "tcpreceiverport":
case "tcpReceiverPort": return int.class;
case "timeunit":
case "timeUnit": return java.util.concurrent.TimeUnit.class;
case "token": return java.lang.String.class;
case "usefixeddelay":
case "useFixedDelay": return boolean.class;
case "usesunhttpshandler":
case "useSunHttpsHandler": return boolean.class;
case "username": return java.lang.String.class;
case "validatecertificates":
case "validateCertificates": return boolean.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
SplunkEndpoint target = (SplunkEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "app": return target.getConfiguration().getApp();
case "backofferrorthreshold":
case "backoffErrorThreshold": return target.getBackoffErrorThreshold();
case "backoffidlethreshold":
case "backoffIdleThreshold": return target.getBackoffIdleThreshold();
case "backoffmultiplier":
case "backoffMultiplier": return target.getBackoffMultiplier();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "connectiontimeout":
case "connectionTimeout": return target.getConfiguration().getConnectionTimeout();
case "count": return target.getConfiguration().getCount();
case "delay": return target.getDelay();
case "earliesttime":
case "earliestTime": return target.getConfiguration().getEarliestTime();
case "eventhost":
case "eventHost": return target.getConfiguration().getEventHost();
case "exceptionhandler":
case "exceptionHandler": return target.getExceptionHandler();
case "exchangepattern":
case "exchangePattern": return target.getExchangePattern();
case "greedy": return target.isGreedy();
case "host": return target.getConfiguration().getHost();
case "index": return target.getConfiguration().getIndex();
case "initearliesttime":
case "initEarliestTime": return target.getConfiguration().getInitEarliestTime();
case "initialdelay":
case "initialDelay": return target.getInitialDelay();
case "latesttime":
case "latestTime": return target.getConfiguration().getLatestTime();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "owner": return target.getConfiguration().getOwner();
case "password": return target.getConfiguration().getPassword();
case "pollstrategy":
case "pollStrategy": return target.getPollStrategy();
case "port": return target.getConfiguration().getPort();
case "raw": return target.getConfiguration().isRaw();
case "repeatcount":
case "repeatCount": return target.getRepeatCount();
case "runlogginglevel":
case "runLoggingLevel": return target.getRunLoggingLevel();
case "savedsearch":
case "savedSearch": return target.getConfiguration().getSavedSearch();
case "scheduledexecutorservice":
case "scheduledExecutorService": return target.getScheduledExecutorService();
case "scheduler": return target.getScheduler();
case "schedulerproperties":
case "schedulerProperties": return target.getSchedulerProperties();
case "scheme": return target.getConfiguration().getScheme();
case "search": return target.getConfiguration().getSearch();
case "sendemptymessagewhenidle":
case "sendEmptyMessageWhenIdle": return target.isSendEmptyMessageWhenIdle();
case "source": return target.getConfiguration().getSource();
case "sourcetype":
case "sourceType": return target.getConfiguration().getSourceType();
case "sslprotocol":
case "sslProtocol": return target.getConfiguration().getSslProtocol();
case "startscheduler":
case "startScheduler": return target.isStartScheduler();
case "streaming": return target.getConfiguration().isStreaming();
case "tcpreceiverlocalport":
case "tcpReceiverLocalPort": return target.getConfiguration().getTcpReceiverLocalPort();
case "tcpreceiverport":
case "tcpReceiverPort": return target.getConfiguration().getTcpReceiverPort();
case "timeunit":
case "timeUnit": return target.getTimeUnit();
case "token": return target.getConfiguration().getToken();
case "usefixeddelay":
case "useFixedDelay": return target.isUseFixedDelay();
case "usesunhttpshandler":
case "useSunHttpsHandler": return target.getConfiguration().isUseSunHttpsHandler();
case "username": return target.getConfiguration().getUsername();
case "validatecertificates":
case "validateCertificates": return target.getConfiguration().isValidateCertificates();
default: return null;
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "schedulerproperties":
case "schedulerProperties": return java.lang.Object.class;
default: return null;
}
}
}