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
The following commit(s) were added to refs/heads/main by this push: new 6959b2e986a Polished 6959b2e986a is described below commit 6959b2e986a15dbf45bdef5b27a186a03e1223e5 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Dec 27 09:47:17 2023 +0100 Polished --- .../src/main/docs/dynamic-router-control-component.adoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/camel-dynamic-router/src/main/docs/dynamic-router-control-component.adoc b/components/camel-dynamic-router/src/main/docs/dynamic-router-control-component.adoc index b5912332a41..619537ca3cf 100644 --- a/components/camel-dynamic-router/src/main/docs/dynamic-router-control-component.adoc +++ b/components/camel-dynamic-router/src/main/docs/dynamic-router-control-component.adoc @@ -38,12 +38,12 @@ include::partial$component-endpoint-options.adoc[] // endpoint options: START // endpoint options: END -=== Subscribing +== Subscribing Subscribing can be achieved by using query parameters in the control endpoint URI, or by sending a `DynamicRouterControlMessage` to the control endpoint URI. -==== URI examples +=== URI examples .Example Java URI `RouteBuilder` Subscription [source,java] @@ -85,7 +85,7 @@ dynamic URI, we have to send subscription parameters from a `ProducerTemplate` i endpoint uses headers "under the hood", because the URI params are converted to headers, so we can set the headers deliberately. -==== DynamicRouterControlMessage example +=== DynamicRouterControlMessage example .Example Java `DynamicRouterControlMessage` Subscription [source,java] @@ -101,13 +101,13 @@ DynamicRouterControlMessage controlMessage = DynamicRouterControlMessage.newBuil producerTemplate.sendBody("dynamic-router-control:subscribe", controlMessage); ---- -=== Unsubscribing +== Unsubscribing Like subscribing, unsubscribing can also be achieved by using query parameters in the control endpoint URI, or by sending a `DynamicRouterControlMessage` to the control endpoint URI. The difference is that unsubscribing can be achieved by using either one or two parameters. -==== URI examples +=== URI examples .Example Java URI `RouteBuilder` Unsubscribe [source,java] @@ -135,7 +135,7 @@ template.sendBodyAndHeaders("direct:unsubscribe", "", Above, because the control URI is dynamic, we have to send it from a `ProducerTemplate` in a different way. The dynamic-aware endpoint uses headers, rather than URI params, so we set the headers deliberately. -===== DynamicRouterControlMessage example +=== DynamicRouterControlMessage example .Example Java `DynamicRouterControlMessage` Unsubscribe [source,java]