Skip to content

CAMEL-23789: Make component docs multi-DSL friendly (Wave 1)#24097

Open
davsclaus wants to merge 42 commits into
mainfrom
feature/CAMEL-23789-wave1-multi-dsl-docs
Open

CAMEL-23789: Make component docs multi-DSL friendly (Wave 1)#24097
davsclaus wants to merge 42 commits into
mainfrom
feature/CAMEL-23789-wave1-multi-dsl-docs

Conversation

@davsclaus

Copy link
Copy Markdown
Contributor

Summary

Claude Code on behalf of Claus Ibsen

Makes 10 popular component documentation pages multi-DSL friendly by adding Java/XML/YAML tabs blocks for route examples, resolving Java constants to string values, and marking inherently Java-only examples.

Components updated: AWS S3, Azure Storage Blob, MongoDB, JMS, AWS SQS, AWS SNS, Kafka, File, HTTP, SQL

Changes per component:

  • Added [tabs] blocks with Java, XML, and YAML DSL equivalents for route examples
  • Resolved Java constants (e.g., KafkaConstants.KEY"CamelKafkaKey", JmsConstants.JMS_DESTINATION"CamelJmsDestination") to their string values
  • Added ._Java-only: description_ markers for examples that are inherently Java-only (ProducerTemplate test API, programmatic config, complex Java types)
  • Converted anonymous Processor classes to lambdas where appropriate
  • Removed string concatenation (+) in URIs, using plain single-line URIs instead
  • Fixed minor typos found during review (e.g., #m4yClient#myClient in SQS docs)

Test plan

  • Verify AsciiDoc renders correctly (tabs blocks, Java-only markers, code blocks)
  • Spot-check XML examples use & for query parameter separators
  • Spot-check YAML examples use parameters: block for endpoint options
  • Verify no Java constants remain in the updated doc files

🤖 Generated with Claude Code

davsclaus and others added 14 commits June 17, 2026 18:15
Convert processor-based examples to declarative setHeader/setBody DSL,
add XML and YAML tabs for all route examples, resolve AWS2S3Constants
to string header values, add Java-only markers for programmatic config,
and convert streaming upload timestamp grouping examples to multi-DSL.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Convert processor-based examples to declarative setHeader/setBody DSL,
add XML and YAML tabs for all route examples, resolve all BlobConstants
to string header values, add Java-only markers for programmatic config,
and fix string concatenation in URIs.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Resolve all MongoDbConstants to string header values, add Java-only
markers for Bson/ProducerTemplate examples, add tabs for count route,
fix prose references to use string header names, and remove duplicate
projection example.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…e 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…ve 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
davsclaus and others added 8 commits June 17, 2026 20:28
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…Wave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…(Wave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
davsclaus and others added 8 commits June 17, 2026 20:53
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…iendly (Wave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
- Resolve StripeConstants references to string values (OBJECT_ID, METHOD_HEADER, METHOD_RETRIEVE, METHOD_UPDATE, METHOD_LIST, METHOD_CANCEL)
- Convert createCustomer JSON, REST payment, retrieveCustomer, cancelPayment, and auth examples to Java/XML/YAML tabs
- Add Java-only markers to Map.of() examples (createCustomer, paymentIntent, updatePayment, listCustomers, product+price, refund)
- Add Java-only markers to programmatic component configuration and error handling examples

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
- Resolve all DaprConstants references to string values (CamelDaprVerb, CamelDaprConcurrency, etc.)
- Convert anonymous Processor classes to setHeader/setBody DSL equivalents
- Convert 14 producer examples to Java/XML/YAML tabs (invokeService, state save/get, pubSub, invokeBinding, lock tryLock/unlock, workflow scheduleNew/terminate/purge/suspend/resume/state/raiseEvent)
- Add Java-only markers to examples using SDK types (State, TransactionalStateOperation, Duration, List.of, Map.of)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
- Resolve Neo4j.Headers and Neo4jConstants.Headers references to string values
- Add Java-only markers to all 14 ProducerTemplate examples
- Clean up indentation and code formatting

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
- Convert 6 simple route examples to Java/XML/YAML tabs (file prompt, image input, S3 image, media type header, JSON schema, schema resource)
- Add YAML tab to MCP OAuth example
- Add Java-only markers to SDK-specific examples (outputClass, SSLContextParameters, SimilarityUtils, conversation history, batch embeddings, multi-turn)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…ave 1)

- Convert simple chat route to Java/XML/YAML tabs
- Add Java-only markers to 14 SDK-specific examples (ChatMemory, VectorStore, Message types, @tool, ChatClient, multimodal, structured output, RAG, ProducerTemplate)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
davsclaus and others added 11 commits June 17, 2026 21:17
…ave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
… (Wave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…Wave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…endly (Wave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…ave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…endly (Wave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…ly (Wave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…ave 1)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant