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

davsclaus pushed a commit to branch docs/yaml-dsl-tabs-alignment
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/docs/yaml-dsl-tabs-alignment 
by this push:
     new b5b785e13578 docs: wrap remaining paired Java/XML snippets in tabs
b5b785e13578 is described below

commit b5b785e13578a948614e68c77dfb5e827d784ee2
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Jun 14 22:37:57 2026 +0200

    docs: wrap remaining paired Java/XML snippets in tabs
    
    Add [tabs] blocks to:
    - filter-eip.adoc: bean method filter example (Java+XML+YAML)
    - error-handler.adoc: no error handler config (Java+XML)
    - endpoint.adoc: URI encoding example (Java+XML)
    
    Co-Authored-By: Claude <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../main/docs/modules/eips/pages/filter-eip.adoc   | 41 ++++++++++++----------
 docs/user-manual/modules/ROOT/pages/endpoint.adoc  | 13 +++++--
 .../modules/ROOT/pages/error-handler.adoc          | 12 +++++--
 3 files changed, 42 insertions(+), 24 deletions(-)

diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/filter-eip.adoc 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/filter-eip.adoc
index 88470863ec99..385fd0ad64d8 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/filter-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/filter-eip.adoc
@@ -131,6 +131,11 @@ YAML::
 Here is another example of calling a xref:languages:bean-language.adoc[method 
on a bean]
 to define the filter behavior:
 
+[tabs]
+====
+
+Java::
++
 [source,java]
 ----
 from("direct:start")
@@ -140,22 +145,8 @@ from("direct:start")
     .to("mock:all");
 ----
 
-And then bean can have a method that returns a `boolean` as the predicate:
-
-[source,java]
-----
-public static class MyBean {
-
-    public boolean isGoldCustomer(@Header("level") String level) {
-        return level.equals("gold");
-    }
-
-}
-----
-
-And in XML we can call the bean in `<method>` where we can specify the FQN 
class name
-of the bean as shown:
-
+XML::
++
 [source,xml]
 ----
 <route>
@@ -168,8 +159,8 @@ of the bean as shown:
 </route>
 ----
 
-And similar in YAML DSL:
-
+YAML::
++
 [source,yaml]
 ----
 - route:
@@ -187,6 +178,20 @@ And similar in YAML DSL:
         - to:
             uri: mock:all
 ----
+====
+
+The bean can have a method that returns a `boolean` as the predicate:
+
+[source,java]
+----
+public static class MyBean {
+
+    public boolean isGoldCustomer(@Header("level") String level) {
+        return level.equals("gold");
+    }
+
+}
+----
 
 === Filtering with status property
 
diff --git a/docs/user-manual/modules/ROOT/pages/endpoint.adoc 
b/docs/user-manual/modules/ROOT/pages/endpoint.adoc
index c95e5ca87fac..bfbe086003d4 100644
--- a/docs/user-manual/modules/ROOT/pages/endpoint.adoc
+++ b/docs/user-manual/modules/ROOT/pages/endpoint.adoc
@@ -187,19 +187,26 @@ separate the parameters. However, `&` also is a reserved 
character in XML.
 Because of this, you have to replace all `&` in your URIs by `+&amp;+` when
 using the XML DSL to configure Camel routes.
 
-An example: this snippet of code in Java DSL:
+For example, the following is the same endpoint URI in Java DSL and XML DSL
+where `&` has been replaced with `+&amp;+`:
 
+[tabs]
+====
+
+Java::
++
 [source,java]
 ----
 from("timer://myTimer?fixedRate=true&delay=0&period=2000")
 ----
 
-... matches this example in the XML syntax where `&` has been replaced with 
`+&amp;+`
-
+XML::
++
 [source,xml]
 ----
 <from uri="timer://myTimer?fixedRate=true&amp;delay=0&amp;period=2000"/>
 ----
+====
 
 === Configuring parameter values using raw values, such as passwords
 
diff --git a/docs/user-manual/modules/ROOT/pages/error-handler.adoc 
b/docs/user-manual/modules/ROOT/pages/error-handler.adoc
index 0f46fd93054e..c058936e382b 100644
--- a/docs/user-manual/modules/ROOT/pages/error-handler.adoc
+++ b/docs/user-manual/modules/ROOT/pages/error-handler.adoc
@@ -76,15 +76,20 @@ or in Spring XML DSL:
 
 === No Error Handler
 
-The no error handler is to be used for disabling error handling in Java DSL:
+The no error handler is to be used for disabling error handling.
 
+[tabs]
+====
+
+Java::
++
 [source,java]
 ----
 errorHandler(noErrorHandler());
 ----
 
-And in Spring XML DSL:
-
+Spring XML::
++
 [source,xml]
 ----
 <camel:errorHandler id="noErrorHandler" type="NoErrorHandler"/>
@@ -93,6 +98,7 @@ And in Spring XML DSL:
   ...
 </camel:camelContext>
 ----
+====
 
 === TransactionErrorHandler
 

Reply via email to