
org.apache.camel.component.cxf.jaxrs.CxfRsEndpointConfigurer Maven / Gradle / Ivy
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.cxf.jaxrs;
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 CxfRsEndpointConfigurer 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 "bus": ((CxfRsEndpoint) endpoint).setBus(property(camelContext, org.apache.cxf.Bus.class, value)); return true;
case "resourceClasses": ((CxfRsEndpoint) endpoint).setResourceClasses(property(camelContext, java.util.List.class, value)); return true;
case "serviceBeans": ((CxfRsEndpoint) endpoint).setServiceBeans(property(camelContext, java.lang.String.class, value)); return true;
case "modelRef": ((CxfRsEndpoint) endpoint).setModelRef(property(camelContext, java.lang.String.class, value)); return true;
case "bindingStyle": ((CxfRsEndpoint) endpoint).setBindingStyle(property(camelContext, org.apache.camel.component.cxf.jaxrs.BindingStyle.class, value)); return true;
case "publishedEndpointUrl": ((CxfRsEndpoint) endpoint).setPublishedEndpointUrl(property(camelContext, java.lang.String.class, value)); return true;
case "headerFilterStrategy": ((CxfRsEndpoint) endpoint).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "binding": ((CxfRsEndpoint) endpoint).setBinding(property(camelContext, org.apache.camel.component.cxf.jaxrs.CxfRsBinding.class, value)); return true;
case "providers": ((CxfRsEndpoint) endpoint).setProviders(property(camelContext, java.lang.String.class, value)); return true;
case "schemaLocations": ((CxfRsEndpoint) endpoint).setSchemaLocations(property(camelContext, java.util.List.class, value)); return true;
case "features": ((CxfRsEndpoint) endpoint).setFeatures(property(camelContext, java.util.List.class, value)); return true;
case "httpClientAPI": ((CxfRsEndpoint) endpoint).setHttpClientAPI(property(camelContext, boolean.class, value)); return true;
case "ignoreDeleteMethodMessageBody": ((CxfRsEndpoint) endpoint).setIgnoreDeleteMethodMessageBody(property(camelContext, boolean.class, value)); return true;
case "throwExceptionOnFailure": ((CxfRsEndpoint) endpoint).setThrowExceptionOnFailure(property(camelContext, boolean.class, value)); return true;
case "maxClientCacheSize": ((CxfRsEndpoint) endpoint).setMaxClientCacheSize(property(camelContext, int.class, value)); return true;
case "sslContextParameters": ((CxfRsEndpoint) endpoint).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
case "hostnameVerifier": ((CxfRsEndpoint) endpoint).setHostnameVerifier(property(camelContext, javax.net.ssl.HostnameVerifier.class, value)); return true;
case "loggingFeatureEnabled": ((CxfRsEndpoint) endpoint).setLoggingFeatureEnabled(property(camelContext, boolean.class, value)); return true;
case "loggingSizeLimit": ((CxfRsEndpoint) endpoint).setLoggingSizeLimit(property(camelContext, int.class, value)); return true;
case "skipFaultLogging": ((CxfRsEndpoint) endpoint).setSkipFaultLogging(property(camelContext, boolean.class, value)); return true;
case "continuationTimeout": ((CxfRsEndpoint) endpoint).setContinuationTimeout(property(camelContext, long.class, value)); return true;
case "defaultBus": ((CxfRsEndpoint) endpoint).setDefaultBus(property(camelContext, boolean.class, value)); return true;
case "performInvocation": ((CxfRsEndpoint) endpoint).setPerformInvocation(property(camelContext, boolean.class, value)); return true;
case "propagateContexts": ((CxfRsEndpoint) endpoint).setPropagateContexts(property(camelContext, boolean.class, value)); return true;
case "cxfRsConfigurer": ((CxfRsEndpoint) endpoint).setCxfRsConfigurer(property(camelContext, org.apache.camel.component.cxf.jaxrs.CxfRsConfigurer.class, value)); return true;
case "cookieHandler": ((CxfRsEndpoint) endpoint).setCookieHandler(property(camelContext, org.apache.camel.http.common.cookie.CookieHandler.class, value)); return true;
case "lazyStartProducer": ((CxfRsEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeErrorHandler": ((CxfRsEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionHandler": ((CxfRsEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangePattern": ((CxfRsEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((CxfRsEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicPropertyBinding": ((CxfRsEndpoint) 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 "bus": ((CxfRsEndpoint) endpoint).setBus(property(camelContext, org.apache.cxf.Bus.class, value)); return true;
case "resourceclasses": ((CxfRsEndpoint) endpoint).setResourceClasses(property(camelContext, java.util.List.class, value)); return true;
case "servicebeans": ((CxfRsEndpoint) endpoint).setServiceBeans(property(camelContext, java.lang.String.class, value)); return true;
case "modelref": ((CxfRsEndpoint) endpoint).setModelRef(property(camelContext, java.lang.String.class, value)); return true;
case "bindingstyle": ((CxfRsEndpoint) endpoint).setBindingStyle(property(camelContext, org.apache.camel.component.cxf.jaxrs.BindingStyle.class, value)); return true;
case "publishedendpointurl": ((CxfRsEndpoint) endpoint).setPublishedEndpointUrl(property(camelContext, java.lang.String.class, value)); return true;
case "headerfilterstrategy": ((CxfRsEndpoint) endpoint).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "binding": ((CxfRsEndpoint) endpoint).setBinding(property(camelContext, org.apache.camel.component.cxf.jaxrs.CxfRsBinding.class, value)); return true;
case "providers": ((CxfRsEndpoint) endpoint).setProviders(property(camelContext, java.lang.String.class, value)); return true;
case "schemalocations": ((CxfRsEndpoint) endpoint).setSchemaLocations(property(camelContext, java.util.List.class, value)); return true;
case "features": ((CxfRsEndpoint) endpoint).setFeatures(property(camelContext, java.util.List.class, value)); return true;
case "httpclientapi": ((CxfRsEndpoint) endpoint).setHttpClientAPI(property(camelContext, boolean.class, value)); return true;
case "ignoredeletemethodmessagebody": ((CxfRsEndpoint) endpoint).setIgnoreDeleteMethodMessageBody(property(camelContext, boolean.class, value)); return true;
case "throwexceptiononfailure": ((CxfRsEndpoint) endpoint).setThrowExceptionOnFailure(property(camelContext, boolean.class, value)); return true;
case "maxclientcachesize": ((CxfRsEndpoint) endpoint).setMaxClientCacheSize(property(camelContext, int.class, value)); return true;
case "sslcontextparameters": ((CxfRsEndpoint) endpoint).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
case "hostnameverifier": ((CxfRsEndpoint) endpoint).setHostnameVerifier(property(camelContext, javax.net.ssl.HostnameVerifier.class, value)); return true;
case "loggingfeatureenabled": ((CxfRsEndpoint) endpoint).setLoggingFeatureEnabled(property(camelContext, boolean.class, value)); return true;
case "loggingsizelimit": ((CxfRsEndpoint) endpoint).setLoggingSizeLimit(property(camelContext, int.class, value)); return true;
case "skipfaultlogging": ((CxfRsEndpoint) endpoint).setSkipFaultLogging(property(camelContext, boolean.class, value)); return true;
case "continuationtimeout": ((CxfRsEndpoint) endpoint).setContinuationTimeout(property(camelContext, long.class, value)); return true;
case "defaultbus": ((CxfRsEndpoint) endpoint).setDefaultBus(property(camelContext, boolean.class, value)); return true;
case "performinvocation": ((CxfRsEndpoint) endpoint).setPerformInvocation(property(camelContext, boolean.class, value)); return true;
case "propagatecontexts": ((CxfRsEndpoint) endpoint).setPropagateContexts(property(camelContext, boolean.class, value)); return true;
case "cxfrsconfigurer": ((CxfRsEndpoint) endpoint).setCxfRsConfigurer(property(camelContext, org.apache.camel.component.cxf.jaxrs.CxfRsConfigurer.class, value)); return true;
case "cookiehandler": ((CxfRsEndpoint) endpoint).setCookieHandler(property(camelContext, org.apache.camel.http.common.cookie.CookieHandler.class, value)); return true;
case "lazystartproducer": ((CxfRsEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler": ((CxfRsEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler": ((CxfRsEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern": ((CxfRsEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((CxfRsEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicpropertybinding": ((CxfRsEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy