This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch CAMEL-15224 in repository https://gitbox.apache.org/repos/asf/camel.git
commit a8bb3e5c46a10a08d070519856e5b38f90bc95ac Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Jun 22 12:28:53 2020 +0200 CAMEL-15224: camel-api-component - Avoid reflection when configured nested configuration classes. --- components/camel-google-drive/pom.xml | 35 ++----- .../drive/DriveAboutEndpointConfiguration.java | 2 + .../DriveAboutEndpointConfigurationConfigurer.java | 80 ++++++++++++++++ .../drive/DriveAppsEndpointConfiguration.java | 2 + .../DriveAppsEndpointConfigurationConfigurer.java | 85 +++++++++++++++++ .../drive/DriveChangesEndpointConfiguration.java | 2 + ...riveChangesEndpointConfigurationConfigurer.java | 90 ++++++++++++++++++ .../drive/DriveChannelsEndpointConfiguration.java | 2 + ...iveChannelsEndpointConfigurationConfigurer.java | 85 +++++++++++++++++ .../drive/DriveChildrenEndpointConfiguration.java | 2 + ...iveChildrenEndpointConfigurationConfigurer.java | 95 +++++++++++++++++++ .../drive/DriveCommentsEndpointConfiguration.java | 2 + ...iveCommentsEndpointConfigurationConfigurer.java | 95 +++++++++++++++++++ .../drive/DriveFilesEndpointConfiguration.java | 2 + .../DriveFilesEndpointConfigurationConfigurer.java | 105 +++++++++++++++++++++ .../drive/DriveParentsEndpointConfiguration.java | 2 + ...riveParentsEndpointConfigurationConfigurer.java | 95 +++++++++++++++++++ .../DrivePermissionsEndpointConfiguration.java | 2 + ...PermissionsEndpointConfigurationConfigurer.java | 100 ++++++++++++++++++++ .../DrivePropertiesEndpointConfiguration.java | 2 + ...ePropertiesEndpointConfigurationConfigurer.java | 95 +++++++++++++++++++ .../drive/DriveRealtimeEndpointConfiguration.java | 2 + ...iveRealtimeEndpointConfigurationConfigurer.java | 90 ++++++++++++++++++ .../drive/DriveRepliesEndpointConfiguration.java | 2 + ...riveRepliesEndpointConfigurationConfigurer.java | 100 ++++++++++++++++++++ .../drive/DriveRevisionsEndpointConfiguration.java | 2 + ...veRevisionsEndpointConfigurationConfigurer.java | 95 +++++++++++++++++++ .../drive/GoogleDriveConfigurationConfigurer.java | 80 ++++++++++++++++ .../configurer/DriveAboutEndpointConfiguration | 2 + .../configurer/DriveAppsEndpointConfiguration | 2 + .../configurer/DriveChangesEndpointConfiguration | 2 + .../configurer/DriveChannelsEndpointConfiguration | 2 + .../configurer/DriveChildrenEndpointConfiguration | 2 + .../configurer/DriveCommentsEndpointConfiguration | 2 + .../configurer/DriveFilesEndpointConfiguration | 2 + .../configurer/DriveParentsEndpointConfiguration | 2 + .../DrivePermissionsEndpointConfiguration | 2 + .../DrivePropertiesEndpointConfiguration | 2 + .../configurer/DriveRealtimeEndpointConfiguration | 2 + .../configurer/DriveRepliesEndpointConfiguration | 2 + .../configurer/DriveRevisionsEndpointConfiguration | 2 + .../camel/configurer/GoogleDriveConfiguration | 2 + .../google/drive/GoogleDriveConfiguration.java | 2 + 43 files changed, 1352 insertions(+), 29 deletions(-) diff --git a/components/camel-google-drive/pom.xml b/components/camel-google-drive/pom.xml index 9bec812..ae9b703 100644 --- a/components/camel-google-drive/pom.xml +++ b/components/camel-google-drive/pom.xml @@ -190,27 +190,20 @@ </execution> </executions> </plugin> - - <!-- add generated source and test source to build --> <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.8</version> + <!-- we need to generate additional configurer classes --> + <groupId>org.apache.camel</groupId> + <artifactId>camel-package-maven-plugin</artifactId> <executions> <execution> - <id>add-generated-test-sources</id> + <id>generate-configurer</id> + <phase>process-classes</phase> <goals> - <goal>add-test-source</goal> + <goal>generate-configurer</goal> </goals> - <configuration> - <sources> - <source>${project.build.directory}/generated-test-sources/camel-component</source> - </sources> - </configuration> </execution> </executions> </plugin> - </plugins> <pluginManagement> @@ -231,22 +224,6 @@ </build> - <reporting> - <plugins> - <plugin> - <groupId>org.apache.camel</groupId> - <artifactId>camel-api-component-maven-plugin</artifactId> - <version>${project.version}</version> - <configuration> - <scheme>${schemeName}</scheme> - <componentName>${componentName}</componentName> - <componentPackage>${componentPackage}</componentPackage> - <outPackage>${outPackage}</outPackage> - </configuration> - </plugin> - </plugins> - </reporting> - <profiles> <profile> <id>google-drive-test</id> diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfiguration.java index 211b878..45d9193 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,5 +12,6 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$About */ @UriParams +@Configurer public final class DriveAboutEndpointConfiguration extends GoogleDriveConfiguration { } diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..25f87af --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfigurationConfigurer.java @@ -0,0 +1,80 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveAboutEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveAboutEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveAboutEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveAboutEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(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 "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveAboutEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveAboutEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfiguration.java index f13c487..bfa358a 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Apps */ @UriParams +@Configurer public final class DriveAppsEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..b1379c2 --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfigurationConfigurer.java @@ -0,0 +1,85 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveAppsEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveAppsEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "appid": + case "AppId": target.setAppId(property(camelContext, java.lang.String.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(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 "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("AppId", java.lang.String.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "appid": + case "AppId": return target.getAppId(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfiguration.java index 5745870..11fa5e4 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Changes */ @UriParams +@Configurer public final class DriveChangesEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..09e3610 --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfigurationConfigurer.java @@ -0,0 +1,90 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveChangesEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveChangesEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveChangesEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveChangesEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "changeid": + case "ChangeId": target.setChangeId(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "contentchannel": + case "ContentChannel": target.setContentChannel(property(camelContext, com.google.api.services.drive.model.Channel.class, value)); return true; + case "methodname": + case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true; + case "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ChangeId", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("ContentChannel", com.google.api.services.drive.model.Channel.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveChangesEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveChangesEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "changeid": + case "ChangeId": return target.getChangeId(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "contentchannel": + case "ContentChannel": return target.getContentChannel(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfiguration.java index 5e7066d..a34175b 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Channels */ @UriParams +@Configurer public final class DriveChannelsEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..ce0a01b --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfigurationConfigurer.java @@ -0,0 +1,85 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveChannelsEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveChannelsEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveChannelsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveChannelsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "contentchannel": + case "ContentChannel": target.setContentChannel(property(camelContext, com.google.api.services.drive.model.Channel.class, value)); return true; + case "methodname": + case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true; + case "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("ContentChannel", com.google.api.services.drive.model.Channel.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveChannelsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveChannelsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "contentchannel": + case "ContentChannel": return target.getContentChannel(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfiguration.java index f48899c..7443020 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Children */ @UriParams +@Configurer public final class DriveChildrenEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..0908fc5 --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfigurationConfigurer.java @@ -0,0 +1,95 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveChildrenEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveChildrenEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "childid": + case "ChildId": target.setChildId(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "content": + case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.ChildReference.class, value)); return true; + case "folderid": + case "FolderId": target.setFolderId(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 "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ChildId", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("Content", com.google.api.services.drive.model.ChildReference.class); + answer.put("FolderId", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "childid": + case "ChildId": return target.getChildId(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "content": + case "Content": return target.getContent(); + case "folderid": + case "FolderId": return target.getFolderId(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfiguration.java index 4595a90..ea2ceaa 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Comments */ @UriParams +@Configurer public final class DriveCommentsEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..aa312fb --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfigurationConfigurer.java @@ -0,0 +1,95 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveCommentsEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveCommentsEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveCommentsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveCommentsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "commentid": + case "CommentId": target.setCommentId(property(camelContext, java.lang.String.class, value)); return true; + case "content": + case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.Comment.class, value)); return true; + case "fileid": + case "FileId": target.setFileId(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 "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("CommentId", java.lang.String.class); + answer.put("Content", com.google.api.services.drive.model.Comment.class); + answer.put("FileId", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveCommentsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveCommentsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "commentid": + case "CommentId": return target.getCommentId(); + case "content": + case "Content": return target.getContent(); + case "fileid": + case "FileId": return target.getFileId(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfiguration.java index 6d5ef66..c5e75b3 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Files */ @UriParams +@Configurer public final class DriveFilesEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..ac9e15d --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfigurationConfigurer.java @@ -0,0 +1,105 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveFilesEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveFilesEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveFilesEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "content": + case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.File.class, value)); return true; + case "contentchannel": + case "ContentChannel": target.setContentChannel(property(camelContext, com.google.api.services.drive.model.Channel.class, value)); return true; + case "fileid": + case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true; + case "mediacontent": + case "MediaContent": target.setMediaContent(property(camelContext, com.google.api.client.http.AbstractInputStreamContent.class, value)); return true; + case "methodname": + case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true; + case "mimetype": + case "MimeType": target.setMimeType(property(camelContext, java.lang.String.class, value)); return true; + case "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("Content", com.google.api.services.drive.model.File.class); + answer.put("ContentChannel", com.google.api.services.drive.model.Channel.class); + answer.put("FileId", java.lang.String.class); + answer.put("MediaContent", com.google.api.client.http.AbstractInputStreamContent.class); + answer.put("MethodName", java.lang.String.class); + answer.put("MimeType", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveFilesEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveFilesEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "content": + case "Content": return target.getContent(); + case "contentchannel": + case "ContentChannel": return target.getContentChannel(); + case "fileid": + case "FileId": return target.getFileId(); + case "mediacontent": + case "MediaContent": return target.getMediaContent(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "mimetype": + case "MimeType": return target.getMimeType(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfiguration.java index 545f666..29e1ea4 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Parents */ @UriParams +@Configurer public final class DriveParentsEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..be8ee6e --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfigurationConfigurer.java @@ -0,0 +1,95 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveParentsEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveParentsEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "content": + case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.ParentReference.class, value)); return true; + case "fileid": + case "FileId": target.setFileId(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 "parentid": + case "ParentId": target.setParentId(property(camelContext, java.lang.String.class, value)); return true; + case "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("Content", com.google.api.services.drive.model.ParentReference.class); + answer.put("FileId", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("ParentId", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "content": + case "Content": return target.getContent(); + case "fileid": + case "FileId": return target.getFileId(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "parentid": + case "ParentId": return target.getParentId(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfiguration.java index e1990e6..2915e7e 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Permissions */ @UriParams +@Configurer public final class DrivePermissionsEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..37c6a1b --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfigurationConfigurer.java @@ -0,0 +1,100 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DrivePermissionsEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DrivePermissionsEndpointConfiguration target = (org.apache.camel.component.google.drive.DrivePermissionsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "content": + case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.Permission.class, value)); return true; + case "email": + case "Email": target.setEmail(property(camelContext, java.lang.String.class, value)); return true; + case "fileid": + case "FileId": target.setFileId(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 "permissionid": + case "PermissionId": target.setPermissionId(property(camelContext, java.lang.String.class, value)); return true; + case "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("Content", com.google.api.services.drive.model.Permission.class); + answer.put("Email", java.lang.String.class); + answer.put("FileId", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("PermissionId", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DrivePermissionsEndpointConfiguration target = (org.apache.camel.component.google.drive.DrivePermissionsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "content": + case "Content": return target.getContent(); + case "email": + case "Email": return target.getEmail(); + case "fileid": + case "FileId": return target.getFileId(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "permissionid": + case "PermissionId": return target.getPermissionId(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfiguration.java index 79fc470..6b1226b 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Properties */ @UriParams +@Configurer public final class DrivePropertiesEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..39d9c29 --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfigurationConfigurer.java @@ -0,0 +1,95 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DrivePropertiesEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration target = (org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "content": + case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.Property.class, value)); return true; + case "fileid": + case "FileId": target.setFileId(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 "propertykey": + case "PropertyKey": target.setPropertyKey(property(camelContext, java.lang.String.class, value)); return true; + case "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("Content", com.google.api.services.drive.model.Property.class); + answer.put("FileId", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("PropertyKey", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration target = (org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "content": + case "Content": return target.getContent(); + case "fileid": + case "FileId": return target.getFileId(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "propertykey": + case "PropertyKey": return target.getPropertyKey(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRealtimeEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRealtimeEndpointConfiguration.java index a34e982..b109530 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRealtimeEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRealtimeEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Realtime */ @UriParams +@Configurer public final class DriveRealtimeEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRealtimeEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRealtimeEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..982ea48 --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRealtimeEndpointConfigurationConfigurer.java @@ -0,0 +1,90 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveRealtimeEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveRealtimeEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveRealtimeEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveRealtimeEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "fileid": + case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true; + case "mediacontent": + case "MediaContent": target.setMediaContent(property(camelContext, com.google.api.client.http.AbstractInputStreamContent.class, value)); return true; + case "methodname": + case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true; + case "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("FileId", java.lang.String.class); + answer.put("MediaContent", com.google.api.client.http.AbstractInputStreamContent.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveRealtimeEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveRealtimeEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "fileid": + case "FileId": return target.getFileId(); + case "mediacontent": + case "MediaContent": return target.getMediaContent(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfiguration.java index 5a204a7..2cd0ccd 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Replies */ @UriParams +@Configurer public final class DriveRepliesEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..ac80383 --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfigurationConfigurer.java @@ -0,0 +1,100 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveRepliesEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveRepliesEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveRepliesEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "commentid": + case "CommentId": target.setCommentId(property(camelContext, java.lang.String.class, value)); return true; + case "content": + case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.CommentReply.class, value)); return true; + case "fileid": + case "FileId": target.setFileId(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 "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "replyid": + case "ReplyId": target.setReplyId(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("CommentId", java.lang.String.class); + answer.put("Content", com.google.api.services.drive.model.CommentReply.class); + answer.put("FileId", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("ReplyId", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveRepliesEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveRepliesEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "commentid": + case "CommentId": return target.getCommentId(); + case "content": + case "Content": return target.getContent(); + case "fileid": + case "FileId": return target.getFileId(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "replyid": + case "ReplyId": return target.getReplyId(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfiguration.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfiguration.java index f4bb6ab..2501023 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfiguration.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfiguration.java @@ -4,6 +4,7 @@ */ package org.apache.camel.component.google.drive; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -11,6 +12,7 @@ import org.apache.camel.spi.UriParams; * Camel EndpointConfiguration for com.google.api.services.drive.Drive$Revisions */ @UriParams +@Configurer public final class DriveRevisionsEndpointConfiguration extends GoogleDriveConfiguration { @UriParam diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfigurationConfigurer.java new file mode 100644 index 0000000..381afbd --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfigurationConfigurer.java @@ -0,0 +1,95 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.DriveRevisionsEndpointConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class DriveRevisionsEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveRevisionsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveRevisionsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true; + case "content": + case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.Revision.class, value)); return true; + case "fileid": + case "FileId": target.setFileId(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 "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "revisionid": + case "RevisionId": target.setRevisionId(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("Content", com.google.api.services.drive.model.Revision.class); + answer.put("FileId", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("RevisionId", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.DriveRevisionsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveRevisionsEndpointConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "content": + case "Content": return target.getContent(); + case "fileid": + case "FileId": return target.getFileId(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "revisionid": + case "RevisionId": return target.getRevisionId(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveConfigurationConfigurer.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveConfigurationConfigurer.java new file mode 100644 index 0000000..530eb01 --- /dev/null +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveConfigurationConfigurer.java @@ -0,0 +1,80 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.component.google.drive; + +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.component.google.drive.GoogleDriveConfiguration; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class GoogleDriveConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + + @Override + public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { + org.apache.camel.component.google.drive.GoogleDriveConfiguration target = (org.apache.camel.component.google.drive.GoogleDriveConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true; + case "apiname": + case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true; + case "applicationname": + case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true; + case "clientid": + case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true; + case "clientsecret": + case "ClientSecret": target.setClientSecret(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 "refreshtoken": + case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true; + case "scopes": + case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true; + default: return false; + } + } + + @Override + public Map<String, Object> getAllOptions(Object target) { + Map<String, Object> answer = new CaseInsensitiveMap(); + answer.put("AccessToken", java.lang.String.class); + answer.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class); + answer.put("ApplicationName", java.lang.String.class); + answer.put("ClientId", java.lang.String.class); + answer.put("ClientSecret", java.lang.String.class); + answer.put("MethodName", java.lang.String.class); + answer.put("RefreshToken", java.lang.String.class); + answer.put("Scopes", java.util.List.class); + return answer; + } + + @Override + public Object getOptionValue(Object obj, String name, boolean ignoreCase) { + org.apache.camel.component.google.drive.GoogleDriveConfiguration target = (org.apache.camel.component.google.drive.GoogleDriveConfiguration) obj; + switch (ignoreCase ? name.toLowerCase() : name) { + case "accesstoken": + case "AccessToken": return target.getAccessToken(); + case "apiname": + case "ApiName": return target.getApiName(); + case "applicationname": + case "ApplicationName": return target.getApplicationName(); + case "clientid": + case "ClientId": return target.getClientId(); + case "clientsecret": + case "ClientSecret": return target.getClientSecret(); + case "methodname": + case "MethodName": return target.getMethodName(); + case "refreshtoken": + case "RefreshToken": return target.getRefreshToken(); + case "scopes": + case "Scopes": return target.getScopes(); + default: return null; + } + } +} + diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveAboutEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveAboutEndpointConfiguration new file mode 100644 index 0000000..a7031d9 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveAboutEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveAboutEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveAppsEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveAppsEndpointConfiguration new file mode 100644 index 0000000..c8cff76 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveAppsEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveAppsEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChangesEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChangesEndpointConfiguration new file mode 100644 index 0000000..d82afc2 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChangesEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveChangesEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChannelsEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChannelsEndpointConfiguration new file mode 100644 index 0000000..304c417 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChannelsEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveChannelsEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChildrenEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChildrenEndpointConfiguration new file mode 100644 index 0000000..918ae64 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveChildrenEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveChildrenEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveCommentsEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveCommentsEndpointConfiguration new file mode 100644 index 0000000..ad5deb4 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveCommentsEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveCommentsEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveFilesEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveFilesEndpointConfiguration new file mode 100644 index 0000000..a527bc9 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveFilesEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveFilesEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveParentsEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveParentsEndpointConfiguration new file mode 100644 index 0000000..b42887d --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveParentsEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveParentsEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DrivePermissionsEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DrivePermissionsEndpointConfiguration new file mode 100644 index 0000000..f70f08a --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DrivePermissionsEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DrivePermissionsEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DrivePropertiesEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DrivePropertiesEndpointConfiguration new file mode 100644 index 0000000..2a14370 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DrivePropertiesEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DrivePropertiesEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRealtimeEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRealtimeEndpointConfiguration new file mode 100644 index 0000000..600888a --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRealtimeEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveRealtimeEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRepliesEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRepliesEndpointConfiguration new file mode 100644 index 0000000..3823cc9 --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRepliesEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveRepliesEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRevisionsEndpointConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRevisionsEndpointConfiguration new file mode 100644 index 0000000..5bb137b --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/DriveRevisionsEndpointConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.DriveRevisionsEndpointConfigurationConfigurer diff --git a/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/GoogleDriveConfiguration b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/GoogleDriveConfiguration new file mode 100644 index 0000000..6d2e08d --- /dev/null +++ b/components/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/GoogleDriveConfiguration @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.component.google.drive.GoogleDriveConfigurationConfigurer diff --git a/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java b/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java index 63210a8..f1ac21e 100644 --- a/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java +++ b/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java @@ -21,6 +21,7 @@ import java.util.List; import com.google.api.services.drive.DriveScopes; import org.apache.camel.component.google.drive.internal.GoogleDriveApiName; +import org.apache.camel.spi.Configurer; import org.apache.camel.spi.Metadata; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; @@ -30,6 +31,7 @@ import org.apache.camel.spi.UriPath; * Component configuration for GoogleDrive component. */ @UriParams +@Configurer public class GoogleDriveConfiguration { private static final List<String> DEFAULT_SCOPES = Arrays.asList(DriveScopes.DRIVE_FILE, DriveScopes.DRIVE_APPS_READONLY, DriveScopes.DRIVE_METADATA_READONLY, DriveScopes.DRIVE);