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

org.apache.camel.component.olingo2.Olingo2AppEndpointConfigurationConfigurer Maven / Gradle / Ivy

There is a newer version: 4.8.1
Show newest version
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.olingo2;

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.component.olingo2.Olingo2AppEndpointConfiguration;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@SuppressWarnings("unchecked")
public class Olingo2AppEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {

    private static final Map ALL_OPTIONS;
    static {
        Map map = new CaseInsensitiveMap();
        map.put("ApiName", org.apache.camel.component.olingo2.internal.Olingo2ApiName.class);
        map.put("ConnectTimeout", int.class);
        map.put("ContentType", java.lang.String.class);
        map.put("Data", java.lang.Object.class);
        map.put("Edm", org.apache.olingo.odata2.api.edm.Edm.class);
        map.put("EndpointHttpHeaders", java.util.Map.class);
        map.put("EntityProviderReadProperties", org.apache.olingo.odata2.api.ep.EntityProviderReadProperties.class);
        map.put("EntityProviderWriteProperties", org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties.class);
        map.put("FilterAlreadySeen", boolean.class);
        map.put("HttpAsyncClientBuilder", org.apache.http.impl.nio.client.HttpAsyncClientBuilder.class);
        map.put("HttpClientBuilder", org.apache.http.impl.client.HttpClientBuilder.class);
        map.put("HttpHeaders", java.util.Map.class);
        map.put("KeyPredicate", java.lang.String.class);
        map.put("MethodName", java.lang.String.class);
        map.put("Proxy", org.apache.http.HttpHost.class);
        map.put("QueryParams", java.util.Map.class);
        map.put("ResourcePath", java.lang.String.class);
        map.put("ResponseHandler", org.apache.camel.component.olingo2.api.Olingo2ResponseHandler.class);
        map.put("ServiceUri", java.lang.String.class);
        map.put("SocketTimeout", int.class);
        map.put("SplitResult", boolean.class);
        map.put("SslContextParameters", org.apache.camel.support.jsse.SSLContextParameters.class);
        ALL_OPTIONS = map;
    }

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        org.apache.camel.component.olingo2.Olingo2AppEndpointConfiguration target = (org.apache.camel.component.olingo2.Olingo2AppEndpointConfiguration) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "apiname":
        case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.olingo2.internal.Olingo2ApiName.class, value)); return true;
        case "connecttimeout":
        case "ConnectTimeout": target.setConnectTimeout(property(camelContext, int.class, value)); return true;
        case "contenttype":
        case "ContentType": target.setContentType(property(camelContext, java.lang.String.class, value)); return true;
        case "data":
        case "Data": target.setData(property(camelContext, java.lang.Object.class, value)); return true;
        case "edm":
        case "Edm": target.setEdm(property(camelContext, org.apache.olingo.odata2.api.edm.Edm.class, value)); return true;
        case "endpointhttpheaders":
        case "EndpointHttpHeaders": target.setEndpointHttpHeaders(property(camelContext, java.util.Map.class, value)); return true;
        case "entityproviderreadproperties":
        case "EntityProviderReadProperties": target.setEntityProviderReadProperties(property(camelContext, org.apache.olingo.odata2.api.ep.EntityProviderReadProperties.class, value)); return true;
        case "entityproviderwriteproperties":
        case "EntityProviderWriteProperties": target.setEntityProviderWriteProperties(property(camelContext, org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties.class, value)); return true;
        case "filteralreadyseen":
        case "FilterAlreadySeen": target.setFilterAlreadySeen(property(camelContext, boolean.class, value)); return true;
        case "httpasyncclientbuilder":
        case "HttpAsyncClientBuilder": target.setHttpAsyncClientBuilder(property(camelContext, org.apache.http.impl.nio.client.HttpAsyncClientBuilder.class, value)); return true;
        case "httpclientbuilder":
        case "HttpClientBuilder": target.setHttpClientBuilder(property(camelContext, org.apache.http.impl.client.HttpClientBuilder.class, value)); return true;
        case "httpheaders":
        case "HttpHeaders": target.setHttpHeaders(property(camelContext, java.util.Map.class, value)); return true;
        case "keypredicate":
        case "KeyPredicate": target.setKeyPredicate(property(camelContext, java.lang.String.class, value)); return true;
        case "methodname":
        case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
        case "proxy":
        case "Proxy": target.setProxy(property(camelContext, org.apache.http.HttpHost.class, value)); return true;
        case "queryparams":
        case "QueryParams": target.setQueryParams(property(camelContext, java.util.Map.class, value)); return true;
        case "resourcepath":
        case "ResourcePath": target.setResourcePath(property(camelContext, java.lang.String.class, value)); return true;
        case "responsehandler":
        case "ResponseHandler": target.setResponseHandler(property(camelContext, org.apache.camel.component.olingo2.api.Olingo2ResponseHandler.class, value)); return true;
        case "serviceuri":
        case "ServiceUri": target.setServiceUri(property(camelContext, java.lang.String.class, value)); return true;
        case "sockettimeout":
        case "SocketTimeout": target.setSocketTimeout(property(camelContext, int.class, value)); return true;
        case "splitresult":
        case "SplitResult": target.setSplitResult(property(camelContext, boolean.class, value)); return true;
        case "sslcontextparameters":
        case "SslContextParameters": target.setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Map getAllOptions(Object target) {
        return ALL_OPTIONS;
    }

    @Override
    public Class getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "apiname":
        case "ApiName": return org.apache.camel.component.olingo2.internal.Olingo2ApiName.class;
        case "connecttimeout":
        case "ConnectTimeout": return int.class;
        case "contenttype":
        case "ContentType": return java.lang.String.class;
        case "data":
        case "Data": return java.lang.Object.class;
        case "edm":
        case "Edm": return org.apache.olingo.odata2.api.edm.Edm.class;
        case "endpointhttpheaders":
        case "EndpointHttpHeaders": return java.util.Map.class;
        case "entityproviderreadproperties":
        case "EntityProviderReadProperties": return org.apache.olingo.odata2.api.ep.EntityProviderReadProperties.class;
        case "entityproviderwriteproperties":
        case "EntityProviderWriteProperties": return org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties.class;
        case "filteralreadyseen":
        case "FilterAlreadySeen": return boolean.class;
        case "httpasyncclientbuilder":
        case "HttpAsyncClientBuilder": return org.apache.http.impl.nio.client.HttpAsyncClientBuilder.class;
        case "httpclientbuilder":
        case "HttpClientBuilder": return org.apache.http.impl.client.HttpClientBuilder.class;
        case "httpheaders":
        case "HttpHeaders": return java.util.Map.class;
        case "keypredicate":
        case "KeyPredicate": return java.lang.String.class;
        case "methodname":
        case "MethodName": return java.lang.String.class;
        case "proxy":
        case "Proxy": return org.apache.http.HttpHost.class;
        case "queryparams":
        case "QueryParams": return java.util.Map.class;
        case "resourcepath":
        case "ResourcePath": return java.lang.String.class;
        case "responsehandler":
        case "ResponseHandler": return org.apache.camel.component.olingo2.api.Olingo2ResponseHandler.class;
        case "serviceuri":
        case "ServiceUri": return java.lang.String.class;
        case "sockettimeout":
        case "SocketTimeout": return int.class;
        case "splitresult":
        case "SplitResult": return boolean.class;
        case "sslcontextparameters":
        case "SslContextParameters": return org.apache.camel.support.jsse.SSLContextParameters.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        org.apache.camel.component.olingo2.Olingo2AppEndpointConfiguration target = (org.apache.camel.component.olingo2.Olingo2AppEndpointConfiguration) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "apiname":
        case "ApiName": return target.getApiName();
        case "connecttimeout":
        case "ConnectTimeout": return target.getConnectTimeout();
        case "contenttype":
        case "ContentType": return target.getContentType();
        case "data":
        case "Data": return target.getData();
        case "edm":
        case "Edm": return target.getEdm();
        case "endpointhttpheaders":
        case "EndpointHttpHeaders": return target.getEndpointHttpHeaders();
        case "entityproviderreadproperties":
        case "EntityProviderReadProperties": return target.getEntityProviderReadProperties();
        case "entityproviderwriteproperties":
        case "EntityProviderWriteProperties": return target.getEntityProviderWriteProperties();
        case "filteralreadyseen":
        case "FilterAlreadySeen": return target.isFilterAlreadySeen();
        case "httpasyncclientbuilder":
        case "HttpAsyncClientBuilder": return target.getHttpAsyncClientBuilder();
        case "httpclientbuilder":
        case "HttpClientBuilder": return target.getHttpClientBuilder();
        case "httpheaders":
        case "HttpHeaders": return target.getHttpHeaders();
        case "keypredicate":
        case "KeyPredicate": return target.getKeyPredicate();
        case "methodname":
        case "MethodName": return target.getMethodName();
        case "proxy":
        case "Proxy": return target.getProxy();
        case "queryparams":
        case "QueryParams": return target.getQueryParams();
        case "resourcepath":
        case "ResourcePath": return target.getResourcePath();
        case "responsehandler":
        case "ResponseHandler": return target.getResponseHandler();
        case "serviceuri":
        case "ServiceUri": return target.getServiceUri();
        case "sockettimeout":
        case "SocketTimeout": return target.getSocketTimeout();
        case "splitresult":
        case "SplitResult": return target.isSplitResult();
        case "sslcontextparameters":
        case "SslContextParameters": return target.getSslContextParameters();
        default: return null;
        }
    }

    @Override
    public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "endpointhttpheaders":
        case "EndpointHttpHeaders": return java.lang.String.class;
        case "httpheaders":
        case "HttpHeaders": return java.lang.String.class;
        case "queryparams":
        case "QueryParams": return java.lang.String.class;
        case "responsehandler":
        case "ResponseHandler": return java.util.List.class;
        default: return null;
        }
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy