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/12/25 15:37:28 UTC

(camel) branch main updated: CAMEL-15570: camel-jte component

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.git


The following commit(s) were added to refs/heads/main by this push:
     new d0bd867da42 CAMEL-15570: camel-jte component
d0bd867da42 is described below

commit d0bd867da425472913f85cc898680489bad4e5e2
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Dec 25 16:37:17 2023 +0100

    CAMEL-15570: camel-jte component
---
 .../generated/resources/org/apache/camel/catalog/components/jte.json    | 2 +-
 .../src/generated/resources/org/apache/camel/component/jte/jte.json     | 2 +-
 .../src/main/java/org/apache/camel/component/jte/JteComponent.java      | 2 +-
 .../apache/camel/builder/component/dsl/JteComponentBuilderFactory.java  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jte.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jte.json
index dfffd862f86..69a29ec7923 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jte.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jte.json
@@ -24,7 +24,7 @@
   "componentProperties": {
     "allowContextMapAll": { "index": 0, "kind": "property", "displayName": "Allow Context Map All", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and Ca [...]
     "allowTemplateFromHeader": { "index": 1, "kind": "property", "displayName": "Allow Template From Header", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to allow to use resource template from header or not (default false). Enabling this allows to specify dynamic templates via message header. However this can be seen as a potential se [...]
-    "contentType": { "index": 2, "kind": "property", "displayName": "Content Type", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "gg.jte.ContentType", "enum": [ "plain", "html" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "plain", "description": "Content type the JTE engine should use." },
+    "contentType": { "index": 2, "kind": "property", "displayName": "Content Type", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "gg.jte.ContentType", "enum": [ "Plain", "Html" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Plain", "description": "Content type the JTE engine should use." },
     "lazyStartProducer": { "index": 3, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
     "preCompile": { "index": 4, "kind": "property", "displayName": "Pre Compile", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To speed up startup and rendering on your production server, it is possible to precompile all templates during the build. This way, the template engine can load each template's .class file directly without first compil [...]
     "workDir": { "index": 5, "kind": "property", "displayName": "Work Dir", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "jte-classes", "description": "Work directory where JTE will store compiled templates." },
diff --git a/components/camel-jte/src/generated/resources/org/apache/camel/component/jte/jte.json b/components/camel-jte/src/generated/resources/org/apache/camel/component/jte/jte.json
index dfffd862f86..69a29ec7923 100644
--- a/components/camel-jte/src/generated/resources/org/apache/camel/component/jte/jte.json
+++ b/components/camel-jte/src/generated/resources/org/apache/camel/component/jte/jte.json
@@ -24,7 +24,7 @@
   "componentProperties": {
     "allowContextMapAll": { "index": 0, "kind": "property", "displayName": "Allow Context Map All", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and Ca [...]
     "allowTemplateFromHeader": { "index": 1, "kind": "property", "displayName": "Allow Template From Header", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to allow to use resource template from header or not (default false). Enabling this allows to specify dynamic templates via message header. However this can be seen as a potential se [...]
-    "contentType": { "index": 2, "kind": "property", "displayName": "Content Type", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "gg.jte.ContentType", "enum": [ "plain", "html" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "plain", "description": "Content type the JTE engine should use." },
+    "contentType": { "index": 2, "kind": "property", "displayName": "Content Type", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "gg.jte.ContentType", "enum": [ "Plain", "Html" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Plain", "description": "Content type the JTE engine should use." },
     "lazyStartProducer": { "index": 3, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
     "preCompile": { "index": 4, "kind": "property", "displayName": "Pre Compile", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To speed up startup and rendering on your production server, it is possible to precompile all templates during the build. This way, the template engine can load each template's .class file directly without first compil [...]
     "workDir": { "index": 5, "kind": "property", "displayName": "Work Dir", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "jte-classes", "description": "Work directory where JTE will store compiled templates." },
diff --git a/components/camel-jte/src/main/java/org/apache/camel/component/jte/JteComponent.java b/components/camel-jte/src/main/java/org/apache/camel/component/jte/JteComponent.java
index 269a674ac1c..6c7c250b888 100644
--- a/components/camel-jte/src/main/java/org/apache/camel/component/jte/JteComponent.java
+++ b/components/camel-jte/src/main/java/org/apache/camel/component/jte/JteComponent.java
@@ -41,7 +41,7 @@ public class JteComponent extends DefaultComponent {
     private String workDir = "jte-classes";
     @Metadata
     private boolean preCompile;
-    @Metadata(defaultValue = "plain", enums = "plain,html")
+    @Metadata(defaultValue = "Plain")
     private ContentType contentType = ContentType.Plain;
     @Metadata
     private boolean allowTemplateFromHeader;
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JteComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JteComponentBuilderFactory.java
index 09a4ab901ce..b4c7666bc07 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JteComponentBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JteComponentBuilderFactory.java
@@ -93,7 +93,7 @@ public interface JteComponentBuilderFactory {
          * 
          * The option is a: &lt;code&gt;gg.jte.ContentType&lt;/code&gt; type.
          * 
-         * Default: plain
+         * Default: Plain
          * Group: producer
          * 
          * @param contentType the value to set