/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.http;

import javax.annotation.processing.Generated;
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!
 */
@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
@SuppressWarnings("unchecked")
public class HttpComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        HttpComponent target = (HttpComponent) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "allowjavaserializedobject":
        case "allowJavaSerializedObject": target.setAllowJavaSerializedObject(property(camelContext, boolean.class, value)); return true;
        case "authcachingdisabled":
        case "authCachingDisabled": target.setAuthCachingDisabled(property(camelContext, boolean.class, value)); return true;
        case "automaticretriesdisabled":
        case "automaticRetriesDisabled": target.setAutomaticRetriesDisabled(property(camelContext, boolean.class, value)); return true;
        case "autowiredenabled":
        case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
        case "clientconnectionmanager":
        case "clientConnectionManager": target.setClientConnectionManager(property(camelContext, org.apache.hc.client5.http.io.HttpClientConnectionManager.class, value)); return true;
        case "connecttimeout":
        case "connectTimeout": target.setConnectTimeout(property(camelContext, long.class, value)); return true;
        case "connectionrequesttimeout":
        case "connectionRequestTimeout": target.setConnectionRequestTimeout(property(camelContext, long.class, value)); return true;
        case "connectionstatedisabled":
        case "connectionStateDisabled": target.setConnectionStateDisabled(property(camelContext, boolean.class, value)); return true;
        case "connectiontimetolive":
        case "connectionTimeToLive": target.setConnectionTimeToLive(property(camelContext, long.class, value)); return true;
        case "connectionsperroute":
        case "connectionsPerRoute": target.setConnectionsPerRoute(property(camelContext, int.class, value)); return true;
        case "contentcompressiondisabled":
        case "contentCompressionDisabled": target.setContentCompressionDisabled(property(camelContext, boolean.class, value)); return true;
        case "contenttypecharsetenabled":
        case "contentTypeCharsetEnabled": target.setContentTypeCharsetEnabled(property(camelContext, boolean.class, value)); return true;
        case "cookiemanagementdisabled":
        case "cookieManagementDisabled": target.setCookieManagementDisabled(property(camelContext, boolean.class, value)); return true;
        case "cookiestore":
        case "cookieStore": target.setCookieStore(property(camelContext, org.apache.hc.client5.http.cookie.CookieStore.class, value)); return true;
        case "copyheaders":
        case "copyHeaders": target.setCopyHeaders(property(camelContext, boolean.class, value)); return true;
        case "defaultuseragentdisabled":
        case "defaultUserAgentDisabled": target.setDefaultUserAgentDisabled(property(camelContext, boolean.class, value)); return true;
        case "followredirects":
        case "followRedirects": target.setFollowRedirects(property(camelContext, boolean.class, value)); return true;
        case "headerfilterstrategy":
        case "headerFilterStrategy": target.setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
        case "httpactivitylistener":
        case "httpActivityListener": target.setHttpActivityListener(property(camelContext, org.apache.camel.component.http.HttpActivityListener.class, value)); return true;
        case "httpbinding":
        case "httpBinding": target.setHttpBinding(property(camelContext, org.apache.camel.http.common.HttpBinding.class, value)); return true;
        case "httpclientconfigurer":
        case "httpClientConfigurer": target.setHttpClientConfigurer(property(camelContext, org.apache.camel.component.http.HttpClientConfigurer.class, value)); return true;
        case "httpconfiguration":
        case "httpConfiguration": target.setHttpConfiguration(property(camelContext, org.apache.camel.http.common.HttpConfiguration.class, value)); return true;
        case "httpcontext":
        case "httpContext": target.setHttpContext(property(camelContext, org.apache.hc.core5.http.protocol.HttpContext.class, value)); return true;
        case "lazystartproducer":
        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "loghttpactivity":
        case "logHttpActivity": target.setLogHttpActivity(property(camelContext, boolean.class, value)); return true;
        case "maxtotalconnections":
        case "maxTotalConnections": target.setMaxTotalConnections(property(camelContext, int.class, value)); return true;
        case "nonproxyhosts":
        case "nonProxyHosts": target.setNonProxyHosts(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyauthdomain":
        case "proxyAuthDomain": target.setProxyAuthDomain(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyauthhost":
        case "proxyAuthHost": target.setProxyAuthHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyauthmethod":
        case "proxyAuthMethod": target.setProxyAuthMethod(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyauthnthost":
        case "proxyAuthNtHost": target.setProxyAuthNtHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyauthpassword":
        case "proxyAuthPassword": target.setProxyAuthPassword(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyauthport":
        case "proxyAuthPort": target.setProxyAuthPort(property(camelContext, java.lang.Integer.class, value)); return true;
        case "proxyauthscheme":
        case "proxyAuthScheme": target.setProxyAuthScheme(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyauthusername":
        case "proxyAuthUsername": target.setProxyAuthUsername(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyhost":
        case "proxyHost": target.setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyport":
        case "proxyPort": target.setProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
        case "redirecthandlingdisabled":
        case "redirectHandlingDisabled": target.setRedirectHandlingDisabled(property(camelContext, boolean.class, value)); return true;
        case "responsepayloadstreamingthreshold":
        case "responsePayloadStreamingThreshold": target.setResponsePayloadStreamingThreshold(property(camelContext, int.class, value)); return true;
        case "responsetimeout":
        case "responseTimeout": target.setResponseTimeout(property(camelContext, long.class, value)); return true;
        case "skipcontrolheaders":
        case "skipControlHeaders": target.setSkipControlHeaders(property(camelContext, boolean.class, value)); return true;
        case "skiprequestheaders":
        case "skipRequestHeaders": target.setSkipRequestHeaders(property(camelContext, boolean.class, value)); return true;
        case "skipresponseheaders":
        case "skipResponseHeaders": target.setSkipResponseHeaders(property(camelContext, boolean.class, value)); return true;
        case "sotimeout":
        case "soTimeout": target.setSoTimeout(property(camelContext, long.class, value)); return true;
        case "sslcontextparameters":
        case "sslContextParameters": target.setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        case "useglobalsslcontextparameters":
        case "useGlobalSslContextParameters": target.setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true;
        case "usesystemproperties":
        case "useSystemProperties": target.setUseSystemProperties(property(camelContext, boolean.class, value)); return true;
        case "useragent":
        case "userAgent": target.setUserAgent(property(camelContext, java.lang.String.class, value)); return true;
        case "x509hostnameverifier":
        case "x509HostnameVerifier": target.setX509HostnameVerifier(property(camelContext, javax.net.ssl.HostnameVerifier.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public String[] getAutowiredNames() {
        return new String[]{"httpActivityListener"};
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "allowjavaserializedobject":
        case "allowJavaSerializedObject": return boolean.class;
        case "authcachingdisabled":
        case "authCachingDisabled": return boolean.class;
        case "automaticretriesdisabled":
        case "automaticRetriesDisabled": return boolean.class;
        case "autowiredenabled":
        case "autowiredEnabled": return boolean.class;
        case "clientconnectionmanager":
        case "clientConnectionManager": return org.apache.hc.client5.http.io.HttpClientConnectionManager.class;
        case "connecttimeout":
        case "connectTimeout": return long.class;
        case "connectionrequesttimeout":
        case "connectionRequestTimeout": return long.class;
        case "connectionstatedisabled":
        case "connectionStateDisabled": return boolean.class;
        case "connectiontimetolive":
        case "connectionTimeToLive": return long.class;
        case "connectionsperroute":
        case "connectionsPerRoute": return int.class;
        case "contentcompressiondisabled":
        case "contentCompressionDisabled": return boolean.class;
        case "contenttypecharsetenabled":
        case "contentTypeCharsetEnabled": return boolean.class;
        case "cookiemanagementdisabled":
        case "cookieManagementDisabled": return boolean.class;
        case "cookiestore":
        case "cookieStore": return org.apache.hc.client5.http.cookie.CookieStore.class;
        case "copyheaders":
        case "copyHeaders": return boolean.class;
        case "defaultuseragentdisabled":
        case "defaultUserAgentDisabled": return boolean.class;
        case "followredirects":
        case "followRedirects": return boolean.class;
        case "headerfilterstrategy":
        case "headerFilterStrategy": return org.apache.camel.spi.HeaderFilterStrategy.class;
        case "httpactivitylistener":
        case "httpActivityListener": return org.apache.camel.component.http.HttpActivityListener.class;
        case "httpbinding":
        case "httpBinding": return org.apache.camel.http.common.HttpBinding.class;
        case "httpclientconfigurer":
        case "httpClientConfigurer": return org.apache.camel.component.http.HttpClientConfigurer.class;
        case "httpconfiguration":
        case "httpConfiguration": return org.apache.camel.http.common.HttpConfiguration.class;
        case "httpcontext":
        case "httpContext": return org.apache.hc.core5.http.protocol.HttpContext.class;
        case "lazystartproducer":
        case "lazyStartProducer": return boolean.class;
        case "loghttpactivity":
        case "logHttpActivity": return boolean.class;
        case "maxtotalconnections":
        case "maxTotalConnections": return int.class;
        case "nonproxyhosts":
        case "nonProxyHosts": return java.lang.String.class;
        case "proxyauthdomain":
        case "proxyAuthDomain": return java.lang.String.class;
        case "proxyauthhost":
        case "proxyAuthHost": return java.lang.String.class;
        case "proxyauthmethod":
        case "proxyAuthMethod": return java.lang.String.class;
        case "proxyauthnthost":
        case "proxyAuthNtHost": return java.lang.String.class;
        case "proxyauthpassword":
        case "proxyAuthPassword": return java.lang.String.class;
        case "proxyauthport":
        case "proxyAuthPort": return java.lang.Integer.class;
        case "proxyauthscheme":
        case "proxyAuthScheme": return java.lang.String.class;
        case "proxyauthusername":
        case "proxyAuthUsername": return java.lang.String.class;
        case "proxyhost":
        case "proxyHost": return java.lang.String.class;
        case "proxyport":
        case "proxyPort": return java.lang.Integer.class;
        case "redirecthandlingdisabled":
        case "redirectHandlingDisabled": return boolean.class;
        case "responsepayloadstreamingthreshold":
        case "responsePayloadStreamingThreshold": return int.class;
        case "responsetimeout":
        case "responseTimeout": return long.class;
        case "skipcontrolheaders":
        case "skipControlHeaders": return boolean.class;
        case "skiprequestheaders":
        case "skipRequestHeaders": return boolean.class;
        case "skipresponseheaders":
        case "skipResponseHeaders": return boolean.class;
        case "sotimeout":
        case "soTimeout": return long.class;
        case "sslcontextparameters":
        case "sslContextParameters": return org.apache.camel.support.jsse.SSLContextParameters.class;
        case "useglobalsslcontextparameters":
        case "useGlobalSslContextParameters": return boolean.class;
        case "usesystemproperties":
        case "useSystemProperties": return boolean.class;
        case "useragent":
        case "userAgent": return java.lang.String.class;
        case "x509hostnameverifier":
        case "x509HostnameVerifier": return javax.net.ssl.HostnameVerifier.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        HttpComponent target = (HttpComponent) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "allowjavaserializedobject":
        case "allowJavaSerializedObject": return target.isAllowJavaSerializedObject();
        case "authcachingdisabled":
        case "authCachingDisabled": return target.isAuthCachingDisabled();
        case "automaticretriesdisabled":
        case "automaticRetriesDisabled": return target.isAutomaticRetriesDisabled();
        case "autowiredenabled":
        case "autowiredEnabled": return target.isAutowiredEnabled();
        case "clientconnectionmanager":
        case "clientConnectionManager": return target.getClientConnectionManager();
        case "connecttimeout":
        case "connectTimeout": return target.getConnectTimeout();
        case "connectionrequesttimeout":
        case "connectionRequestTimeout": return target.getConnectionRequestTimeout();
        case "connectionstatedisabled":
        case "connectionStateDisabled": return target.isConnectionStateDisabled();
        case "connectiontimetolive":
        case "connectionTimeToLive": return target.getConnectionTimeToLive();
        case "connectionsperroute":
        case "connectionsPerRoute": return target.getConnectionsPerRoute();
        case "contentcompressiondisabled":
        case "contentCompressionDisabled": return target.isContentCompressionDisabled();
        case "contenttypecharsetenabled":
        case "contentTypeCharsetEnabled": return target.isContentTypeCharsetEnabled();
        case "cookiemanagementdisabled":
        case "cookieManagementDisabled": return target.isCookieManagementDisabled();
        case "cookiestore":
        case "cookieStore": return target.getCookieStore();
        case "copyheaders":
        case "copyHeaders": return target.isCopyHeaders();
        case "defaultuseragentdisabled":
        case "defaultUserAgentDisabled": return target.isDefaultUserAgentDisabled();
        case "followredirects":
        case "followRedirects": return target.isFollowRedirects();
        case "headerfilterstrategy":
        case "headerFilterStrategy": return target.getHeaderFilterStrategy();
        case "httpactivitylistener":
        case "httpActivityListener": return target.getHttpActivityListener();
        case "httpbinding":
        case "httpBinding": return target.getHttpBinding();
        case "httpclientconfigurer":
        case "httpClientConfigurer": return target.getHttpClientConfigurer();
        case "httpconfiguration":
        case "httpConfiguration": return target.getHttpConfiguration();
        case "httpcontext":
        case "httpContext": return target.getHttpContext();
        case "lazystartproducer":
        case "lazyStartProducer": return target.isLazyStartProducer();
        case "loghttpactivity":
        case "logHttpActivity": return target.isLogHttpActivity();
        case "maxtotalconnections":
        case "maxTotalConnections": return target.getMaxTotalConnections();
        case "nonproxyhosts":
        case "nonProxyHosts": return target.getNonProxyHosts();
        case "proxyauthdomain":
        case "proxyAuthDomain": return target.getProxyAuthDomain();
        case "proxyauthhost":
        case "proxyAuthHost": return target.getProxyAuthHost();
        case "proxyauthmethod":
        case "proxyAuthMethod": return target.getProxyAuthMethod();
        case "proxyauthnthost":
        case "proxyAuthNtHost": return target.getProxyAuthNtHost();
        case "proxyauthpassword":
        case "proxyAuthPassword": return target.getProxyAuthPassword();
        case "proxyauthport":
        case "proxyAuthPort": return target.getProxyAuthPort();
        case "proxyauthscheme":
        case "proxyAuthScheme": return target.getProxyAuthScheme();
        case "proxyauthusername":
        case "proxyAuthUsername": return target.getProxyAuthUsername();
        case "proxyhost":
        case "proxyHost": return target.getProxyHost();
        case "proxyport":
        case "proxyPort": return target.getProxyPort();
        case "redirecthandlingdisabled":
        case "redirectHandlingDisabled": return target.isRedirectHandlingDisabled();
        case "responsepayloadstreamingthreshold":
        case "responsePayloadStreamingThreshold": return target.getResponsePayloadStreamingThreshold();
        case "responsetimeout":
        case "responseTimeout": return target.getResponseTimeout();
        case "skipcontrolheaders":
        case "skipControlHeaders": return target.isSkipControlHeaders();
        case "skiprequestheaders":
        case "skipRequestHeaders": return target.isSkipRequestHeaders();
        case "skipresponseheaders":
        case "skipResponseHeaders": return target.isSkipResponseHeaders();
        case "sotimeout":
        case "soTimeout": return target.getSoTimeout();
        case "sslcontextparameters":
        case "sslContextParameters": return target.getSslContextParameters();
        case "useglobalsslcontextparameters":
        case "useGlobalSslContextParameters": return target.isUseGlobalSslContextParameters();
        case "usesystemproperties":
        case "useSystemProperties": return target.isUseSystemProperties();
        case "useragent":
        case "userAgent": return target.getUserAgent();
        case "x509hostnameverifier":
        case "x509HostnameVerifier": return target.getX509HostnameVerifier();
        default: return null;
        }
    }
}

