You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/08/21 13:06:55 UTC

[camel-spring-boot] branch main updated (9253fdea1a2 -> 904eebcbc76)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


    from 9253fdea1a2 Regen
     new 77be28b8563 CAMEL-19765: camel-core - SPI for DumpRouteStrategy.
     new 904eebcbc76 Regen

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../springboot/catalog/components/aws2-ec2.json    |  2 +-
 .../src/main/docs/spring-boot.json                 | 34 ++++++++++++++++++++++
 .../spring/boot/CamelConfigurationProperties.java  | 29 ++++++++++++++++++
 3 files changed, 64 insertions(+), 1 deletion(-)


[camel-spring-boot] 01/02: CAMEL-19765: camel-core - SPI for DumpRouteStrategy.

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit 77be28b856388c5fd0cc73753e1575391d4e1a54
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 21 15:06:37 2023 +0200

    CAMEL-19765: camel-core - SPI for DumpRouteStrategy.
---
 .../src/main/docs/spring-boot.json                 | 34 ++++++++++++++++++++++
 .../spring/boot/CamelConfigurationProperties.java  | 29 ++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.json b/core/camel-spring-boot/src/main/docs/spring-boot.json
index 9531e5fa046..b1f825a0f72 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.json
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.json
@@ -607,6 +607,40 @@
       "description": "If dumping is enabled then Camel will during startup dump all loaded routes (incl rests and route templates) represented as XML\/YAML DSL into the log. This is intended for trouble shooting or to assist during development. Sensitive information that may be configured in the route endpoints could potentially be included in the dump output and is therefore not recommended being used for production usage. This requires to have camel-xml-io\/camel-yaml-io on the classpa [...]
       "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties"
     },
+    {
+      "name": "camel.springboot.dump-routes-directory",
+      "type": "java.lang.String",
+      "description": "Whether to save route dumps to files in the given directory. The name of the files are based on original loaded resource, or an autogenerated name.",
+      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties"
+    },
+    {
+      "name": "camel.springboot.dump-routes-include",
+      "type": "java.lang.String",
+      "description": "Controls what to include in output for route dumping. Possible values: routes, rests, routeTemplates. Multiple values can be separated by comma. Default is routes.",
+      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": "routes"
+    },
+    {
+      "name": "camel.springboot.dump-routes-log",
+      "type": "java.lang.Boolean",
+      "description": "Whether to log route dumps to Logger",
+      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": true
+    },
+    {
+      "name": "camel.springboot.dump-routes-resolve-placeholders",
+      "type": "java.lang.Boolean",
+      "description": "Whether to resolve property placeholders in the dumped output. Default is true.",
+      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": true
+    },
+    {
+      "name": "camel.springboot.dump-routes-uri-as-parameters",
+      "type": "java.lang.Boolean",
+      "description": "When dumping routes to YAML format, then this option controls whether endpoint URIs should be expanded into a key\/value parameters.",
+      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": false
+    },
     {
       "name": "camel.springboot.duration-max-action",
       "type": "java.lang.String",
diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
index 3bf4fda6a70..46088321bd7 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
@@ -644,6 +644,35 @@ public class CamelConfigurationProperties extends DefaultConfigurationProperties
      */
     private String dumpRoutes;
 
+    /**
+     * Controls what to include in output for route dumping.
+     *
+     * Possible values: routes, rests, routeTemplates. Multiple values can be separated by comma. Default is routes.
+     */
+    private String dumpRoutesInclude = "routes";
+
+    /**
+     * Whether to log route dumps to Logger
+     */
+    private boolean dumpRoutesLog = true;
+
+    /**
+     * Whether to resolve property placeholders in the dumped output. Default is true.
+     */
+    private boolean dumpRoutesResolvePlaceholders = true;
+
+    /**
+     * When dumping routes to YAML format, then this option controls whether endpoint URIs should be expanded into a
+     * key/value parameters.
+     */
+    private boolean dumpRoutesUriAsParameters;
+
+    /**
+     * Whether to save route dumps to files in the given directory. The name of the files are based on original loaded
+     * resource, or an autogenerated name.
+     */
+    private String dumpRoutesDirectory;
+
     /**
      * Sets global options that can be referenced in the camel context
      *


[camel-spring-boot] 02/02: Regen

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit 904eebcbc7657c84ee28f42363fa724eaf4900e9
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 21 15:06:46 2023 +0200

    Regen
---
 .../org/apache/camel/springboot/catalog/components/aws2-ec2.json        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ec2.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ec2.json
index 6d9d42bb7ce..95dca136759 100644
--- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ec2.json
+++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ec2.json
@@ -45,7 +45,7 @@
   },
   "headers": {
     "CamelAwsEC2ImageId": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "An image ID of the AWS marketplace", "constantName": "org.apache.camel.component.aws2.ec2.AWS2EC2Constants#IMAGE_ID" },
-    "CamelAwsEC2InstanceType": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "software.amazon.awssdk.services.ec2.model.InstanceType", "enum": [ "a1.medium", "a1.large", "a1.xlarge", "a1.2xlarge", "a1.4xlarge", "a1.metal", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge",  [...]
+    "CamelAwsEC2InstanceType": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "software.amazon.awssdk.services.ec2.model.InstanceType", "enum": [ "a1.medium", "a1.large", "a1.xlarge", "a1.2xlarge", "a1.4xlarge", "a1.metal", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge",  [...]
     "CamelAwsEC2Operation": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation we want to perform", "constantName": "org.apache.camel.component.aws2.ec2.AWS2EC2Constants#OPERATION" },
     "CamelAwsEC2InstanceMinCount": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The minimum number of instances we want to run.", "constantName": "org.apache.camel.component.aws2.ec2.AWS2EC2Constants#INSTANCE_MIN_COUNT" },
     "CamelAwsEC2InstanceMaxCount": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The maximum number of instances we want to run.", "constantName": "org.apache.camel.component.aws2.ec2.AWS2EC2Constants#INSTANCE_MAX_COUNT" },