| /* Generated by camel build tools - do NOT edit this file! */ |
| package org.apache.camel.component.knative; |
| |
| import org.apache.camel.CamelContext; |
| import org.apache.camel.spi.GeneratedPropertyConfigurer; |
| import org.apache.camel.support.component.PropertyConfigurerSupport; |
| |
| /** |
| * Generated by camel build tools - do NOT edit this file! |
| */ |
| @SuppressWarnings("unchecked") |
| public class KnativeEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer { |
| |
| @Override |
| public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { |
| KnativeEndpoint target = (KnativeEndpoint) obj; |
| switch (ignoreCase ? name.toLowerCase() : name) { |
| case "ceoverride": |
| case "ceOverride": target.getConfiguration().setCeOverride(property(camelContext, java.util.Map.class, value)); return true; |
| case "cloudeventsspecversion": |
| case "cloudEventsSpecVersion": target.getConfiguration().setCloudEventsSpecVersion(property(camelContext, java.lang.String.class, value)); return true; |
| case "cloudeventstype": |
| case "cloudEventsType": target.getConfiguration().setCloudEventsType(property(camelContext, java.lang.String.class, value)); return true; |
| case "environment": target.getConfiguration().setEnvironment(property(camelContext, org.apache.camel.component.knative.spi.KnativeEnvironment.class, value)); return true; |
| case "filters": target.getConfiguration().setFilters(property(camelContext, java.util.Map.class, value)); return true; |
| case "servicename": |
| case "serviceName": target.getConfiguration().setServiceName(property(camelContext, java.lang.String.class, value)); return true; |
| case "transportoptions": |
| case "transportOptions": target.getConfiguration().setTransportOptions(property(camelContext, java.util.Map.class, value)); return true; |
| case "bridgeerrorhandler": |
| case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true; |
| case "replywithcloudevent": |
| case "replyWithCloudEvent": target.getConfiguration().setReplyWithCloudEvent(property(camelContext, boolean.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 "lazystartproducer": |
| case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; |
| case "apiversion": |
| case "apiVersion": target.getConfiguration().setApiVersion(property(camelContext, java.lang.String.class, value)); return true; |
| case "basicpropertybinding": |
| case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true; |
| case "kind": target.getConfiguration().setKind(property(camelContext, java.lang.String.class, value)); return true; |
| case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true; |
| default: return false; |
| } |
| } |
| |
| } |
| |