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

davsclaus pushed a commit to branch re
in repository https://gitbox.apache.org/repos/asf/camel.git

commit e5092cbdff9dd21706ad01bb9d2aaa917aaf1d6f
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jun 26 14:35:02 2025 +0200

    CAMEL-22200: components that are resource endpoint based should have 
content cache true as default and make it configurable on component level.
---
 .../dsl/ChunkComponentBuilderFactory.java          | 18 +++++++++
 .../dsl/FreemarkerComponentBuilderFactory.java     | 18 +++++++++
 .../component/dsl/JoltComponentBuilderFactory.java | 18 +++++++++
 .../component/dsl/JsltComponentBuilderFactory.java | 18 +++++++++
 .../dsl/JsonPatchComponentBuilderFactory.java      | 40 ++++++++++++++++++++
 .../dsl/JsonValidatorComponentBuilderFactory.java  | 18 +++++++++
 .../dsl/JsonataComponentBuilderFactory.java        | 40 ++++++++++++++++++++
 .../component/dsl/JteComponentBuilderFactory.java  | 18 +++++++++
 .../dsl/LanguageComponentBuilderFactory.java       | 40 ++++++++++++++++++++
 .../dsl/MustacheComponentBuilderFactory.java       | 18 +++++++++
 .../component/dsl/MvelComponentBuilderFactory.java | 18 +++++++++
 .../dsl/StringTemplateComponentBuilderFactory.java | 18 +++++++++
 .../dsl/ThymeleafComponentBuilderFactory.java      | 44 ++++++++++++++++++++++
 .../dsl/VelocityComponentBuilderFactory.java       | 18 +++++++++
 14 files changed, 344 insertions(+)

diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ChunkComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ChunkComponentBuilderFactory.java
index 4688a4cf127..16c568439ca 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ChunkComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ChunkComponentBuilderFactory.java
@@ -93,6 +93,23 @@ public interface ChunkComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default ChunkComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -155,6 +172,7 @@ public interface ChunkComponentBuilderFactory {
             switch (name) {
             case "allowContextMapAll": ((ChunkComponent) 
component).setAllowContextMapAll((boolean) value); return true;
             case "allowTemplateFromHeader": ((ChunkComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((ChunkComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((ChunkComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((ChunkComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             default: return false;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/FreemarkerComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/FreemarkerComponentBuilderFactory.java
index 406a3ae5ecf..d2ab945bc36 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/FreemarkerComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/FreemarkerComponentBuilderFactory.java
@@ -93,6 +93,23 @@ public interface FreemarkerComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default FreemarkerComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -189,6 +206,7 @@ public interface FreemarkerComponentBuilderFactory {
             switch (name) {
             case "allowContextMapAll": ((FreemarkerComponent) 
component).setAllowContextMapAll((boolean) value); return true;
             case "allowTemplateFromHeader": ((FreemarkerComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((FreemarkerComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((FreemarkerComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "localizedLookup": ((FreemarkerComponent) 
component).setLocalizedLookup((boolean) value); return true;
             case "autowiredEnabled": ((FreemarkerComponent) 
component).setAutowiredEnabled((boolean) value); return true;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JoltComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JoltComponentBuilderFactory.java
index b0dca83060b..01ecb303767 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JoltComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JoltComponentBuilderFactory.java
@@ -72,6 +72,23 @@ public interface JoltComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default JoltComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -150,6 +167,7 @@ public interface JoltComponentBuilderFactory {
                 Object value) {
             switch (name) {
             case "allowTemplateFromHeader": ((JoltComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((JoltComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((JoltComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((JoltComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             case "transform": ((JoltComponent) 
component).setTransform((com.bazaarvoice.jolt.Transform) value); return true;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsltComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsltComponentBuilderFactory.java
index d27da9321d8..6ac3a20766f 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsltComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsltComponentBuilderFactory.java
@@ -72,6 +72,23 @@ public interface JsltComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default JsltComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -165,6 +182,7 @@ public interface JsltComponentBuilderFactory {
                 Object value) {
             switch (name) {
             case "allowTemplateFromHeader": ((JsltComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((JsltComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((JsltComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((JsltComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             case "functions": ((JsltComponent) 
component).setFunctions((java.util.Collection) value); return true;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
index 0751bade6ba..febdd58b880 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
@@ -51,6 +51,44 @@ public interface JsonPatchComponentBuilderFactory {
     interface JsonPatchComponentBuilder extends 
ComponentBuilder<JsonPatchComponent> {
     
         
+        /**
+         * 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 security
+         * vulnerability if the header is coming from a malicious user, so use
+         * this with care.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param allowTemplateFromHeader the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchComponentBuilder allowTemplateFromHeader(boolean 
allowTemplateFromHeader) {
+            doSetProperty("allowTemplateFromHeader", allowTemplateFromHeader);
+            return this;
+        }
+    
+        
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -111,6 +149,8 @@ public interface JsonPatchComponentBuilderFactory {
                 String name,
                 Object value) {
             switch (name) {
+            case "allowTemplateFromHeader": ((JsonPatchComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((JsonPatchComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((JsonPatchComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((JsonPatchComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             default: return false;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonValidatorComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonValidatorComponentBuilderFactory.java
index e31f56e2826..4a51c784ced 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonValidatorComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonValidatorComponentBuilderFactory.java
@@ -51,6 +51,23 @@ public interface JsonValidatorComponentBuilderFactory {
     interface JsonValidatorComponentBuilder extends 
ComponentBuilder<JsonValidatorComponent> {
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default JsonValidatorComponentBuilder contentCache(boolean 
contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -144,6 +161,7 @@ public interface JsonValidatorComponentBuilderFactory {
                 String name,
                 Object value) {
             switch (name) {
+            case "contentCache": ((JsonValidatorComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((JsonValidatorComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "useDefaultObjectMapper": ((JsonValidatorComponent) 
component).setUseDefaultObjectMapper((boolean) value); return true;
             case "autowiredEnabled": ((JsonValidatorComponent) 
component).setAutowiredEnabled((boolean) value); return true;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonataComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonataComponentBuilderFactory.java
index 4d5c3985b2e..c776f041178 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonataComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonataComponentBuilderFactory.java
@@ -51,6 +51,44 @@ public interface JsonataComponentBuilderFactory {
     interface JsonataComponentBuilder extends 
ComponentBuilder<JsonataComponent> {
     
         
+        /**
+         * 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 security
+         * vulnerability if the header is coming from a malicious user, so use
+         * this with care.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param allowTemplateFromHeader the value to set
+         * @return the dsl builder
+         */
+        default JsonataComponentBuilder allowTemplateFromHeader(boolean 
allowTemplateFromHeader) {
+            doSetProperty("allowTemplateFromHeader", allowTemplateFromHeader);
+            return this;
+        }
+    
+        
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default JsonataComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -127,6 +165,8 @@ public interface JsonataComponentBuilderFactory {
                 String name,
                 Object value) {
             switch (name) {
+            case "allowTemplateFromHeader": ((JsonataComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((JsonataComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((JsonataComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((JsonataComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             case "frameBinding": ((JsonataComponent) 
component).setFrameBinding((org.apache.camel.component.jsonata.JsonataFrameBinding)
 value); return true;
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 45f65adf17f..cd3b0a9aa66 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,6 +93,23 @@ public interface JteComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default JteComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Content type the JTE engine should use.
          * 
@@ -209,6 +226,7 @@ public interface JteComponentBuilderFactory {
             switch (name) {
             case "allowContextMapAll": ((JteComponent) 
component).setAllowContextMapAll((boolean) value); return true;
             case "allowTemplateFromHeader": ((JteComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((JteComponent) 
component).setContentCache((boolean) value); return true;
             case "contentType": ((JteComponent) 
component).setContentType((gg.jte.ContentType) value); return true;
             case "lazyStartProducer": ((JteComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "preCompile": ((JteComponent) 
component).setPreCompile((boolean) value); return true;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/LanguageComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/LanguageComponentBuilderFactory.java
index fe81d13a54a..59cdc44129a 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/LanguageComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/LanguageComponentBuilderFactory.java
@@ -51,6 +51,44 @@ public interface LanguageComponentBuilderFactory {
     interface LanguageComponentBuilder extends 
ComponentBuilder<LanguageComponent> {
     
         
+        /**
+         * 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 security
+         * vulnerability if the header is coming from a malicious user, so use
+         * this with care.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param allowTemplateFromHeader the value to set
+         * @return the dsl builder
+         */
+        default LanguageComponentBuilder allowTemplateFromHeader(boolean 
allowTemplateFromHeader) {
+            doSetProperty("allowTemplateFromHeader", allowTemplateFromHeader);
+            return this;
+        }
+    
+        
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default LanguageComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -111,6 +149,8 @@ public interface LanguageComponentBuilderFactory {
                 String name,
                 Object value) {
             switch (name) {
+            case "allowTemplateFromHeader": ((LanguageComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((LanguageComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((LanguageComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((LanguageComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             default: return false;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MustacheComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MustacheComponentBuilderFactory.java
index f82047a9929..195ceaaa1d4 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MustacheComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MustacheComponentBuilderFactory.java
@@ -93,6 +93,23 @@ public interface MustacheComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default MustacheComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -172,6 +189,7 @@ public interface MustacheComponentBuilderFactory {
             switch (name) {
             case "allowContextMapAll": ((MustacheComponent) 
component).setAllowContextMapAll((boolean) value); return true;
             case "allowTemplateFromHeader": ((MustacheComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((MustacheComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((MustacheComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((MustacheComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             case "mustacheFactory": ((MustacheComponent) 
component).setMustacheFactory((com.github.mustachejava.MustacheFactory) value); 
return true;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MvelComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MvelComponentBuilderFactory.java
index f3ba1c90a5e..9946760e73d 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MvelComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MvelComponentBuilderFactory.java
@@ -93,6 +93,23 @@ public interface MvelComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default MvelComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -155,6 +172,7 @@ public interface MvelComponentBuilderFactory {
             switch (name) {
             case "allowContextMapAll": ((MvelComponent) 
component).setAllowContextMapAll((boolean) value); return true;
             case "allowTemplateFromHeader": ((MvelComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((MvelComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((MvelComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((MvelComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             default: return false;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StringTemplateComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StringTemplateComponentBuilderFactory.java
index 24e0883a019..2820517a9b6 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StringTemplateComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StringTemplateComponentBuilderFactory.java
@@ -93,6 +93,23 @@ public interface StringTemplateComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default StringTemplateComponentBuilder contentCache(boolean 
contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -155,6 +172,7 @@ public interface StringTemplateComponentBuilderFactory {
             switch (name) {
             case "allowContextMapAll": ((StringTemplateComponent) 
component).setAllowContextMapAll((boolean) value); return true;
             case "allowTemplateFromHeader": ((StringTemplateComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((StringTemplateComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((StringTemplateComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((StringTemplateComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             default: return false;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ThymeleafComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ThymeleafComponentBuilderFactory.java
index c6b18a66018..603248b984a 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ThymeleafComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ThymeleafComponentBuilderFactory.java
@@ -51,6 +51,48 @@ public interface ThymeleafComponentBuilderFactory {
     interface ThymeleafComponentBuilder extends 
ComponentBuilder<ThymeleafComponent> {
     
         
+        /**
+         * 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
+         * CamelContext. Doing so impose a potential security risk as this 
opens
+         * access to the full power of CamelContext API.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param allowContextMapAll the value to set
+         * @return the dsl builder
+         */
+        default ThymeleafComponentBuilder allowContextMapAll(boolean 
allowContextMapAll) {
+            doSetProperty("allowContextMapAll", allowContextMapAll);
+            return this;
+        }
+    
+        
+        /**
+         * 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 security
+         * vulnerability if the header is coming from a malicious user, so use
+         * this with care.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param allowTemplateFromHeader the value to set
+         * @return the dsl builder
+         */
+        default ThymeleafComponentBuilder allowTemplateFromHeader(boolean 
allowTemplateFromHeader) {
+            doSetProperty("allowTemplateFromHeader", allowTemplateFromHeader);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -111,6 +153,8 @@ public interface ThymeleafComponentBuilderFactory {
                 String name,
                 Object value) {
             switch (name) {
+            case "allowContextMapAll": ((ThymeleafComponent) 
component).setAllowContextMapAll((boolean) value); return true;
+            case "allowTemplateFromHeader": ((ThymeleafComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
             case "lazyStartProducer": ((ThymeleafComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((ThymeleafComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             default: return false;
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/VelocityComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/VelocityComponentBuilderFactory.java
index ea2129ee2ed..ff41a2bca1b 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/VelocityComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/VelocityComponentBuilderFactory.java
@@ -93,6 +93,23 @@ public interface VelocityComponentBuilderFactory {
         }
     
         
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default VelocityComponentBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+    
+        
         /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes 
to
@@ -171,6 +188,7 @@ public interface VelocityComponentBuilderFactory {
             switch (name) {
             case "allowContextMapAll": ((VelocityComponent) 
component).setAllowContextMapAll((boolean) value); return true;
             case "allowTemplateFromHeader": ((VelocityComponent) 
component).setAllowTemplateFromHeader((boolean) value); return true;
+            case "contentCache": ((VelocityComponent) 
component).setContentCache((boolean) value); return true;
             case "lazyStartProducer": ((VelocityComponent) 
component).setLazyStartProducer((boolean) value); return true;
             case "autowiredEnabled": ((VelocityComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             case "velocityEngine": ((VelocityComponent) 
component).setVelocityEngine((org.apache.velocity.app.VelocityEngine) value); 
return true;

Reply via email to