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

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

/* 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 JettyHttpEndpoint9Configurer 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 "sessionSupport": ((JettyHttpEndpoint9) endpoint).setSessionSupport(property(camelContext, boolean.class, value)); return true;
        case "enableJmx": ((JettyHttpEndpoint9) endpoint).setEnableJmx(property(camelContext, boolean.class, value)); return true;
        case "enableMultipartFilter": ((JettyHttpEndpoint9) endpoint).setEnableMultipartFilter(property(camelContext, boolean.class, value)); return true;
        case "sendServerVersion": ((JettyHttpEndpoint9) endpoint).setSendServerVersion(property(camelContext, boolean.class, value)); return true;
        case "sendDateHeader": ((JettyHttpEndpoint9) endpoint).setSendDateHeader(property(camelContext, boolean.class, value)); return true;
        case "continuationTimeout": ((JettyHttpEndpoint9) endpoint).setContinuationTimeout(property(camelContext, java.lang.Long.class, value)); return true;
        case "useContinuation": ((JettyHttpEndpoint9) endpoint).setUseContinuation(property(camelContext, java.lang.Boolean.class, value)); return true;
        case "enableCORS": ((JettyHttpEndpoint9) endpoint).setEnableCORS(property(camelContext, boolean.class, value)); return true;
        case "handlers": ((JettyHttpEndpoint9) endpoint).setHandlers(property(camelContext, java.util.List.class, value)); return true;
        case "filters": ((JettyHttpEndpoint9) endpoint).setFilters(property(camelContext, java.util.List.class, value)); return true;
        case "filterInitParameters": ((JettyHttpEndpoint9) endpoint).setFilterInitParameters(property(camelContext, java.util.Map.class, value)); return true;
        case "multipartFilter": ((JettyHttpEndpoint9) endpoint).setMultipartFilter(property(camelContext, javax.servlet.Filter.class, value)); return true;
        case "sslContextParameters": ((JettyHttpEndpoint9) endpoint).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        case "headerFilterStrategy": ((JettyHttpEndpoint9) endpoint).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
        case "httpBinding": ((JettyHttpEndpoint9) endpoint).setHttpBinding(property(camelContext, org.apache.camel.http.common.HttpBinding.class, value)); return true;
        case "throwExceptionOnFailure": ((JettyHttpEndpoint9) endpoint).setThrowExceptionOnFailure(property(camelContext, boolean.class, value)); return true;
        case "bridgeEndpoint": ((JettyHttpEndpoint9) endpoint).setBridgeEndpoint(property(camelContext, boolean.class, value)); return true;
        case "preserveHostHeader": ((JettyHttpEndpoint9) endpoint).setPreserveHostHeader(property(camelContext, boolean.class, value)); return true;
        case "matchOnUriPrefix": ((JettyHttpEndpoint9) endpoint).setMatchOnUriPrefix(property(camelContext, boolean.class, value)); return true;
        case "chunked": ((JettyHttpEndpoint9) endpoint).setChunked(property(camelContext, boolean.class, value)); return true;
        case "disableStreamCache": ((JettyHttpEndpoint9) endpoint).setDisableStreamCache(property(camelContext, boolean.class, value)); return true;
        case "transferException": ((JettyHttpEndpoint9) endpoint).setTransferException(property(camelContext, boolean.class, value)); return true;
        case "connectionClose": ((JettyHttpEndpoint9) endpoint).setConnectionClose(property(camelContext, boolean.class, value)); return true;
        case "traceEnabled": ((JettyHttpEndpoint9) endpoint).setTraceEnabled(property(camelContext, boolean.class, value)); return true;
        case "optionsEnabled": ((JettyHttpEndpoint9) endpoint).setOptionsEnabled(property(camelContext, boolean.class, value)); return true;
        case "httpMethodRestrict": ((JettyHttpEndpoint9) endpoint).setHttpMethodRestrict(property(camelContext, java.lang.String.class, value)); return true;
        case "responseBufferSize": ((JettyHttpEndpoint9) endpoint).setResponseBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "ignoreResponseBody": ((JettyHttpEndpoint9) endpoint).setIgnoreResponseBody(property(camelContext, boolean.class, value)); return true;
        case "copyHeaders": ((JettyHttpEndpoint9) endpoint).setCopyHeaders(property(camelContext, boolean.class, value)); return true;
        case "eagerCheckContentAvailable": ((JettyHttpEndpoint9) endpoint).setEagerCheckContentAvailable(property(camelContext, boolean.class, value)); return true;
        case "mapHttpMessageBody": ((JettyHttpEndpoint9) endpoint).setMapHttpMessageBody(property(camelContext, boolean.class, value)); return true;
        case "mapHttpMessageHeaders": ((JettyHttpEndpoint9) endpoint).setMapHttpMessageHeaders(property(camelContext, boolean.class, value)); return true;
        case "mapHttpMessageFormUrlEncodedBody": ((JettyHttpEndpoint9) endpoint).setMapHttpMessageFormUrlEncodedBody(property(camelContext, boolean.class, value)); return true;
        case "okStatusCodeRange": ((JettyHttpEndpoint9) endpoint).setOkStatusCodeRange(property(camelContext, java.lang.String.class, value)); return true;
        case "urlRewrite": ((JettyHttpEndpoint9) endpoint).setUrlRewrite(property(camelContext, org.apache.camel.http.common.UrlRewrite.class, value)); return true;
        case "async": ((JettyHttpEndpoint9) endpoint).setAsync(property(camelContext, boolean.class, value)); return true;
        case "cookieHandler": ((JettyHttpEndpoint9) endpoint).setCookieHandler(property(camelContext, org.apache.camel.http.common.cookie.CookieHandler.class, value)); return true;
        case "httpMethod": ((JettyHttpEndpoint9) endpoint).setHttpMethod(property(camelContext, org.apache.camel.http.common.HttpMethods.class, value)); return true;
        case "authHost": ((JettyHttpEndpoint9) endpoint).setAuthHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyHost": ((JettyHttpEndpoint9) endpoint).setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyPort": ((JettyHttpEndpoint9) endpoint).setProxyPort(property(camelContext, int.class, value)); return true;
        case "proxyAuthScheme": ((JettyHttpEndpoint9) endpoint).setProxyAuthScheme(property(camelContext, java.lang.String.class, value)); return true;
        case "lazyStartProducer": ((JettyHttpEndpoint9) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "bridgeErrorHandler": ((JettyHttpEndpoint9) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "exceptionHandler": ((JettyHttpEndpoint9) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangePattern": ((JettyHttpEndpoint9) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "synchronous": ((JettyHttpEndpoint9) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
        case "basicPropertyBinding": ((JettyHttpEndpoint9) 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 "sessionsupport": ((JettyHttpEndpoint9) endpoint).setSessionSupport(property(camelContext, boolean.class, value)); return true;
        case "enablejmx": ((JettyHttpEndpoint9) endpoint).setEnableJmx(property(camelContext, boolean.class, value)); return true;
        case "enablemultipartfilter": ((JettyHttpEndpoint9) endpoint).setEnableMultipartFilter(property(camelContext, boolean.class, value)); return true;
        case "sendserverversion": ((JettyHttpEndpoint9) endpoint).setSendServerVersion(property(camelContext, boolean.class, value)); return true;
        case "senddateheader": ((JettyHttpEndpoint9) endpoint).setSendDateHeader(property(camelContext, boolean.class, value)); return true;
        case "continuationtimeout": ((JettyHttpEndpoint9) endpoint).setContinuationTimeout(property(camelContext, java.lang.Long.class, value)); return true;
        case "usecontinuation": ((JettyHttpEndpoint9) endpoint).setUseContinuation(property(camelContext, java.lang.Boolean.class, value)); return true;
        case "enablecors": ((JettyHttpEndpoint9) endpoint).setEnableCORS(property(camelContext, boolean.class, value)); return true;
        case "handlers": ((JettyHttpEndpoint9) endpoint).setHandlers(property(camelContext, java.util.List.class, value)); return true;
        case "filters": ((JettyHttpEndpoint9) endpoint).setFilters(property(camelContext, java.util.List.class, value)); return true;
        case "filterinitparameters": ((JettyHttpEndpoint9) endpoint).setFilterInitParameters(property(camelContext, java.util.Map.class, value)); return true;
        case "multipartfilter": ((JettyHttpEndpoint9) endpoint).setMultipartFilter(property(camelContext, javax.servlet.Filter.class, value)); return true;
        case "sslcontextparameters": ((JettyHttpEndpoint9) endpoint).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        case "headerfilterstrategy": ((JettyHttpEndpoint9) endpoint).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
        case "httpbinding": ((JettyHttpEndpoint9) endpoint).setHttpBinding(property(camelContext, org.apache.camel.http.common.HttpBinding.class, value)); return true;
        case "throwexceptiononfailure": ((JettyHttpEndpoint9) endpoint).setThrowExceptionOnFailure(property(camelContext, boolean.class, value)); return true;
        case "bridgeendpoint": ((JettyHttpEndpoint9) endpoint).setBridgeEndpoint(property(camelContext, boolean.class, value)); return true;
        case "preservehostheader": ((JettyHttpEndpoint9) endpoint).setPreserveHostHeader(property(camelContext, boolean.class, value)); return true;
        case "matchonuriprefix": ((JettyHttpEndpoint9) endpoint).setMatchOnUriPrefix(property(camelContext, boolean.class, value)); return true;
        case "chunked": ((JettyHttpEndpoint9) endpoint).setChunked(property(camelContext, boolean.class, value)); return true;
        case "disablestreamcache": ((JettyHttpEndpoint9) endpoint).setDisableStreamCache(property(camelContext, boolean.class, value)); return true;
        case "transferexception": ((JettyHttpEndpoint9) endpoint).setTransferException(property(camelContext, boolean.class, value)); return true;
        case "connectionclose": ((JettyHttpEndpoint9) endpoint).setConnectionClose(property(camelContext, boolean.class, value)); return true;
        case "traceenabled": ((JettyHttpEndpoint9) endpoint).setTraceEnabled(property(camelContext, boolean.class, value)); return true;
        case "optionsenabled": ((JettyHttpEndpoint9) endpoint).setOptionsEnabled(property(camelContext, boolean.class, value)); return true;
        case "httpmethodrestrict": ((JettyHttpEndpoint9) endpoint).setHttpMethodRestrict(property(camelContext, java.lang.String.class, value)); return true;
        case "responsebuffersize": ((JettyHttpEndpoint9) endpoint).setResponseBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "ignoreresponsebody": ((JettyHttpEndpoint9) endpoint).setIgnoreResponseBody(property(camelContext, boolean.class, value)); return true;
        case "copyheaders": ((JettyHttpEndpoint9) endpoint).setCopyHeaders(property(camelContext, boolean.class, value)); return true;
        case "eagercheckcontentavailable": ((JettyHttpEndpoint9) endpoint).setEagerCheckContentAvailable(property(camelContext, boolean.class, value)); return true;
        case "maphttpmessagebody": ((JettyHttpEndpoint9) endpoint).setMapHttpMessageBody(property(camelContext, boolean.class, value)); return true;
        case "maphttpmessageheaders": ((JettyHttpEndpoint9) endpoint).setMapHttpMessageHeaders(property(camelContext, boolean.class, value)); return true;
        case "maphttpmessageformurlencodedbody": ((JettyHttpEndpoint9) endpoint).setMapHttpMessageFormUrlEncodedBody(property(camelContext, boolean.class, value)); return true;
        case "okstatuscoderange": ((JettyHttpEndpoint9) endpoint).setOkStatusCodeRange(property(camelContext, java.lang.String.class, value)); return true;
        case "urlrewrite": ((JettyHttpEndpoint9) endpoint).setUrlRewrite(property(camelContext, org.apache.camel.http.common.UrlRewrite.class, value)); return true;
        case "async": ((JettyHttpEndpoint9) endpoint).setAsync(property(camelContext, boolean.class, value)); return true;
        case "cookiehandler": ((JettyHttpEndpoint9) endpoint).setCookieHandler(property(camelContext, org.apache.camel.http.common.cookie.CookieHandler.class, value)); return true;
        case "httpmethod": ((JettyHttpEndpoint9) endpoint).setHttpMethod(property(camelContext, org.apache.camel.http.common.HttpMethods.class, value)); return true;
        case "authhost": ((JettyHttpEndpoint9) endpoint).setAuthHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyhost": ((JettyHttpEndpoint9) endpoint).setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyport": ((JettyHttpEndpoint9) endpoint).setProxyPort(property(camelContext, int.class, value)); return true;
        case "proxyauthscheme": ((JettyHttpEndpoint9) endpoint).setProxyAuthScheme(property(camelContext, java.lang.String.class, value)); return true;
        case "lazystartproducer": ((JettyHttpEndpoint9) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "bridgeerrorhandler": ((JettyHttpEndpoint9) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "exceptionhandler": ((JettyHttpEndpoint9) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangepattern": ((JettyHttpEndpoint9) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "synchronous": ((JettyHttpEndpoint9) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
        case "basicpropertybinding": ((JettyHttpEndpoint9) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
            default: return false;
        }
    }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy