org.apache.camel.component.websocket.WebsocketComponentConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-websocket Show documentation
Show all versions of camel-websocket Show documentation
Camel WebSocket using Jetty
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.websocket;
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!
*/
@SuppressWarnings("unchecked")
public class WebsocketComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
WebsocketComponent target = (WebsocketComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "autowiredenabled":
case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "enablejmx":
case "enableJmx": target.setEnableJmx(property(camelContext, boolean.class, value)); return true;
case "host": target.setHost(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "maxthreads":
case "maxThreads": target.setMaxThreads(property(camelContext, java.lang.Integer.class, value)); return true;
case "minthreads":
case "minThreads": target.setMinThreads(property(camelContext, java.lang.Integer.class, value)); return true;
case "port": target.setPort(property(camelContext, java.lang.Integer.class, value)); return true;
case "sslcontextparameters":
case "sslContextParameters": target.setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
case "sslkeypassword":
case "sslKeyPassword": target.setSslKeyPassword(property(camelContext, java.lang.String.class, value)); return true;
case "sslkeystore":
case "sslKeystore": target.setSslKeystore(property(camelContext, java.lang.String.class, value)); return true;
case "sslpassword":
case "sslPassword": target.setSslPassword(property(camelContext, java.lang.String.class, value)); return true;
case "staticresources":
case "staticResources": target.setStaticResources(property(camelContext, java.lang.String.class, value)); return true;
case "subprotocol": target.setSubprotocol(property(camelContext, java.lang.String.class, value)); return true;
case "threadpool":
case "threadPool": target.setThreadPool(property(camelContext, org.eclipse.jetty.util.thread.ThreadPool.class, value)); return true;
case "useglobalsslcontextparameters":
case "useGlobalSslContextParameters": target.setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "autowiredenabled":
case "autowiredEnabled": return boolean.class;
case "bridgeerrorhandler":
case "bridgeErrorHandler": return boolean.class;
case "enablejmx":
case "enableJmx": return boolean.class;
case "host": return java.lang.String.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "maxthreads":
case "maxThreads": return java.lang.Integer.class;
case "minthreads":
case "minThreads": return java.lang.Integer.class;
case "port": return java.lang.Integer.class;
case "sslcontextparameters":
case "sslContextParameters": return org.apache.camel.support.jsse.SSLContextParameters.class;
case "sslkeypassword":
case "sslKeyPassword": return java.lang.String.class;
case "sslkeystore":
case "sslKeystore": return java.lang.String.class;
case "sslpassword":
case "sslPassword": return java.lang.String.class;
case "staticresources":
case "staticResources": return java.lang.String.class;
case "subprotocol": return java.lang.String.class;
case "threadpool":
case "threadPool": return org.eclipse.jetty.util.thread.ThreadPool.class;
case "useglobalsslcontextparameters":
case "useGlobalSslContextParameters": return boolean.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
WebsocketComponent target = (WebsocketComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "autowiredenabled":
case "autowiredEnabled": return target.isAutowiredEnabled();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "enablejmx":
case "enableJmx": return target.isEnableJmx();
case "host": return target.getHost();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "maxthreads":
case "maxThreads": return target.getMaxThreads();
case "minthreads":
case "minThreads": return target.getMinThreads();
case "port": return target.getPort();
case "sslcontextparameters":
case "sslContextParameters": return target.getSslContextParameters();
case "sslkeypassword":
case "sslKeyPassword": return target.getSslKeyPassword();
case "sslkeystore":
case "sslKeystore": return target.getSslKeystore();
case "sslpassword":
case "sslPassword": return target.getSslPassword();
case "staticresources":
case "staticResources": return target.getStaticResources();
case "subprotocol": return target.getSubprotocol();
case "threadpool":
case "threadPool": return target.getThreadPool();
case "useglobalsslcontextparameters":
case "useGlobalSslContextParameters": return target.isUseGlobalSslContextParameters();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy