All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.jetty9.JettyHttpComponent9Configurer Maven / Gradle / Ivy

There is a newer version: 4.8.1
Show newest version
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.jetty9;

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 JettyHttpComponent9Configurer 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 "sslKeyPassword": ((JettyHttpComponent9) component).setSslKeyPassword(property(camelContext, java.lang.String.class, value)); return true;
        case "sslPassword": ((JettyHttpComponent9) component).setSslPassword(property(camelContext, java.lang.String.class, value)); return true;
        case "keystore": ((JettyHttpComponent9) component).setKeystore(property(camelContext, java.lang.String.class, value)); return true;
        case "errorHandler": ((JettyHttpComponent9) component).setErrorHandler(property(camelContext, org.eclipse.jetty.server.handler.ErrorHandler.class, value)); return true;
        case "sslSocketConnectors": ((JettyHttpComponent9) component).setSslSocketConnectors(property(camelContext, java.util.Map.class, value)); return true;
        case "socketConnectors": ((JettyHttpComponent9) component).setSocketConnectors(property(camelContext, java.util.Map.class, value)); return true;
        case "httpClientMinThreads": ((JettyHttpComponent9) component).setHttpClientMinThreads(property(camelContext, java.lang.Integer.class, value)); return true;
        case "httpClientMaxThreads": ((JettyHttpComponent9) component).setHttpClientMaxThreads(property(camelContext, java.lang.Integer.class, value)); return true;
        case "minThreads": ((JettyHttpComponent9) component).setMinThreads(property(camelContext, java.lang.Integer.class, value)); return true;
        case "maxThreads": ((JettyHttpComponent9) component).setMaxThreads(property(camelContext, java.lang.Integer.class, value)); return true;
        case "threadPool": ((JettyHttpComponent9) component).setThreadPool(property(camelContext, org.eclipse.jetty.util.thread.ThreadPool.class, value)); return true;
        case "enableJmx": ((JettyHttpComponent9) component).setEnableJmx(property(camelContext, boolean.class, value)); return true;
        case "jettyHttpBinding": ((JettyHttpComponent9) component).setJettyHttpBinding(property(camelContext, org.apache.camel.component.jetty.JettyHttpBinding.class, value)); return true;
        case "httpBinding": ((JettyHttpComponent9) component).setHttpBinding(property(camelContext, org.apache.camel.http.common.HttpBinding.class, value)); return true;
        case "httpConfiguration": ((JettyHttpComponent9) component).setHttpConfiguration(property(camelContext, org.apache.camel.http.common.HttpConfiguration.class, value)); return true;
        case "mbContainer": ((JettyHttpComponent9) component).setMbContainer(property(camelContext, org.eclipse.jetty.jmx.MBeanContainer.class, value)); return true;
        case "sslSocketConnectorProperties": ((JettyHttpComponent9) component).setSslSocketConnectorProperties(property(camelContext, java.util.Map.class, value)); return true;
        case "socketConnectorProperties": ((JettyHttpComponent9) component).setSocketConnectorProperties(property(camelContext, java.util.Map.class, value)); return true;
        case "continuationTimeout": ((JettyHttpComponent9) component).setContinuationTimeout(property(camelContext, java.lang.Long.class, value)); return true;
        case "useContinuation": ((JettyHttpComponent9) component).setUseContinuation(property(camelContext, boolean.class, value)); return true;
        case "sslContextParameters": ((JettyHttpComponent9) component).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        case "useGlobalSslContextParameters": ((JettyHttpComponent9) component).setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true;
        case "responseBufferSize": ((JettyHttpComponent9) component).setResponseBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "requestBufferSize": ((JettyHttpComponent9) component).setRequestBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "requestHeaderSize": ((JettyHttpComponent9) component).setRequestHeaderSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "responseHeaderSize": ((JettyHttpComponent9) component).setResponseHeaderSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "proxyHost": ((JettyHttpComponent9) component).setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyPort": ((JettyHttpComponent9) component).setProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
        case "useXForwardedForHeader": ((JettyHttpComponent9) component).setUseXForwardedForHeader(property(camelContext, boolean.class, value)); return true;
        case "sendServerVersion": ((JettyHttpComponent9) component).setSendServerVersion(property(camelContext, boolean.class, value)); return true;
        case "allowJavaSerializedObject": ((JettyHttpComponent9) component).setAllowJavaSerializedObject(property(camelContext, boolean.class, value)); return true;
        case "headerFilterStrategy": ((JettyHttpComponent9) component).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
        case "basicPropertyBinding": ((JettyHttpComponent9) 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 "sslkeypassword": ((JettyHttpComponent9) component).setSslKeyPassword(property(camelContext, java.lang.String.class, value)); return true;
        case "sslpassword": ((JettyHttpComponent9) component).setSslPassword(property(camelContext, java.lang.String.class, value)); return true;
        case "keystore": ((JettyHttpComponent9) component).setKeystore(property(camelContext, java.lang.String.class, value)); return true;
        case "errorhandler": ((JettyHttpComponent9) component).setErrorHandler(property(camelContext, org.eclipse.jetty.server.handler.ErrorHandler.class, value)); return true;
        case "sslsocketconnectors": ((JettyHttpComponent9) component).setSslSocketConnectors(property(camelContext, java.util.Map.class, value)); return true;
        case "socketconnectors": ((JettyHttpComponent9) component).setSocketConnectors(property(camelContext, java.util.Map.class, value)); return true;
        case "httpclientminthreads": ((JettyHttpComponent9) component).setHttpClientMinThreads(property(camelContext, java.lang.Integer.class, value)); return true;
        case "httpclientmaxthreads": ((JettyHttpComponent9) component).setHttpClientMaxThreads(property(camelContext, java.lang.Integer.class, value)); return true;
        case "minthreads": ((JettyHttpComponent9) component).setMinThreads(property(camelContext, java.lang.Integer.class, value)); return true;
        case "maxthreads": ((JettyHttpComponent9) component).setMaxThreads(property(camelContext, java.lang.Integer.class, value)); return true;
        case "threadpool": ((JettyHttpComponent9) component).setThreadPool(property(camelContext, org.eclipse.jetty.util.thread.ThreadPool.class, value)); return true;
        case "enablejmx": ((JettyHttpComponent9) component).setEnableJmx(property(camelContext, boolean.class, value)); return true;
        case "jettyhttpbinding": ((JettyHttpComponent9) component).setJettyHttpBinding(property(camelContext, org.apache.camel.component.jetty.JettyHttpBinding.class, value)); return true;
        case "httpbinding": ((JettyHttpComponent9) component).setHttpBinding(property(camelContext, org.apache.camel.http.common.HttpBinding.class, value)); return true;
        case "httpconfiguration": ((JettyHttpComponent9) component).setHttpConfiguration(property(camelContext, org.apache.camel.http.common.HttpConfiguration.class, value)); return true;
        case "mbcontainer": ((JettyHttpComponent9) component).setMbContainer(property(camelContext, org.eclipse.jetty.jmx.MBeanContainer.class, value)); return true;
        case "sslsocketconnectorproperties": ((JettyHttpComponent9) component).setSslSocketConnectorProperties(property(camelContext, java.util.Map.class, value)); return true;
        case "socketconnectorproperties": ((JettyHttpComponent9) component).setSocketConnectorProperties(property(camelContext, java.util.Map.class, value)); return true;
        case "continuationtimeout": ((JettyHttpComponent9) component).setContinuationTimeout(property(camelContext, java.lang.Long.class, value)); return true;
        case "usecontinuation": ((JettyHttpComponent9) component).setUseContinuation(property(camelContext, boolean.class, value)); return true;
        case "sslcontextparameters": ((JettyHttpComponent9) component).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        case "useglobalsslcontextparameters": ((JettyHttpComponent9) component).setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true;
        case "responsebuffersize": ((JettyHttpComponent9) component).setResponseBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "requestbuffersize": ((JettyHttpComponent9) component).setRequestBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "requestheadersize": ((JettyHttpComponent9) component).setRequestHeaderSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "responseheadersize": ((JettyHttpComponent9) component).setResponseHeaderSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "proxyhost": ((JettyHttpComponent9) component).setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyport": ((JettyHttpComponent9) component).setProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
        case "usexforwardedforheader": ((JettyHttpComponent9) component).setUseXForwardedForHeader(property(camelContext, boolean.class, value)); return true;
        case "sendserverversion": ((JettyHttpComponent9) component).setSendServerVersion(property(camelContext, boolean.class, value)); return true;
        case "allowjavaserializedobject": ((JettyHttpComponent9) component).setAllowJavaSerializedObject(property(camelContext, boolean.class, value)); return true;
        case "headerfilterstrategy": ((JettyHttpComponent9) component).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
        case "basicpropertybinding": ((JettyHttpComponent9) component).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
            default: return false;
        }
    }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy