org.apache.camel.component.http.HttpEndpointConfigurer Maven / Gradle / Ivy
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.http;
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 HttpEndpointConfigurer 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 "sslContextParameters": ((HttpEndpoint) endpoint).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
case "httpContext": ((HttpEndpoint) endpoint).setHttpContext(property(camelContext, org.apache.http.protocol.HttpContext.class, value)); return true;
case "httpClientConfigurer": ((HttpEndpoint) endpoint).setHttpClientConfigurer(property(camelContext, org.apache.camel.component.http.HttpClientConfigurer.class, value)); return true;
case "httpClientOptions": ((HttpEndpoint) endpoint).setHttpClientOptions(property(camelContext, java.util.Map.class, value)); return true;
case "clientConnectionManager": ((HttpEndpoint) endpoint).setClientConnectionManager(property(camelContext, org.apache.http.conn.HttpClientConnectionManager.class, value)); return true;
case "clientBuilder": ((HttpEndpoint) endpoint).setClientBuilder(property(camelContext, org.apache.http.impl.client.HttpClientBuilder.class, value)); return true;
case "httpClient": ((HttpEndpoint) endpoint).setHttpClient(property(camelContext, org.apache.http.client.HttpClient.class, value)); return true;
case "useSystemProperties": ((HttpEndpoint) endpoint).setUseSystemProperties(property(camelContext, boolean.class, value)); return true;
case "cookieStore": ((HttpEndpoint) endpoint).setCookieStore(property(camelContext, org.apache.http.client.CookieStore.class, value)); return true;
case "clearExpiredCookies": ((HttpEndpoint) endpoint).setClearExpiredCookies(property(camelContext, boolean.class, value)); return true;
case "authenticationPreemptive": ((HttpEndpoint) endpoint).setAuthenticationPreemptive(property(camelContext, boolean.class, value)); return true;
case "deleteWithBody": ((HttpEndpoint) endpoint).setDeleteWithBody(property(camelContext, boolean.class, value)); return true;
case "maxTotalConnections": ((HttpEndpoint) endpoint).setMaxTotalConnections(property(camelContext, int.class, value)); return true;
case "connectionsPerRoute": ((HttpEndpoint) endpoint).setConnectionsPerRoute(property(camelContext, int.class, value)); return true;
case "x509HostnameVerifier": ((HttpEndpoint) endpoint).setX509HostnameVerifier(property(camelContext, javax.net.ssl.HostnameVerifier.class, value)); return true;
case "headerFilterStrategy": ((HttpEndpoint) endpoint).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "httpBinding": ((HttpEndpoint) endpoint).setHttpBinding(property(camelContext, org.apache.camel.http.common.HttpBinding.class, value)); return true;
case "throwExceptionOnFailure": ((HttpEndpoint) endpoint).setThrowExceptionOnFailure(property(camelContext, boolean.class, value)); return true;
case "bridgeEndpoint": ((HttpEndpoint) endpoint).setBridgeEndpoint(property(camelContext, boolean.class, value)); return true;
case "preserveHostHeader": ((HttpEndpoint) endpoint).setPreserveHostHeader(property(camelContext, boolean.class, value)); return true;
case "matchOnUriPrefix": ((HttpEndpoint) endpoint).setMatchOnUriPrefix(property(camelContext, boolean.class, value)); return true;
case "chunked": ((HttpEndpoint) endpoint).setChunked(property(camelContext, boolean.class, value)); return true;
case "disableStreamCache": ((HttpEndpoint) endpoint).setDisableStreamCache(property(camelContext, boolean.class, value)); return true;
case "transferException": ((HttpEndpoint) endpoint).setTransferException(property(camelContext, boolean.class, value)); return true;
case "muteException": ((HttpEndpoint) endpoint).setMuteException(property(camelContext, boolean.class, value)); return true;
case "connectionClose": ((HttpEndpoint) endpoint).setConnectionClose(property(camelContext, boolean.class, value)); return true;
case "traceEnabled": ((HttpEndpoint) endpoint).setTraceEnabled(property(camelContext, boolean.class, value)); return true;
case "optionsEnabled": ((HttpEndpoint) endpoint).setOptionsEnabled(property(camelContext, boolean.class, value)); return true;
case "httpMethodRestrict": ((HttpEndpoint) endpoint).setHttpMethodRestrict(property(camelContext, java.lang.String.class, value)); return true;
case "responseBufferSize": ((HttpEndpoint) endpoint).setResponseBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
case "ignoreResponseBody": ((HttpEndpoint) endpoint).setIgnoreResponseBody(property(camelContext, boolean.class, value)); return true;
case "copyHeaders": ((HttpEndpoint) endpoint).setCopyHeaders(property(camelContext, boolean.class, value)); return true;
case "eagerCheckContentAvailable": ((HttpEndpoint) endpoint).setEagerCheckContentAvailable(property(camelContext, boolean.class, value)); return true;
case "mapHttpMessageBody": ((HttpEndpoint) endpoint).setMapHttpMessageBody(property(camelContext, boolean.class, value)); return true;
case "mapHttpMessageHeaders": ((HttpEndpoint) endpoint).setMapHttpMessageHeaders(property(camelContext, boolean.class, value)); return true;
case "mapHttpMessageFormUrlEncodedBody": ((HttpEndpoint) endpoint).setMapHttpMessageFormUrlEncodedBody(property(camelContext, boolean.class, value)); return true;
case "okStatusCodeRange": ((HttpEndpoint) endpoint).setOkStatusCodeRange(property(camelContext, java.lang.String.class, value)); return true;
case "async": ((HttpEndpoint) endpoint).setAsync(property(camelContext, boolean.class, value)); return true;
case "cookieHandler": ((HttpEndpoint) endpoint).setCookieHandler(property(camelContext, org.apache.camel.http.common.cookie.CookieHandler.class, value)); return true;
case "httpMethod": ((HttpEndpoint) endpoint).setHttpMethod(property(camelContext, org.apache.camel.http.common.HttpMethods.class, value)); return true;
case "authMethod": ((HttpEndpoint) endpoint).setAuthMethod(property(camelContext, java.lang.String.class, value)); return true;
case "authMethodPriority": ((HttpEndpoint) endpoint).setAuthMethodPriority(property(camelContext, java.lang.String.class, value)); return true;
case "authUsername": ((HttpEndpoint) endpoint).setAuthUsername(property(camelContext, java.lang.String.class, value)); return true;
case "authPassword": ((HttpEndpoint) endpoint).setAuthPassword(property(camelContext, java.lang.String.class, value)); return true;
case "authDomain": ((HttpEndpoint) endpoint).setAuthDomain(property(camelContext, java.lang.String.class, value)); return true;
case "authHost": ((HttpEndpoint) endpoint).setAuthHost(property(camelContext, java.lang.String.class, value)); return true;
case "proxyHost": ((HttpEndpoint) endpoint).setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
case "proxyPort": ((HttpEndpoint) endpoint).setProxyPort(property(camelContext, int.class, value)); return true;
case "proxyAuthScheme": ((HttpEndpoint) endpoint).setProxyAuthScheme(property(camelContext, java.lang.String.class, value)); return true;
case "proxyAuthMethod": ((HttpEndpoint) endpoint).setProxyAuthMethod(property(camelContext, java.lang.String.class, value)); return true;
case "proxyAuthUsername": ((HttpEndpoint) endpoint).setProxyAuthUsername(property(camelContext, java.lang.String.class, value)); return true;
case "proxyAuthPassword": ((HttpEndpoint) endpoint).setProxyAuthPassword(property(camelContext, java.lang.String.class, value)); return true;
case "proxyAuthHost": ((HttpEndpoint) endpoint).setProxyAuthHost(property(camelContext, java.lang.String.class, value)); return true;
case "proxyAuthPort": ((HttpEndpoint) endpoint).setProxyAuthPort(property(camelContext, int.class, value)); return true;
case "proxyAuthDomain": ((HttpEndpoint) endpoint).setProxyAuthDomain(property(camelContext, java.lang.String.class, value)); return true;
case "lazyStartProducer": ((HttpEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeErrorHandler": ((HttpEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionHandler": ((HttpEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangePattern": ((HttpEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((HttpEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicPropertyBinding": ((HttpEndpoint) 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 "sslcontextparameters": ((HttpEndpoint) endpoint).setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
case "httpcontext": ((HttpEndpoint) endpoint).setHttpContext(property(camelContext, org.apache.http.protocol.HttpContext.class, value)); return true;
case "httpclientconfigurer": ((HttpEndpoint) endpoint).setHttpClientConfigurer(property(camelContext, org.apache.camel.component.http.HttpClientConfigurer.class, value)); return true;
case "httpclientoptions": ((HttpEndpoint) endpoint).setHttpClientOptions(property(camelContext, java.util.Map.class, value)); return true;
case "clientconnectionmanager": ((HttpEndpoint) endpoint).setClientConnectionManager(property(camelContext, org.apache.http.conn.HttpClientConnectionManager.class, value)); return true;
case "clientbuilder": ((HttpEndpoint) endpoint).setClientBuilder(property(camelContext, org.apache.http.impl.client.HttpClientBuilder.class, value)); return true;
case "httpclient": ((HttpEndpoint) endpoint).setHttpClient(property(camelContext, org.apache.http.client.HttpClient.class, value)); return true;
case "usesystemproperties": ((HttpEndpoint) endpoint).setUseSystemProperties(property(camelContext, boolean.class, value)); return true;
case "cookiestore": ((HttpEndpoint) endpoint).setCookieStore(property(camelContext, org.apache.http.client.CookieStore.class, value)); return true;
case "clearexpiredcookies": ((HttpEndpoint) endpoint).setClearExpiredCookies(property(camelContext, boolean.class, value)); return true;
case "authenticationpreemptive": ((HttpEndpoint) endpoint).setAuthenticationPreemptive(property(camelContext, boolean.class, value)); return true;
case "deletewithbody": ((HttpEndpoint) endpoint).setDeleteWithBody(property(camelContext, boolean.class, value)); return true;
case "maxtotalconnections": ((HttpEndpoint) endpoint).setMaxTotalConnections(property(camelContext, int.class, value)); return true;
case "connectionsperroute": ((HttpEndpoint) endpoint).setConnectionsPerRoute(property(camelContext, int.class, value)); return true;
case "x509hostnameverifier": ((HttpEndpoint) endpoint).setX509HostnameVerifier(property(camelContext, javax.net.ssl.HostnameVerifier.class, value)); return true;
case "headerfilterstrategy": ((HttpEndpoint) endpoint).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "httpbinding": ((HttpEndpoint) endpoint).setHttpBinding(property(camelContext, org.apache.camel.http.common.HttpBinding.class, value)); return true;
case "throwexceptiononfailure": ((HttpEndpoint) endpoint).setThrowExceptionOnFailure(property(camelContext, boolean.class, value)); return true;
case "bridgeendpoint": ((HttpEndpoint) endpoint).setBridgeEndpoint(property(camelContext, boolean.class, value)); return true;
case "preservehostheader": ((HttpEndpoint) endpoint).setPreserveHostHeader(property(camelContext, boolean.class, value)); return true;
case "matchonuriprefix": ((HttpEndpoint) endpoint).setMatchOnUriPrefix(property(camelContext, boolean.class, value)); return true;
case "chunked": ((HttpEndpoint) endpoint).setChunked(property(camelContext, boolean.class, value)); return true;
case "disablestreamcache": ((HttpEndpoint) endpoint).setDisableStreamCache(property(camelContext, boolean.class, value)); return true;
case "transferexception": ((HttpEndpoint) endpoint).setTransferException(property(camelContext, boolean.class, value)); return true;
case "muteexception": ((HttpEndpoint) endpoint).setMuteException(property(camelContext, boolean.class, value)); return true;
case "connectionclose": ((HttpEndpoint) endpoint).setConnectionClose(property(camelContext, boolean.class, value)); return true;
case "traceenabled": ((HttpEndpoint) endpoint).setTraceEnabled(property(camelContext, boolean.class, value)); return true;
case "optionsenabled": ((HttpEndpoint) endpoint).setOptionsEnabled(property(camelContext, boolean.class, value)); return true;
case "httpmethodrestrict": ((HttpEndpoint) endpoint).setHttpMethodRestrict(property(camelContext, java.lang.String.class, value)); return true;
case "responsebuffersize": ((HttpEndpoint) endpoint).setResponseBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
case "ignoreresponsebody": ((HttpEndpoint) endpoint).setIgnoreResponseBody(property(camelContext, boolean.class, value)); return true;
case "copyheaders": ((HttpEndpoint) endpoint).setCopyHeaders(property(camelContext, boolean.class, value)); return true;
case "eagercheckcontentavailable": ((HttpEndpoint) endpoint).setEagerCheckContentAvailable(property(camelContext, boolean.class, value)); return true;
case "maphttpmessagebody": ((HttpEndpoint) endpoint).setMapHttpMessageBody(property(camelContext, boolean.class, value)); return true;
case "maphttpmessageheaders": ((HttpEndpoint) endpoint).setMapHttpMessageHeaders(property(camelContext, boolean.class, value)); return true;
case "maphttpmessageformurlencodedbody": ((HttpEndpoint) endpoint).setMapHttpMessageFormUrlEncodedBody(property(camelContext, boolean.class, value)); return true;
case "okstatuscoderange": ((HttpEndpoint) endpoint).setOkStatusCodeRange(property(camelContext, java.lang.String.class, value)); return true;
case "async": ((HttpEndpoint) endpoint).setAsync(property(camelContext, boolean.class, value)); return true;
case "cookiehandler": ((HttpEndpoint) endpoint).setCookieHandler(property(camelContext, org.apache.camel.http.common.cookie.CookieHandler.class, value)); return true;
case "httpmethod": ((HttpEndpoint) endpoint).setHttpMethod(property(camelContext, org.apache.camel.http.common.HttpMethods.class, value)); return true;
case "authmethod": ((HttpEndpoint) endpoint).setAuthMethod(property(camelContext, java.lang.String.class, value)); return true;
case "authmethodpriority": ((HttpEndpoint) endpoint).setAuthMethodPriority(property(camelContext, java.lang.String.class, value)); return true;
case "authusername": ((HttpEndpoint) endpoint).setAuthUsername(property(camelContext, java.lang.String.class, value)); return true;
case "authpassword": ((HttpEndpoint) endpoint).setAuthPassword(property(camelContext, java.lang.String.class, value)); return true;
case "authdomain": ((HttpEndpoint) endpoint).setAuthDomain(property(camelContext, java.lang.String.class, value)); return true;
case "authhost": ((HttpEndpoint) endpoint).setAuthHost(property(camelContext, java.lang.String.class, value)); return true;
case "proxyhost": ((HttpEndpoint) endpoint).setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
case "proxyport": ((HttpEndpoint) endpoint).setProxyPort(property(camelContext, int.class, value)); return true;
case "proxyauthscheme": ((HttpEndpoint) endpoint).setProxyAuthScheme(property(camelContext, java.lang.String.class, value)); return true;
case "proxyauthmethod": ((HttpEndpoint) endpoint).setProxyAuthMethod(property(camelContext, java.lang.String.class, value)); return true;
case "proxyauthusername": ((HttpEndpoint) endpoint).setProxyAuthUsername(property(camelContext, java.lang.String.class, value)); return true;
case "proxyauthpassword": ((HttpEndpoint) endpoint).setProxyAuthPassword(property(camelContext, java.lang.String.class, value)); return true;
case "proxyauthhost": ((HttpEndpoint) endpoint).setProxyAuthHost(property(camelContext, java.lang.String.class, value)); return true;
case "proxyauthport": ((HttpEndpoint) endpoint).setProxyAuthPort(property(camelContext, int.class, value)); return true;
case "proxyauthdomain": ((HttpEndpoint) endpoint).setProxyAuthDomain(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer": ((HttpEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler": ((HttpEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler": ((HttpEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern": ((HttpEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((HttpEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicpropertybinding": ((HttpEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy