org.apache.camel.component.http.HttpComponentConfigurer Maven / Gradle / Ivy
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.http;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGetter;
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 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 "basicpropertybinding":
case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
case "clientconnectionmanager":
case "clientConnectionManager": target.setClientConnectionManager(property(camelContext, org.apache.http.conn.HttpClientConnectionManager.class, value)); return true;
case "connecttimeout":
case "connectTimeout": target.setConnectTimeout(property(camelContext, int.class, value)); return true;
case "connectionrequesttimeout":
case "connectionRequestTimeout": target.setConnectionRequestTimeout(property(camelContext, int.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 "cookiestore":
case "cookieStore": target.setCookieStore(property(camelContext, org.apache.http.client.CookieStore.class, value)); return true;
case "headerfilterstrategy":
case "headerFilterStrategy": target.setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.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.http.protocol.HttpContext.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "maxtotalconnections":
case "maxTotalConnections": target.setMaxTotalConnections(property(camelContext, int.class, value)); return true;
case "sockettimeout":
case "socketTimeout": target.setSocketTimeout(property(camelContext, int.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 "x509hostnameverifier":
case "x509HostnameVerifier": target.setX509HostnameVerifier(property(camelContext, javax.net.ssl.HostnameVerifier.class, value)); return true;
default: return false;
}
}
@Override
public Map getAllOptions(Object target) {
Map answer = new CaseInsensitiveMap();
answer.put("allowJavaSerializedObject", boolean.class);
answer.put("basicPropertyBinding", boolean.class);
answer.put("clientConnectionManager", org.apache.http.conn.HttpClientConnectionManager.class);
answer.put("connectTimeout", int.class);
answer.put("connectionRequestTimeout", int.class);
answer.put("connectionTimeToLive", long.class);
answer.put("connectionsPerRoute", int.class);
answer.put("cookieStore", org.apache.http.client.CookieStore.class);
answer.put("headerFilterStrategy", org.apache.camel.spi.HeaderFilterStrategy.class);
answer.put("httpBinding", org.apache.camel.http.common.HttpBinding.class);
answer.put("httpClientConfigurer", org.apache.camel.component.http.HttpClientConfigurer.class);
answer.put("httpConfiguration", org.apache.camel.http.common.HttpConfiguration.class);
answer.put("httpContext", org.apache.http.protocol.HttpContext.class);
answer.put("lazyStartProducer", boolean.class);
answer.put("maxTotalConnections", int.class);
answer.put("socketTimeout", int.class);
answer.put("sslContextParameters", org.apache.camel.support.jsse.SSLContextParameters.class);
answer.put("useGlobalSslContextParameters", boolean.class);
answer.put("x509HostnameVerifier", javax.net.ssl.HostnameVerifier.class);
return answer;
}
@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 "basicpropertybinding":
case "basicPropertyBinding": return target.isBasicPropertyBinding();
case "clientconnectionmanager":
case "clientConnectionManager": return target.getClientConnectionManager();
case "connecttimeout":
case "connectTimeout": return target.getConnectTimeout();
case "connectionrequesttimeout":
case "connectionRequestTimeout": return target.getConnectionRequestTimeout();
case "connectiontimetolive":
case "connectionTimeToLive": return target.getConnectionTimeToLive();
case "connectionsperroute":
case "connectionsPerRoute": return target.getConnectionsPerRoute();
case "cookiestore":
case "cookieStore": return target.getCookieStore();
case "headerfilterstrategy":
case "headerFilterStrategy": return target.getHeaderFilterStrategy();
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 "maxtotalconnections":
case "maxTotalConnections": return target.getMaxTotalConnections();
case "sockettimeout":
case "socketTimeout": return target.getSocketTimeout();
case "sslcontextparameters":
case "sslContextParameters": return target.getSslContextParameters();
case "useglobalsslcontextparameters":
case "useGlobalSslContextParameters": return target.isUseGlobalSslContextParameters();
case "x509hostnameverifier":
case "x509HostnameVerifier": return target.getX509HostnameVerifier();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy