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 f314403a03dcdd81c5054619f22a9c0d661529ab
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Nov 19 20:15:46 2022 +0100

    Regen
---
 .../apache/camel/springboot/catalog/languages/python.json   |  2 ++
 .../camel-python-starter/src/main/docs/python.json          |  6 ++++++
 .../python/springboot/PythonLanguageConfiguration.java      | 13 +++++++++++++
 tooling/camel-spring-boot-dependencies/pom.xml              |  5 +++++
 4 files changed, 26 insertions(+)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/languages/python.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/languages/python.json
index cc4c2945dcd..d591dbbbd30 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/languages/python.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/languages/python.json
@@ -17,6 +17,8 @@
   },
   "properties": {
     "expression": { "kind": "value", "displayName": "Expression", "required": 
true, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The expression value in 
your chosen language syntax" },
+    "resultType": { "kind": "attribute", "displayName": "Result Type", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the class of the result type (type from output)" },
+    "headerName": { "kind": "attribute", "displayName": "Header Name", 
"label": "advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of header to use as input, instead of the message body It 
has as higher precedent than the propertyName if both are set." },
     "trim": { "kind": "attribute", "displayName": "Trim", "label": "advanced", 
"required": false, "type": "boolean", "javaType": "java.lang.Boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Whether to trim the value to remove leading and trailing 
whitespaces and line breaks" },
     "id": { "kind": "attribute", "displayName": "Id", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Sets the id of this node" }
   }
diff --git a/components-starter/camel-python-starter/src/main/docs/python.json 
b/components-starter/camel-python-starter/src/main/docs/python.json
index 18ca25421de..e022db12176 100644
--- a/components-starter/camel-python-starter/src/main/docs/python.json
+++ b/components-starter/camel-python-starter/src/main/docs/python.json
@@ -24,6 +24,12 @@
       "description": "Whether to enable auto configuration of the python 
language. This is enabled by default.",
       "sourceType": 
"org.apache.camel.language.python.springboot.PythonLanguageConfiguration"
     },
+    {
+      "name": "camel.language.python.header-name",
+      "type": "java.lang.String",
+      "description": "Name of header to use as input, instead of the message 
body It has as higher precedent than the propertyName if both are set.",
+      "sourceType": 
"org.apache.camel.language.python.springboot.PythonLanguageConfiguration"
+    },
     {
       "name": "camel.language.python.trim",
       "type": "java.lang.Boolean",
diff --git 
a/components-starter/camel-python-starter/src/main/java/org/apache/camel/language/python/springboot/PythonLanguageConfiguration.java
 
b/components-starter/camel-python-starter/src/main/java/org/apache/camel/language/python/springboot/PythonLanguageConfiguration.java
index b5ac13075c0..338d0d87113 100644
--- 
a/components-starter/camel-python-starter/src/main/java/org/apache/camel/language/python/springboot/PythonLanguageConfiguration.java
+++ 
b/components-starter/camel-python-starter/src/main/java/org/apache/camel/language/python/springboot/PythonLanguageConfiguration.java
@@ -36,12 +36,25 @@ public class PythonLanguageConfiguration
      * enabled by default.
      */
     private Boolean enabled;
+    /**
+     * Name of header to use as input, instead of the message body It has as
+     * higher precedent than the propertyName if both are set.
+     */
+    private String headerName;
     /**
      * Whether to trim the value to remove leading and trailing whitespaces and
      * line breaks
      */
     private Boolean trim = true;
 
+    public String getHeaderName() {
+        return headerName;
+    }
+
+    public void setHeaderName(String headerName) {
+        this.headerName = headerName;
+    }
+
     public Boolean getTrim() {
         return trim;
     }
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml 
b/tooling/camel-spring-boot-dependencies/pom.xml
index fa6ef672874..6e33e61fc9d 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -3153,6 +3153,11 @@
         <artifactId>camel-java-joor-dsl</artifactId>
         <version>3.20.0-SNAPSHOT</version>
       </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>camel-javascript</artifactId>
+        <version>3.20.0-SNAPSHOT</version>
+      </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
         <artifactId>camel-jaxb</artifactId>

Reply via email to