This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0e3d009f96c29e850720a1c616c1590c065bcb3f Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Wed Feb 21 19:25:29 2024 +0100 CAMEL-20410: documentation fixes for camel-stub - Fixed samples - Fixed grammar and typos - Fixed punctuation - Added and/or fixed links - Converted to use tabs --- components/camel-stub/src/main/docs/stub-component.adoc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/camel-stub/src/main/docs/stub-component.adoc b/components/camel-stub/src/main/docs/stub-component.adoc index 0e95e86d5e1..08e1603f903 100644 --- a/components/camel-stub/src/main/docs/stub-component.adoc +++ b/components/camel-stub/src/main/docs/stub-component.adoc @@ -16,16 +16,18 @@ *{component-header}* The Stub component provides a simple way to stub out any physical -endpoints while in development or testing, allowing you for example to +endpoints while in development or testing, allowing you, for example, to run a route without needing to actually connect to a specific -xref:mail-component.adoc[SMTP] or xref:http-component.adoc[Http] endpoint. Just add *stub:* +xref:mail-component.adoc[SMTP] or xref:http-component.adoc[Http] endpoint. +Add *stub:* in front of any endpoint URI to stub out the endpoint. -Internally the Stub component creates xref:seda-component.adoc[Seda] endpoints. The -main difference between xref:stub-component.adoc[Stub] and xref:seda-component.adoc[Seda] is +Internally, the Stub component creates xref:seda-component.adoc[Seda] endpoints. +The main difference between xref:stub-component.adoc[Stub] and xref:seda-component.adoc[Seda] is that xref:seda-component.adoc[Seda] will validate the URI and parameters you give it, so putting seda: in front of a typical URI with query arguments will -usually fail. Stub won't though, as it basically ignores all query +usually fail. +Stub won't, though, as it basically ignores all query parameters to let you quickly stub out one or more endpoints in your route temporarily.