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 org.apache.camel:apt */
package org.apache.camel.component.websocket;
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 WebsocketComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
@Override
public boolean configure(CamelContext camelContext, Object component, String name, Object value, boolean ignoreCase) {
if (ignoreCase) {
return doConfigureIgnoreCase(camelContext, component, name, value);
} else {
return doConfigure(camelContext, component, name, value);
}
}
private static boolean doConfigure(CamelContext camelContext, Object component, String name, Object value) {
switch (name) {
case "staticResources": ((WebsocketComponent) component).setStaticResources(property(camelContext, java.lang.String.class, value)); return true;
case "host": ((WebsocketComponent) component).setHost(property(camelContext, java.lang.String.class, value)); return true;
case "port": ((WebsocketComponent) component).setPort(property(camelContext, java.lang.Integer.class, value)); return true;
case "sslKeyPassword": ((WebsocketComponent) component).setSslKeyPassword(property(camelContext, java.lang.String.class, value)); return true;
case "sslPassword": ((WebsocketComponent) component).setSslPassword(property(camelContext, java.lang.String.class, value)); return true;
case "sslKeystore": ((WebsocketComponent) component).setSslKeystore(property(camelContext, java.lang.String.class, value)); return true;
case "enableJmx": ((WebsocketComponent) component).setEnableJmx(property(camelContext, boolean.class, value)); return true;
case "minThreads": ((WebsocketComponent) component).setMinThreads(property(camelContext, java.lang.Integer.class, value)); return true;
case "maxThreads": ((WebsocketComponent) component).setMaxThreads(property(camelContext, java.lang.Integer.class, value)); return true;
case "threadPool": ((WebsocketComponent) component).setThreadPool(property(camelContext, org.eclipse.jetty.util.thread.ThreadPool.class, value)); return true;
case "sslContextParameters": ((WebsocketComponent) component).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
case "useGlobalSslContextParameters": ((WebsocketComponent) component).setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true;
case "socketFactory": ((WebsocketComponent) component).setSocketFactory(property(camelContext, java.util.Map.class, value)); return true;
case "basicPropertyBinding": ((WebsocketComponent) component).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
private static boolean doConfigureIgnoreCase(CamelContext camelContext, Object component, String name, Object value) {
switch (name.toLowerCase()) {
case "staticresources": ((WebsocketComponent) component).setStaticResources(property(camelContext, java.lang.String.class, value)); return true;
case "host": ((WebsocketComponent) component).setHost(property(camelContext, java.lang.String.class, value)); return true;
case "port": ((WebsocketComponent) component).setPort(property(camelContext, java.lang.Integer.class, value)); return true;
case "sslkeypassword": ((WebsocketComponent) component).setSslKeyPassword(property(camelContext, java.lang.String.class, value)); return true;
case "sslpassword": ((WebsocketComponent) component).setSslPassword(property(camelContext, java.lang.String.class, value)); return true;
case "sslkeystore": ((WebsocketComponent) component).setSslKeystore(property(camelContext, java.lang.String.class, value)); return true;
case "enablejmx": ((WebsocketComponent) component).setEnableJmx(property(camelContext, boolean.class, value)); return true;
case "minthreads": ((WebsocketComponent) component).setMinThreads(property(camelContext, java.lang.Integer.class, value)); return true;
case "maxthreads": ((WebsocketComponent) component).setMaxThreads(property(camelContext, java.lang.Integer.class, value)); return true;
case "threadpool": ((WebsocketComponent) component).setThreadPool(property(camelContext, org.eclipse.jetty.util.thread.ThreadPool.class, value)); return true;
case "sslcontextparameters": ((WebsocketComponent) component).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
case "useglobalsslcontextparameters": ((WebsocketComponent) component).setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true;
case "socketfactory": ((WebsocketComponent) component).setSocketFactory(property(camelContext, java.util.Map.class, value)); return true;
case "basicpropertybinding": ((WebsocketComponent) component).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy