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

commit 5755784879e61cc8862f6bbb5f88b2d8efd60bad
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 11:03:41 2026 +0100

    CAMEL-23832: camel-chunk - improve the component and option descriptions
    
    This commit rewrites the component description and the texts of 6 endpoint 
options, 1 component option and 2 headers
    of chunk. The old encoding text spoke of the body, while Chunk uses it to 
read the template files of the theme folder.
    themeSubfolder is a comma-separated list of theme layers, themeLayer names 
a subtemplate of the file, and extension is
    not used at all.
    
    Documentation only, no behavior change. The component JSON, the catalog 
copy, the doc page header and the DSL are
    regenerated. camel-chunk is marked as done in 
tasks/component-descriptions.md.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../org/apache/camel/catalog/components/chunk.json | 20 +++----
 .../apache/camel/catalog/docs/chunk-component.adoc |  2 +-
 .../org/apache/camel/component/chunk/chunk.json    | 20 +++----
 .../camel-chunk/src/main/docs/chunk-component.adoc |  2 +-
 .../camel/component/chunk/ChunkComponent.java      | 10 ++--
 .../camel/component/chunk/ChunkConstants.java      | 10 +++-
 .../camel/component/chunk/ChunkEndpoint.java       | 31 ++++++-----
 .../component/ComponentsBuilderFactory.java        |  2 +-
 .../dsl/ChunkComponentBuilderFactory.java          | 14 ++---
 .../builder/endpoint/EndpointHeaderBuilders.java   |  2 +-
 .../builder/endpoint/StaticEndpointBuilders.java   |  4 +-
 .../endpoint/dsl/ChunkEndpointBuilderFactory.java  | 63 ++++++++++++++--------
 tasks/component-descriptions.md                    |  2 +-
 13 files changed, 104 insertions(+), 78 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/chunk.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/chunk.json
index 8973803658fc..e1ef84921e03 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/chunk.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/chunk.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "chunk",
     "title": "Chunk",
-    "description": "Transform messages using Chunk templating engine.",
+    "description": "Transform a message into text with a Chunk template.",
     "deprecated": false,
     "firstVersion": "2.15.0",
     "label": "transformation",
@@ -25,14 +25,14 @@
   },
   "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 [...]
+    "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 the producer uses the template of the 
CamelChunkResourceUri header or the template text of the CamelChunkTemplate 
header instead of the resourceUri. If false, the producer ignores bo [...]
     "contentCache": { "index": 2, "kind": "property", "displayName": "Content 
Cache", "group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "description": "Sets whether to use resource 
content cache or not" },
     "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 [...]
     "autowiredEnabled": { "index": 4, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "CamelChunkResourceUri": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "A URI 
for the template resource to use instead of the endpoint configured.", 
"constantName": 
"org.apache.camel.component.chunk.ChunkConstants#CHUNK_RESOURCE_URI" },
-    "CamelChunkTemplate": { "index": 1, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
template to use instead of the endpoint configured.", "constantName": 
"org.apache.camel.component.chunk.ChunkConstants#CHUNK_TEMPLATE" }
+    "CamelChunkResourceUri": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
URI of the template that the producer uses instead of the resourceUri, in the 
same format, for example letter or file:templates\/letter.chtml. The producer 
reads it only when allowTemplateFromHeader is true, and removes it. It takes 
precedence over the CamelC [...]
+    "CamelChunkTemplate": { "index": 1, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
template text that the producer renders instead of the resourceUri. The 
producer reads it only when allowTemplateFromHeader is true, and removes it.", 
"constantName": 
"org.apache.camel.component.chunk.ChunkConstants#CHUNK_TEMPLATE" }
   },
   "bodyTypes": {
     "producerIn": { "carriers": [ "any" ], "description": "The template gets 
the body as {$body}, as it is: text, or a Map, a List or a POJO to read from; 
no body prints as empty text, and bytes or a stream are not read as text. The 
template is the resource, or the CamelChunkTemplate header with 
allowTemplateFromHeader=true, never the body" },
@@ -41,13 +41,13 @@
   "properties": {
     "resourceUri": { "index": 0, "kind": "path", "displayName": "Resource 
Uri", "group": "producer", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "supportFileReference": true, "description": "Path to the 
resource. You can prefix with: classpath, file, http, ref, or bean. classpath, 
file and http loads the resource using these protocols (classpath is default). 
ref will lookup the resource in the  [...]
     "allowContextMapAll": { "index": 1, "kind": "parameter", "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 C [...]
-    "allowTemplateFromHeader": { "index": 2, "kind": "parameter", 
"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 s [...]
+    "allowTemplateFromHeader": { "index": 2, "kind": "parameter", 
"displayName": "Allow Template From Header", "group": "producer", "label": "", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": false, 
"description": "Whether the producer uses the template of the 
CamelChunkResourceUri header or the template text of the CamelChunkTemplate 
header instead of the resourceUri. If false, the producer ignores b [...]
     "contentCache": { "index": 3, "kind": "parameter", "displayName": "Content 
Cache", "group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "description": "Sets whether to use resource 
content cache or not" },
-    "encoding": { "index": 4, "kind": "parameter", "displayName": "Encoding", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Define the encoding of the body" },
-    "extension": { "index": 5, "kind": "parameter", "displayName": 
"Extension", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "Define the file extension of the 
template" },
-    "themeFolder": { "index": 6, "kind": "parameter", "displayName": "Theme 
Folder", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Define the themes folder to scan" },
-    "themeLayer": { "index": 7, "kind": "parameter", "displayName": "Theme 
Layer", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Define the theme layer to elaborate" },
-    "themeSubfolder": { "index": 8, "kind": "parameter", "displayName": "Theme 
Subfolder", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "Define the themes subfolder to scan" },
+    "encoding": { "index": 4, "kind": "parameter", "displayName": "Encoding", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The character encoding of the template files 
that Chunk loads from the theme folder, for example ISO-8859-1. If not set, 
Chunk uses UTF-8, or the value of the chunk.template.charset system property. 
It does not apply to a resourceUri wit [...]
+    "extension": { "index": 5, "kind": "parameter", "displayName": 
"Extension", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "Not used: Chunk loads the template 
files of the theme folder with the file extension chtml." },
+    "themeFolder": { "index": 6, "kind": "parameter", "displayName": "Theme 
Folder", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The folder of the template files, as a path on 
the classpath that is a directory of the file system, for example mythemes. 
Chunk looks up a resourceUri without a scheme, and the templates that a 
template includes, in this folder.  [...]
+    "themeLayer": { "index": 7, "kind": "parameter", "displayName": "Theme 
Layer", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of a subtemplate in the template 
file, for example example_1 for the part that starts with the tag {#example_1}. 
The producer then renders only this part. It applies only to a resourceUri 
without a scheme." },
+    "themeSubfolder": { "index": 8, "kind": "parameter", "displayName": "Theme 
Subfolder", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "The subfolder of themeFolder that holds 
the template files. Chunk reads it as a comma-separated list of theme layers, 
and a later layer takes precedence when several hold the same template. It 
needs the themeFolder option." },
     "lazyStartProducer": { "index": 9, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "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 produc [...]
   }
 }
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/chunk-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/chunk-component.adoc
index 7eded1be9487..ce40bede7932 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/chunk-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/chunk-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Chunk
 :shortname: chunk
 :artifactid: camel-chunk
-:description: Transform messages using Chunk templating engine.
+:description: Transform a message into text with a Chunk template.
 :since: 2.15
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-chunk/src/generated/resources/META-INF/org/apache/camel/component/chunk/chunk.json
 
b/components/camel-chunk/src/generated/resources/META-INF/org/apache/camel/component/chunk/chunk.json
index 8973803658fc..e1ef84921e03 100644
--- 
a/components/camel-chunk/src/generated/resources/META-INF/org/apache/camel/component/chunk/chunk.json
+++ 
b/components/camel-chunk/src/generated/resources/META-INF/org/apache/camel/component/chunk/chunk.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "chunk",
     "title": "Chunk",
-    "description": "Transform messages using Chunk templating engine.",
+    "description": "Transform a message into text with a Chunk template.",
     "deprecated": false,
     "firstVersion": "2.15.0",
     "label": "transformation",
@@ -25,14 +25,14 @@
   },
   "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 [...]
+    "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 the producer uses the template of the 
CamelChunkResourceUri header or the template text of the CamelChunkTemplate 
header instead of the resourceUri. If false, the producer ignores bo [...]
     "contentCache": { "index": 2, "kind": "property", "displayName": "Content 
Cache", "group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "description": "Sets whether to use resource 
content cache or not" },
     "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 [...]
     "autowiredEnabled": { "index": 4, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "CamelChunkResourceUri": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "A URI 
for the template resource to use instead of the endpoint configured.", 
"constantName": 
"org.apache.camel.component.chunk.ChunkConstants#CHUNK_RESOURCE_URI" },
-    "CamelChunkTemplate": { "index": 1, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
template to use instead of the endpoint configured.", "constantName": 
"org.apache.camel.component.chunk.ChunkConstants#CHUNK_TEMPLATE" }
+    "CamelChunkResourceUri": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
URI of the template that the producer uses instead of the resourceUri, in the 
same format, for example letter or file:templates\/letter.chtml. The producer 
reads it only when allowTemplateFromHeader is true, and removes it. It takes 
precedence over the CamelC [...]
+    "CamelChunkTemplate": { "index": 1, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
template text that the producer renders instead of the resourceUri. The 
producer reads it only when allowTemplateFromHeader is true, and removes it.", 
"constantName": 
"org.apache.camel.component.chunk.ChunkConstants#CHUNK_TEMPLATE" }
   },
   "bodyTypes": {
     "producerIn": { "carriers": [ "any" ], "description": "The template gets 
the body as {$body}, as it is: text, or a Map, a List or a POJO to read from; 
no body prints as empty text, and bytes or a stream are not read as text. The 
template is the resource, or the CamelChunkTemplate header with 
allowTemplateFromHeader=true, never the body" },
@@ -41,13 +41,13 @@
   "properties": {
     "resourceUri": { "index": 0, "kind": "path", "displayName": "Resource 
Uri", "group": "producer", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "supportFileReference": true, "description": "Path to the 
resource. You can prefix with: classpath, file, http, ref, or bean. classpath, 
file and http loads the resource using these protocols (classpath is default). 
ref will lookup the resource in the  [...]
     "allowContextMapAll": { "index": 1, "kind": "parameter", "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 C [...]
-    "allowTemplateFromHeader": { "index": 2, "kind": "parameter", 
"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 s [...]
+    "allowTemplateFromHeader": { "index": 2, "kind": "parameter", 
"displayName": "Allow Template From Header", "group": "producer", "label": "", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": false, 
"description": "Whether the producer uses the template of the 
CamelChunkResourceUri header or the template text of the CamelChunkTemplate 
header instead of the resourceUri. If false, the producer ignores b [...]
     "contentCache": { "index": 3, "kind": "parameter", "displayName": "Content 
Cache", "group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "description": "Sets whether to use resource 
content cache or not" },
-    "encoding": { "index": 4, "kind": "parameter", "displayName": "Encoding", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Define the encoding of the body" },
-    "extension": { "index": 5, "kind": "parameter", "displayName": 
"Extension", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "Define the file extension of the 
template" },
-    "themeFolder": { "index": 6, "kind": "parameter", "displayName": "Theme 
Folder", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Define the themes folder to scan" },
-    "themeLayer": { "index": 7, "kind": "parameter", "displayName": "Theme 
Layer", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Define the theme layer to elaborate" },
-    "themeSubfolder": { "index": 8, "kind": "parameter", "displayName": "Theme 
Subfolder", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "Define the themes subfolder to scan" },
+    "encoding": { "index": 4, "kind": "parameter", "displayName": "Encoding", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The character encoding of the template files 
that Chunk loads from the theme folder, for example ISO-8859-1. If not set, 
Chunk uses UTF-8, or the value of the chunk.template.charset system property. 
It does not apply to a resourceUri wit [...]
+    "extension": { "index": 5, "kind": "parameter", "displayName": 
"Extension", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "Not used: Chunk loads the template 
files of the theme folder with the file extension chtml." },
+    "themeFolder": { "index": 6, "kind": "parameter", "displayName": "Theme 
Folder", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The folder of the template files, as a path on 
the classpath that is a directory of the file system, for example mythemes. 
Chunk looks up a resourceUri without a scheme, and the templates that a 
template includes, in this folder.  [...]
+    "themeLayer": { "index": 7, "kind": "parameter", "displayName": "Theme 
Layer", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of a subtemplate in the template 
file, for example example_1 for the part that starts with the tag {#example_1}. 
The producer then renders only this part. It applies only to a resourceUri 
without a scheme." },
+    "themeSubfolder": { "index": 8, "kind": "parameter", "displayName": "Theme 
Subfolder", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "The subfolder of themeFolder that holds 
the template files. Chunk reads it as a comma-separated list of theme layers, 
and a later layer takes precedence when several hold the same template. It 
needs the themeFolder option." },
     "lazyStartProducer": { "index": 9, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "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 produc [...]
   }
 }
diff --git a/components/camel-chunk/src/main/docs/chunk-component.adoc 
b/components/camel-chunk/src/main/docs/chunk-component.adoc
index 7eded1be9487..ce40bede7932 100644
--- a/components/camel-chunk/src/main/docs/chunk-component.adoc
+++ b/components/camel-chunk/src/main/docs/chunk-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Chunk
 :shortname: chunk
 :artifactid: camel-chunk
-:description: Transform messages using Chunk templating engine.
+:description: Transform a message into text with a Chunk template.
 :since: 2.15
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkComponent.java
 
b/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkComponent.java
index 9ff6b70d09b3..2eaa6a289e80 100644
--- 
a/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkComponent.java
+++ 
b/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkComponent.java
@@ -28,7 +28,9 @@ public class ChunkComponent extends DefaultComponent {
 
     @Metadata(defaultValue = "true", description = "Sets whether to use 
resource content cache or not")
     private boolean contentCache = true;
-    @Metadata
+    @Metadata(description = "Whether the producer uses the template of the 
CamelChunkResourceUri header or the template text of"
+                            + " the CamelChunkTemplate header instead of the 
resourceUri. If false, the producer ignores both"
+                            + " headers. Enable it only when the route sets 
these headers, not a message sender.")
     private boolean allowTemplateFromHeader;
     @Metadata
     private boolean allowContextMapAll;
@@ -50,12 +52,6 @@ public class ChunkComponent extends DefaultComponent {
         return allowTemplateFromHeader;
     }
 
-    /**
-     * 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.
-     */
     public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader) {
         this.allowTemplateFromHeader = allowTemplateFromHeader;
     }
diff --git 
a/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkConstants.java
 
b/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkConstants.java
index 0d0357b99b87..5d8887ca9308 100644
--- 
a/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkConstants.java
+++ 
b/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkConstants.java
@@ -26,13 +26,19 @@ public final class ChunkConstants {
     /**
      * Header containing a Chunk template location
      */
-    @Metadata(description = "A URI for the template resource to use instead of 
the endpoint configured.", javaType = "String")
+    @Metadata(description = "The URI of the template that the producer uses 
instead of the resourceUri, in the same format, for"
+                            + " example letter or file:templates/letter.chtml. 
The producer reads it only when"
+                            + " allowTemplateFromHeader is true, and removes 
it. It takes precedence over the CamelChunkTemplate"
+                            + " header.",
+              javaType = "String")
     public static final String CHUNK_RESOURCE_URI = "CamelChunkResourceUri";
 
     /**
      * Header containing the Chunk template code
      */
-    @Metadata(description = "The template to use instead of the endpoint 
configured.", javaType = "String")
+    @Metadata(description = "The template text that the producer renders 
instead of the resourceUri. The producer reads it only"
+                            + " when allowTemplateFromHeader is true, and 
removes it.",
+              javaType = "String")
     public static final String CHUNK_TEMPLATE = "CamelChunkTemplate";
 
     /**
diff --git 
a/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkEndpoint.java
 
b/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkEndpoint.java
index 197e14364080..a174a34aaacd 100644
--- 
a/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkEndpoint.java
+++ 
b/components/camel-chunk/src/main/java/org/apache/camel/component/chunk/ChunkEndpoint.java
@@ -53,7 +53,7 @@ import static 
org.apache.camel.component.chunk.ChunkConstants.CHUNK_RESOURCE_URI
 import static org.apache.camel.component.chunk.ChunkConstants.CHUNK_TEMPLATE;
 
 /**
- * Transform messages using Chunk templating engine.
+ * Transform a message into text with a Chunk template.
  */
 @UriEndpoint(firstVersion = "2.15.0", scheme = "chunk", title = "Chunk", 
syntax = "chunk:resourceUri", producerOnly = true,
              remote = false, category = { Category.TRANSFORMATION }, 
headersClass = ChunkConstants.class)
@@ -70,17 +70,28 @@ public class ChunkEndpoint extends ResourceEndpoint {
     private Theme theme;
     private Chunk chunk;
 
-    @UriParam(defaultValue = "false")
+    @UriParam(defaultValue = "false",
+              description = "Whether the producer uses the template of the 
CamelChunkResourceUri header or the template text of"
+                            + " the CamelChunkTemplate header instead of the 
resourceUri. If false, the producer ignores both"
+                            + " headers. Enable it only when the route sets 
these headers, not a message sender.")
     private boolean allowTemplateFromHeader;
-    @UriParam(description = "Define the encoding of the body")
+    @UriParam(description = "The character encoding of the template files that 
Chunk loads from the theme folder, for example"
+                            + " ISO-8859-1. If not set, Chunk uses UTF-8, or 
the value of the chunk.template.charset system"
+                            + " property. It does not apply to a resourceUri 
with a scheme such as classpath: or file:.")
     private String encoding;
-    @UriParam(description = "Define the themes folder to scan")
+    @UriParam(description = "The folder of the template files, as a path on 
the classpath that is a directory of the file"
+                            + " system, for example mythemes. Chunk looks up a 
resourceUri without a scheme, and the templates"
+                            + " that a template includes, in this folder. If 
not set, Chunk uses the themes folder.")
     private String themeFolder;
-    @UriParam(description = "Define the themes subfolder to scan")
+    @UriParam(description = "The subfolder of themeFolder that holds the 
template files. Chunk reads it as a comma-separated"
+                            + " list of theme layers, and a later layer takes 
precedence when several hold the same template."
+                            + " It needs the themeFolder option.")
     private String themeSubfolder;
-    @UriParam(description = "Define the theme layer to elaborate")
+    @UriParam(description = "The name of a subtemplate in the template file, 
for example example_1 for the part that starts"
+                            + " with the tag {#example_1}. The producer then 
renders only this part. It applies only to a"
+                            + " resourceUri without a scheme.")
     private String themeLayer;
-    @UriParam(description = "Define the file extension of the template")
+    @UriParam(description = "Not used: Chunk loads the template files of the 
theme folder with the file extension chtml.")
     private String extension;
 
     public ChunkEndpoint() {
@@ -344,12 +355,6 @@ public class ChunkEndpoint extends ResourceEndpoint {
         return allowTemplateFromHeader;
     }
 
-    /**
-     * 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.
-     */
     public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader) {
         this.allowTemplateFromHeader = allowTemplateFromHeader;
     }
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 95a2243ebc0a..05c4929eb866 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -1139,7 +1139,7 @@ public interface ComponentsBuilderFactory {
     }
     /**
      * Chunk (camel-chunk)
-     * Transform messages using Chunk templating engine.
+     * Transform a message into text with a Chunk template.
      * 
      * Category: transformation
      * Since: 2.15
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 16c568439cac..ffb7d959d7fa 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
@@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
 import org.apache.camel.component.chunk.ChunkComponent;
 
 /**
- * Transform messages using Chunk templating engine.
+ * Transform a message into text with a Chunk template.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -33,7 +33,7 @@ public interface ChunkComponentBuilderFactory {
 
     /**
      * Chunk (camel-chunk)
-     * Transform messages using Chunk templating engine.
+     * Transform a message into text with a Chunk template.
      * 
      * Category: transformation
      * Since: 2.15
@@ -73,11 +73,11 @@ public interface ChunkComponentBuilderFactory {
     
         
         /**
-         * 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.
+         * Whether the producer uses the template of the CamelChunkResourceUri
+         * header or the template text of the CamelChunkTemplate header instead
+         * of the resourceUri. If false, the producer ignores both headers.
+         * Enable it only when the route sets these headers, not a message
+         * sender.
          * 
          * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
          * 
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 268c93e56f1e..4aad1f30ff70 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -1012,7 +1012,7 @@ public class EndpointHeaderBuilders {
     }
     /**
      * Chunk (camel-chunk)
-     * Transform messages using Chunk templating engine.
+     * Transform a message into text with a Chunk template.
      * 
      * Category: transformation
      * Since: 2.15
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index b03e2fa499a9..9e4536576517 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -3698,7 +3698,7 @@ public class StaticEndpointBuilders {
     }
     /**
      * Chunk (camel-chunk)
-     * Transform messages using Chunk templating engine.
+     * Transform a message into text with a Chunk template.
      * 
      * Category: transformation
      * Since: 2.15
@@ -3723,7 +3723,7 @@ public class StaticEndpointBuilders {
     }
     /**
      * Chunk (camel-chunk)
-     * Transform messages using Chunk templating engine.
+     * Transform a message into text with a Chunk template.
      * 
      * Category: transformation
      * Since: 2.15
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ChunkEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ChunkEndpointBuilderFactory.java
index b052f0f7bd7a..50dfa665a132 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ChunkEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ChunkEndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
 import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
 
 /**
- * Transform messages using Chunk templating engine.
+ * Transform a message into text with a Chunk template.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -83,11 +83,11 @@ public interface ChunkEndpointBuilderFactory {
             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.
+         * Whether the producer uses the template of the CamelChunkResourceUri
+         * header or the template text of the CamelChunkTemplate header instead
+         * of the resourceUri. If false, the producer ignores both headers.
+         * Enable it only when the route sets these headers, not a message
+         * sender.
          * 
          * The option is a: <code>boolean</code> type.
          * 
@@ -102,11 +102,11 @@ public interface ChunkEndpointBuilderFactory {
             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.
+         * Whether the producer uses the template of the CamelChunkResourceUri
+         * header or the template text of the CamelChunkTemplate header instead
+         * of the resourceUri. If false, the producer ignores both headers.
+         * Enable it only when the route sets these headers, not a message
+         * sender.
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 
@@ -151,7 +151,11 @@ public interface ChunkEndpointBuilderFactory {
             return this;
         }
         /**
-         * Define the encoding of the body.
+         * The character encoding of the template files that Chunk loads from
+         * the theme folder, for example ISO-8859-1. If not set, Chunk uses
+         * UTF-8, or the value of the chunk.template.charset system property. 
It
+         * does not apply to a resourceUri with a scheme such as classpath: or
+         * file:.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -165,7 +169,8 @@ public interface ChunkEndpointBuilderFactory {
             return this;
         }
         /**
-         * Define the file extension of the template.
+         * Not used: Chunk loads the template files of the theme folder with 
the
+         * file extension chtml.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -179,7 +184,10 @@ public interface ChunkEndpointBuilderFactory {
             return this;
         }
         /**
-         * Define the themes folder to scan.
+         * The folder of the template files, as a path on the classpath that is
+         * a directory of the file system, for example mythemes. Chunk looks up
+         * a resourceUri without a scheme, and the templates that a template
+         * includes, in this folder. If not set, Chunk uses the themes folder.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -193,7 +201,10 @@ public interface ChunkEndpointBuilderFactory {
             return this;
         }
         /**
-         * Define the theme layer to elaborate.
+         * The name of a subtemplate in the template file, for example 
example_1
+         * for the part that starts with the tag {#example_1}. The producer 
then
+         * renders only this part. It applies only to a resourceUri without a
+         * scheme.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -207,7 +218,10 @@ public interface ChunkEndpointBuilderFactory {
             return this;
         }
         /**
-         * Define the themes subfolder to scan.
+         * The subfolder of themeFolder that holds the template files. Chunk
+         * reads it as a comma-separated list of theme layers, and a later 
layer
+         * takes precedence when several hold the same template. It needs the
+         * themeFolder option.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -283,7 +297,7 @@ public interface ChunkEndpointBuilderFactory {
     public interface ChunkBuilders {
         /**
          * Chunk (camel-chunk)
-         * Transform messages using Chunk templating engine.
+         * Transform a message into text with a Chunk template.
          * 
          * Category: transformation
          * Since: 2.15
@@ -296,7 +310,7 @@ public interface ChunkEndpointBuilderFactory {
         }
         /**
          * Chunk (camel-chunk)
-         * Transform messages using Chunk templating engine.
+         * Transform a message into text with a Chunk template.
          * 
          * Category: transformation
          * Since: 2.15
@@ -322,7 +336,7 @@ public interface ChunkEndpointBuilderFactory {
         }
         /**
          * Chunk (camel-chunk)
-         * Transform messages using Chunk templating engine.
+         * Transform a message into text with a Chunk template.
          * 
          * Category: transformation
          * Since: 2.15
@@ -361,8 +375,11 @@ public interface ChunkEndpointBuilderFactory {
         public static final ChunkHeaderNameBuilder INSTANCE = new 
ChunkHeaderNameBuilder();
 
         /**
-         * A URI for the template resource to use instead of the endpoint
-         * configured.
+         * The URI of the template that the producer uses instead of the
+         * resourceUri, in the same format, for example letter or
+         * file:templates/letter.chtml. The producer reads it only when
+         * allowTemplateFromHeader is true, and removes it. It takes precedence
+         * over the CamelChunkTemplate header.
          * 
          * The option is a: {@code String} type.
          * 
@@ -374,7 +391,9 @@ public interface ChunkEndpointBuilderFactory {
             return "CamelChunkResourceUri";
         }
         /**
-         * The template to use instead of the endpoint configured.
+         * The template text that the producer renders instead of the
+         * resourceUri. The producer reads it only when allowTemplateFromHeader
+         * is true, and removes it.
          * 
          * The option is a: {@code String} type.
          * 
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index 2e3386477542..3a320c6f538c 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -130,7 +130,7 @@ or removes its row.
 | camel-cassandraql | cql | yes |
 | camel-cedar | cedar |  |
 | camel-chatscript | chatscript |  |
-| camel-chunk | chunk |  |
+| camel-chunk | chunk | yes |
 | camel-clickhouse | clickhouse |  |
 | camel-clickup | clickup |  |
 | camel-cm-sms | cm-sms |  |

Reply via email to