davsclaus opened a new pull request, #30949: URL: https://github.com/apache/camel/pull/30949
# Description Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). The umbrella ticket stays open. ## Summary New texts for 7 descriptions: the component description, the component option `mustacheFactory`, the endpoint options `encoding`, `startDelimiter` and `endDelimiter`, and the headers `CamelMustacheResourceUri` and `CamelMustacheTemplate`. The old texts were short and left out what the code does: the delimiters are only applied when both are set and the factory is a `DefaultMustacheFactory`, `encoding` falls back to the default charset of the JVM and is not used for a header template, and both headers are only read with `allowTemplateFromHeader=true` (and are removed afterwards). The texts are checked against the Camel code (`MustacheEndpoint`, `MustacheComponent`, `ResourceEndpoint`, `ExchangeHelper`) and the mustache.java 0.9.14 sources (`DefaultMustacheFactory`). The options `resourceUri`, `contentCache`, `allowTemplateFromHeader` and `allowContextMapAll` are not changed here, as they are shared with the other `ResourceEndpoint` based components. ### Found, not changed - `startDelimiter` and `endDelimiter` have the metadata defaults `{{` and `}}`, but the fields default to `null`, and the endpoint only applies custom delimiters when both are set. Setting only one of them has no effect. - `allowTemplateFromHeader` is declared in `MustacheEndpoint` and `MustacheComponent` themselves (not in `ResourceEndpoint`), and the component redeclares `contentCache` and `allowContextMapAll`. Their texts (for example "Sets whether to use resource content cache or not") are left for the shared `ResourceEndpoint` options. - The class Javadoc of `MustacheComponent` is stale: it lists the endpoint options and has broken HTML (`</li></li>`, no `</ul>`). It is not used for the docs. ## Tests - There is no new test, as only description text changes. - A script compared the component JSON with the parent commit: only `description` fields changed (7 texts). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran the formatter and built the module, then regenerated the catalog copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
