You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/02/22 12:27:24 UTC
(camel) branch main updated (00fb97a6125 -> 69ef52e7ab1)
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
from 00fb97a6125 CAMEL-20410: documentation fixes for camel-threadpoolfactory-vertx
new 80fb3d8b759 CAMEL-20410: documentation fixes for camel-thrift
new 1eac3ae1c0b CAMEL-20410: documentation fixes for camel-thymeleaf
new 9faea9863f8 CAMEL-20410: documentation fixes for camel-tika
new 26f53c1eb58 CAMEL-20410: documentation fixes for camel-timer
new 82089aaaddf CAMEL-20410: documentation fixes for camel-tracing
new e113eb79749 CAMEL-20410: documentation fixes for camel-twilio
new a63c0aa4c0b CAMEL-20410: documentation fixes for camel-twitter
new 1692ca82698 CAMEL-20410: documentation fixes for camel-undertow
new c5a82180ce4 CAMEL-20410: documentation fixes for camel-undertow-security
new 6effdfc21ca CAMEL-20410: documentation fixes for camel-univocity-parsers
new bd97a467a13 CAMEL-20410: documentation fixes for camel-validator
new 2187df476ef CAMEL-20410: documentation fixes for camel-velocity
new 6558ba56c86 CAMEL-20410: documentation fixes for camel-vertx
new 3b7a77a9ae2 CAMEL-20410: documentation fixes for camel-vertx-http
new 1431513ee3f CAMEL-20410: documentation fixes for camel-vertx-websocket
new e467e9c9e96 CAMEL-20410: documentation fixes for camel-wal
new e61547ca05b CAMEL-20410: documentation fixes for camel-wasm
new bd759a5156f CAMEL-20410: documentation fixes for camel-web3j
new b1d4da6788d CAMEL-20410: documentation fixes for camel-whatsapp
new 40cf62ddf77 CAMEL-20410: documentation fixes for camel-wordpress
new 4dcae1ea05f CAMEL-20410: documentation fixes for camel-wordpress (regen-DSL)
new 76fd91770f5 CAMEL-20410: documentation fixes for camel-xpath
new dbd132820df CAMEL-20410: documentation fixes for camel-xslt
new 1d58d76415e CAMEL-20410: documentation fixes for camel-xslt-saxon
new 69ef52e7ab1 CAMEL-20410: documentation fixes for camel-qdrant
The 25 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../apache/camel/catalog/components/wordpress.json | 4 +-
.../src/main/docs/qdrant-component.adoc | 6 +-
.../src/main/docs/thrift-component.adoc | 7 +-
.../src/main/docs/thrift-dataformat.adoc | 26 +++----
.../src/main/docs/thymeleaf-component.adoc | 25 +++----
.../camel-tika/src/main/docs/tika-component.adoc | 6 +-
.../camel-timer/src/main/docs/timer-component.adoc | 13 ++--
.../camel-tracing/src/main/docs/tracing.adoc | 8 ++-
.../src/main/docs/twilio-component.adoc | 19 +++--
.../main/docs/twitter-directmessage-component.adoc | 2 +-
.../src/main/docs/twitter-timeline-component.adoc | 11 ++-
.../src/main/docs/undertow-spring-security.adoc | 12 ++--
.../src/main/docs/undertow-component.adoc | 39 +++++++----
.../src/main/docs/univocityCsv-dataformat.adoc | 10 +--
.../src/main/docs/univocityFixed-dataformat.adoc | 8 +--
.../src/main/docs/univocityTsv-dataformat.adoc | 8 +--
.../src/main/docs/validator-component.adoc | 4 +-
.../src/main/docs/velocity-component.adoc | 30 ++++----
.../src/main/docs/vertx-http-component.adoc | 4 +-
.../src/main/docs/vertx-websocket-component.adoc | 2 +-
.../camel-vertx/src/main/docs/vertx-component.adoc | 6 --
components/camel-wal/src/main/docs/wal.adoc | 9 ++-
.../camel-wasm/src/main/docs/wasm-component.adoc | 17 +++--
.../camel-wasm/src/main/docs/wasm-language.adoc | 18 +++--
.../camel-web3j/src/main/docs/web3j-component.adoc | 7 +-
.../src/main/docs/whatsapp-component.adoc | 17 +++--
.../camel/component/wordpress/wordpress.json | 4 +-
.../src/main/docs/wordpress-component.adoc | 35 ++++++----
.../component/wordpress/WordpressEndpoint.java | 4 +-
.../camel-xpath/src/main/docs/xpath-language.adoc | 80 +++++++++++-----------
.../src/main/docs/xslt-saxon-component.adoc | 4 +-
.../camel-xslt/src/main/docs/xslt-component.adoc | 4 +-
.../component/ComponentsBuilderFactory.java | 4 +-
.../dsl/WordpressComponentBuilderFactory.java | 8 +--
.../src/generated/resources/metadata.json | 4 +-
.../builder/endpoint/StaticEndpointBuilders.java | 8 +--
.../dsl/WordpressEndpointBuilderFactory.java | 22 +++---
37 files changed, 273 insertions(+), 222 deletions(-)
(camel) 20/25: CAMEL-20410: documentation fixes for camel-wordpress
Posted by or...@apache.org.
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 40cf62ddf7731642752d4b950f57ed69a735d897
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 12:05:31 2024 +0100
CAMEL-20410: documentation fixes for camel-wordpress
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../apache/camel/catalog/components/wordpress.json | 4 +--
.../camel/component/wordpress/wordpress.json | 4 +--
.../src/main/docs/wordpress-component.adoc | 35 ++++++++++++++--------
.../component/wordpress/WordpressEndpoint.java | 4 +--
4 files changed, 29 insertions(+), 18 deletions(-)
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/wordpress.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/wordpress.json
index c6a54ea7b71..1a9abf50b04 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/wordpress.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/wordpress.json
@@ -2,8 +2,8 @@
"component": {
"kind": "component",
"name": "wordpress",
- "title": "Wordpress",
- "description": "Manage posts and users using Wordpress API.",
+ "title": "WordPress",
+ "description": "Manage posts and users using the WordPress API.",
"deprecated": false,
"firstVersion": "2.21.0",
"label": "cloud,api,cms",
diff --git a/components/camel-wordpress/src/generated/resources/org/apache/camel/component/wordpress/wordpress.json b/components/camel-wordpress/src/generated/resources/org/apache/camel/component/wordpress/wordpress.json
index c6a54ea7b71..1a9abf50b04 100644
--- a/components/camel-wordpress/src/generated/resources/org/apache/camel/component/wordpress/wordpress.json
+++ b/components/camel-wordpress/src/generated/resources/org/apache/camel/component/wordpress/wordpress.json
@@ -2,8 +2,8 @@
"component": {
"kind": "component",
"name": "wordpress",
- "title": "Wordpress",
- "description": "Manage posts and users using Wordpress API.",
+ "title": "WordPress",
+ "description": "Manage posts and users using the WordPress API.",
"deprecated": false,
"firstVersion": "2.21.0",
"label": "cloud,api,cms",
diff --git a/components/camel-wordpress/src/main/docs/wordpress-component.adoc b/components/camel-wordpress/src/main/docs/wordpress-component.adoc
index e61c7e7fd72..cf6ad79006a 100644
--- a/components/camel-wordpress/src/main/docs/wordpress-component.adoc
+++ b/components/camel-wordpress/src/main/docs/wordpress-component.adoc
@@ -1,8 +1,8 @@
-= Wordpress Component
-:doctitle: Wordpress
+= WordPress Component
+:doctitle: WordPress
:shortname: wordpress
:artifactid: camel-wordpress
-:description: Manage posts and users using Wordpress API.
+:description: Manage posts and users using the WordPress API.
:since: 2.21
:supportlevel: Stable
:tabs-sync-option:
@@ -14,7 +14,7 @@
*{component-header}*
-Camel component for https://developer.wordpress.org/rest-api/reference/[Wordpress API].
+Camel component for the https://developer.wordpress.org/rest-api/reference/[WordPress API].
Currently only the **Posts** and **Users** operations are supported.
@@ -34,13 +34,16 @@ include::partial$component-endpoint-options.adoc[]
// endpoint options: END
-Most of parameters needed when performing a read operation mirrors from the official https://developer.wordpress.org/rest-api/reference/[API]. When performing searches operations, the `criteria.` suffix is needed. Take the following `Consumer` as example:
+Most of the parameters
+needed when performing a read operation mirrors from the official https://developer.wordpress.org/rest-api/reference/[API].
+When performing searches operations, the `criteria.` suffix is needed.
+Take the following `Consumer` as example:
----
wordpress:post?criteria.perPage=10&criteria.orderBy=author&criteria.categories=camel,dozer,json
----
-== Configuring Wordpress component
+== Configuring WordPress component
The `WordpressConfiguration` class can be used to set initial properties configuration to the component instead of passing it as query parameter. The following listing shows how to set the component to be used in your routes.
@@ -61,14 +64,15 @@ public void configure() {
== Consumer Example
-Consumer polls from the API from time to time domain objects from Wordpress. Following, an example using the `Post` operation:
+Consumer polls from the API from time to time domain objects from WordPress. Following, an example using the `Post` operation:
- `wordpress:post` retrieves posts (defaults to 10 posts)
- `wordpress:post?id=1` search for a specific post
== Producer Example
-Producer performs write operations on Wordpress like adding a new user or update a post. To be able to write, you must have an authorized user credentials (see Authentication).
+Producer performs write operations on WordPress like adding a new user or update a post.
+To be able to write, you must have an authorized user credentials (see Authentication).
- `wordpress:post` creates a new post from the `org.apache.camel.component.wordpress.api.model.Post` class in the message body.
- `wordpress:post?id=1` updates a post based on data `org.apache.camel.component.wordpress.api.model.Post` from the message body.
@@ -76,15 +80,22 @@ Producer performs write operations on Wordpress like adding a new user or update
== Authentication
-Producers that perform write operations (e.g. create a new post) https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/[must have an authenticated user] to do so. The standard authentication mechanism used by Wordpress is cookie. Unfortunately this method is not supported outside Wordpress environment because it's rely on https://codex.wordpress.org/WordPress_Nonces[nonce] internal function.
+Producers that perform write operations, e.g., creating a new post,
+https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/[must have an authenticated user] to do so.
+The standard authentication mechanism used by WordPress is cookie.
+Unfortunately,
+this method is not supported outside WordPress environment
+because it relies on https://codex.wordpress.org/WordPress_Nonces[nonce] internal function.
-There's some alternatives to use the Wordpress API without nonces, but requires specific plugin installations.
+There are some alternatives to using the WordPress API without nonces, but require specific plugin installations.
-At this time, `camel-wordpress` only supports Basic Authentication (more to come). To configure it, you must install the https://github.com/WP-API/Basic-Auth[Basic-Auth Wordpress plugin] and pass the credentials to the endpoint:
+At this time, `camel-wordpress` only supports Basic Authentication (more to come).
+To configure it,
+you must install the https://github.com/WP-API/Basic-Auth[Basic-Auth WordPress plugin] and pass the credentials to the endpoint:
`from("direct:deletePost").to("wordpress:post:delete?id=9&user=ben&password=password123").to("mock:resultDelete");`
-**It's not recommend to use Basic Authentication in production without TLS!!**
+**It's not recommended to use Basic Authentication in production without TLS!!**
include::spring-boot:partial$starter.adoc[]
diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
index 2593e9c56b7..f1f32f1a2ed 100644
--- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
+++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
@@ -43,9 +43,9 @@ import org.apache.camel.util.ObjectHelper;
import org.apache.camel.util.PropertiesHelper;
/**
- * Manage posts and users using Wordpress API.
+ * Manage posts and users using the WordPress API.
*/
-@UriEndpoint(firstVersion = "2.21.0", scheme = "wordpress", title = "Wordpress", syntax = "wordpress:operation",
+@UriEndpoint(firstVersion = "2.21.0", scheme = "wordpress", title = "WordPress", syntax = "wordpress:operation",
category = { Category.CLOUD, Category.API, Category.CMS })
public class WordpressEndpoint extends DefaultEndpoint {
(camel) 07/25: CAMEL-20410: documentation fixes for camel-twitter
Posted by or...@apache.org.
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 a63c0aa4c0bae473c0540449e4a6d0437bc790b8
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:25:52 2024 +0100
CAMEL-20410: documentation fixes for camel-twitter
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/twitter-directmessage-component.adoc | 2 +-
.../src/main/docs/twitter-timeline-component.adoc | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/components/camel-twitter/src/main/docs/twitter-directmessage-component.adoc b/components/camel-twitter/src/main/docs/twitter-directmessage-component.adoc
index 0954bb93bb4..23a43c21b68 100644
--- a/components/camel-twitter/src/main/docs/twitter-directmessage-component.adoc
+++ b/components/camel-twitter/src/main/docs/twitter-directmessage-component.adoc
@@ -20,7 +20,7 @@ The Twitter Direct Message Component consumes/produces a user's direct messages.
====
*Consumer interval of time*
-When using the Direct Message consumer, it will consider only the last 30 days direct messages
+When using the Direct Message consumer, it will consider only the last 30-day direct messages
====
diff --git a/components/camel-twitter/src/main/docs/twitter-timeline-component.adoc b/components/camel-twitter/src/main/docs/twitter-timeline-component.adoc
index e2ccbc13462..37b99161615 100644
--- a/components/camel-twitter/src/main/docs/twitter-timeline-component.adoc
+++ b/components/camel-twitter/src/main/docs/twitter-timeline-component.adoc
@@ -14,8 +14,15 @@
*{component-header}*
-The Twitter Timeline component consumes twitter timeline or update the status of specific user.
-The timelineType can be one of: public, home, user, mentions or retweetsofme.
+The Twitter Timeline component consumes twitter timeline or updates the status of specific user.
+
+The `timelineType` can be one of:
+
+* `public`
+* `home`
+* `user`
+* `mentions`
+* `retweetsofme`
// component-configure options: START
(camel) 18/25: CAMEL-20410: documentation fixes for camel-web3j
Posted by or...@apache.org.
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 bd759a5156f681ff7c265f0d6b9829a3adfd1f3c
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:54:04 2024 +0100
CAMEL-20410: documentation fixes for camel-web3j
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-web3j/src/main/docs/web3j-component.adoc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/components/camel-web3j/src/main/docs/web3j-component.adoc b/components/camel-web3j/src/main/docs/web3j-component.adoc
index 20d556ef252..20d59a44fcb 100644
--- a/components/camel-web3j/src/main/docs/web3j-component.adoc
+++ b/components/camel-web3j/src/main/docs/web3j-component.adoc
@@ -16,7 +16,12 @@
The Ethereum blockchain component uses the
https://github.com/web3j/web3j[web3j] client
-API and allows you to interact with Ethereum compatible nodes such as https://github.com/ethereum/go-ethereum/wiki/geth[Geth], https://github.com/paritytech/parity[Parity], https://github.com/jpmorganchase/quorum/wiki[Quorum], https://infura.io[Infura], etc.
+API and allows you to interact with Ethereum compatible nodes such as:
+
+* https://github.com/ethereum/go-ethereum/wiki/geth[Geth]
+* https://github.com/paritytech/parity[Parity]
+* https://github.com/jpmorganchase/quorum/wiki[Quorum]
+* https://infura.io[Infura]
Maven users will need to add the following dependency to their `pom.xml`
for this component:
(camel) 04/25: CAMEL-20410: documentation fixes for camel-timer
Posted by or...@apache.org.
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 26f53c1eb5803e4523b6a3b4cb3e1d82c04da1c3
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:13:22 2024 +0100
CAMEL-20410: documentation fixes for camel-timer
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-timer/src/main/docs/timer-component.adoc | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/components/camel-timer/src/main/docs/timer-component.adoc b/components/camel-timer/src/main/docs/timer-component.adoc
index 090b8f5baf9..9cf52dae51c 100644
--- a/components/camel-timer/src/main/docs/timer-component.adoc
+++ b/components/camel-timer/src/main/docs/timer-component.adoc
@@ -28,8 +28,8 @@ Where `name` is the name of the `Timer` object, which is created and
shared across endpoints. So if you use the same name for all your timer
endpoints, only one `Timer` object and thread will be used.
-*Note:* The IN body of the generated exchange is `null`. So
-`exchange.getIn().getBody()` returns `null`.
+NOTE: The _IN_ body of the generated exchange is `null`.
+Therefore, calling `exchange.getIn().getBody()` returns `null`.
[TIP]
====
@@ -100,9 +100,7 @@ And the route in Spring DSL:
== Firing as soon as possible
-*Since Camel 2.17*
-
-You may want to fire messages in a Camel route as soon as possible you
+You may want to fire messages in a Camel route as soon as possible, you
can use a negative delay:
[source,xml]
@@ -113,7 +111,7 @@ can use a negative delay:
</route>
----
-In this way the timer will fire messages immediately.
+In this way, the timer will fire messages immediately.
You can also specify a `repeatCount` parameter in conjunction with a
negative delay to stop firing messages after a fixed number has been
@@ -125,7 +123,8 @@ messages until the route will be stopped.
== Firing only once
You may want to fire a message in a Camel route only once, such as when
-starting the route. To do that you use the `repeatCount` option as shown:
+starting the route.
+To do that, you use the `repeatCount` option as shown:
[source,xml]
----
(camel) 24/25: CAMEL-20410: documentation fixes for camel-xslt-saxon
Posted by or...@apache.org.
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 1d58d76415e5a9f3b7b4d925ccf3e6e08e6d5980
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 12:15:59 2024 +0100
CAMEL-20410: documentation fixes for camel-xslt-saxon
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-xslt-saxon/src/main/docs/xslt-saxon-component.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-xslt-saxon/src/main/docs/xslt-saxon-component.adoc b/components/camel-xslt-saxon/src/main/docs/xslt-saxon-component.adoc
index 53888f622a6..bcc2ceb2752 100644
--- a/components/camel-xslt-saxon/src/main/docs/xslt-saxon-component.adoc
+++ b/components/camel-xslt-saxon/src/main/docs/xslt-saxon-component.adoc
@@ -81,11 +81,11 @@ from("activemq:My.Queue").
to("activemq:Another.Queue");
----
-== Getting Useable Parameters into the XSLT
+== Getting Usable Parameters into the XSLT
By default, all headers are added as parameters which are then available in
the XSLT. +
-To make the parameters useable, you will need to declare them.
+To make the parameters usable, you will need to declare them.
[source,xml]
----
(camel) 08/25: CAMEL-20410: documentation fixes for camel-undertow
Posted by or...@apache.org.
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 1692ca8269894755e567a0e8c54f149b347dfecc
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:31:06 2024 +0100
CAMEL-20410: documentation fixes for camel-undertow
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/undertow-component.adoc | 39 ++++++++++++++--------
1 file changed, 25 insertions(+), 14 deletions(-)
diff --git a/components/camel-undertow/src/main/docs/undertow-component.adoc b/components/camel-undertow/src/main/docs/undertow-component.adoc
index 5d6f11cc27c..43d2361c118 100644
--- a/components/camel-undertow/src/main/docs/undertow-component.adoc
+++ b/components/camel-undertow/src/main/docs/undertow-component.adoc
@@ -18,11 +18,11 @@ The Undertow component provides HTTP and WebSocket based endpoints for consuming
and producing HTTP/WebSocket requests.
That is, the Undertow component behaves as a simple Web server.
-Undertow can also be used as a http client which mean you can also use
+Undertow can also be used as a http client that means you can also use
it with Camel as a producer.
Since the component also supports WebSocket
-connections, it can serve as a drop-in replacement for Camel websocket
+connections, it can serve as a drop-in replacement for the Camel websocket
component or atmosphere-websocket component.
Maven users will need to add the following dependency to their `pom.xml`
@@ -40,9 +40,14 @@ for this component:
== URI format
+.HTTP
----
undertow:http://hostname[:port][/resourceUri][?options]
undertow:https://hostname[:port][/resourceUri][?options]
+----
+
+.WebSocket
+----
undertow:ws://hostname[:port][/resourceUri][?options]
undertow:wss://hostname[:port][/resourceUri][?options]
----
@@ -71,26 +76,29 @@ Camel uses the same message headers as the xref:http-component.adoc[HTTP]
component. It also uses `Exchange.HTTP_CHUNKED,CamelHttpChunked` header to turn on or turn off
the chunked encoding on the camel-undertow consumer.
-Camel also populates *all* request.parameter and request.headers. For
-example, given a client request with the URL,
+Camel also populates *all* `request.parameter` and `request.headers`.
+For example, given a client request with the URL,
`\http://myserver/myserver?orderid=123`, the exchange will contain a
-header named `orderid` with the value 123.
+header named `orderid` with the value `123`.
== HTTP Producer Example
The following is a basic example of how to send an HTTP request to an
existing HTTP endpoint.
-in Java DSL
+[tabs]
+====
+Java::
++
[source,java]
----
from("direct:start")
.to("undertow:http://www.google.com");
----
-or in XML
-
+XML::
++
[source,xml]
----
<route>
@@ -99,6 +107,8 @@ or in XML
</route>
----
+====
+
== HTTP Consumer Example
In this sample we define a route that exposes a HTTP service at
@@ -138,7 +148,7 @@ If you need to expose an Undertow endpoint on all network interfaces, the
`0.0.0.0` address should be used.
To listen across an entire URI prefix, see
-xref:manual:faq:how-do-i-let-jetty-match-wildcards.adoc[How do I let Jetty match wildcards].
+xref:manual:faq:how-do-i-let-jetty-match-wildcards.adoc[How do I let Jetty match wildcards?].
If you actually want to expose routes by HTTP and already have a
Servlet, you should instead refer to the
@@ -146,15 +156,16 @@ xref:servlet-component.adoc[Servlet Transport].
== Security provider
-To plugin security provider for endpoint authentication, implement SPI interface
+To plug in a security provider for endpoint authentication, implement SPI interface
`org.apache.camel.component.undertow.spi.UndertowSecurityProvider`.
-Undertow components locates all implementations of `UndertowSecurityProvider` using
-Java SPI (Service Provider Interfaces). If there is an object passed to component
-as parameter `securityConfiguration` and provider accepts it. Provider will be used
+Undertow component locates all implementations of `UndertowSecurityProvider` using
+Java SPI (Service Provider Interfaces).
+If there is an object passed to the component as parameter `securityConfiguration` and provider accepts it.
+Provider will be used
for authentication of all requests.
-Property `requireServletContext` of security providers forces udertow server to start
+Property `requireServletContext` of security providers forces the Undertow server to start
with servlet context. There will be no servlet actually handled. This feature is meant only
for use with servlet filters, which needs servlet context for their functionality.
(camel) 16/25: CAMEL-20410: documentation fixes for camel-wal
Posted by or...@apache.org.
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 e467e9c9e96e84342b00610c5ffc0bb3038586c2
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:50:15 2024 +0100
CAMEL-20410: documentation fixes for camel-wal
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-wal/src/main/docs/wal.adoc | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/components/camel-wal/src/main/docs/wal.adoc b/components/camel-wal/src/main/docs/wal.adoc
index 8f64bf36674..aadfd9b3e4f 100644
--- a/components/camel-wal/src/main/docs/wal.adoc
+++ b/components/camel-wal/src/main/docs/wal.adoc
@@ -11,12 +11,17 @@
The WAL component provides a resume strategy that uses a write-ahead log to
-A resume strategy that uses a write-ahead strategy to keep a transaction log of the in-processing and processed records. This strategy works by wrapping another strategy. This increases the reliability of the resume API by ensuring that records are saved locally before being sent to the remote data storage used by the resume strategy, thus guaranteeing that records can re recovered in case of crash of that system.
+A resume strategy that uses a write-ahead strategy to keep a transaction log of the in-processing and processed records.
+This strategy works by wrapping another strategy.
+This increases the reliability of the resume API by ensuring that records are saved locally before being sent
+to the remote data storage.
+Thus guaranteeing that records can be recovered in case that system crashes.
== Usage
-Because this strategy wraps another one, then the other one should be created first and then passed as an-argument to this strategy when creating it.
+Because this strategy wraps another one,
+then the other one should be created first and then passed as an argument to this strategy when creating it.
[source,java]
----
(camel) 12/25: CAMEL-20410: documentation fixes for camel-velocity
Posted by or...@apache.org.
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 2187df476efc449b33b30532f5d8814bbcc0aa38
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:41:43 2024 +0100
CAMEL-20410: documentation fixes for camel-velocity
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/velocity-component.adoc | 30 +++++++++++-----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/components/camel-velocity/src/main/docs/velocity-component.adoc b/components/camel-velocity/src/main/docs/velocity-component.adoc
index aed0345e900..f4e83f96668 100644
--- a/components/camel-velocity/src/main/docs/velocity-component.adoc
+++ b/components/camel-velocity/src/main/docs/velocity-component.adoc
@@ -39,8 +39,8 @@ velocity:templateName[?options]
-------------------------------
Where *templateName* is the classpath-local URI of the template to
-invoke; or the complete URL of the remote template (eg:
-\file://folder/myfile.vm).
+invoke; or the complete URL of the remote template (e.g.:
+`\file://folder/myfile.vm`).
@@ -78,7 +78,8 @@ The `fruit` header is now accessible from the `message.out.headers`.
== Velocity Context
Camel will provide exchange information in the Velocity context (just a
-`Map`). The `Exchange` is transfered as:
+`Map`).
+The `Exchange` is transferred as:
[width="100%",cols="10%,90%",options="header",]
|=======================================================================
@@ -105,8 +106,8 @@ Camel will provide exchange information in the Velocity context (just a
|`response` |The Out message (only for InOut message exchange pattern).
|=======================================================================
-You can setup a custom Velocity Context yourself by
-setting property *allowTemplateFromHeader=true* and setting the message header *CamelVelocityContext* just like this
+You can set up a custom Velocity Context yourself by
+setting property `allowTemplateFromHeader=true` and setting the message header `CamelVelocityContext` just like this
[source,java]
-----------------------------------------------------------------------
@@ -119,15 +120,14 @@ exchange.getIn().setHeader("CamelVelocityContext", velocityContext);
The Velocity template resource is, by default, hot reloadable for both
file and classpath resources (expanded jar). If you set
`contentCache=true`, Camel will only load the resource once, and thus
-hot reloading is not possible. This scenario can be used in production,
+hot reloading is not possible. This scenario can be used in production
when the resource never changes.
== Dynamic templates
-*Since Camel 2.1* +
- Camel provides two headers by which you can define a different resource
+Camel provides two headers by which you can define a different resource
location for a template or the template content itself. If any of these
-headers is set then Camel uses this over the endpoint configured
+headers is set, then Camel uses this over the endpoint configured
resource. This allows you to provide a dynamic template at runtime.
[width="100%",cols="10%,10%,80%",options="header",]
@@ -142,7 +142,7 @@ endpoint configured.
== Samples
-For example you could use something like
+For example, you could use something like
[source,java]
----------------------------------------
@@ -163,7 +163,7 @@ from("activemq:My.Queue").
to("activemq:Another.Queue");
----------------------------------------
-And to use the content cache, e.g. for use in production, where the
+And to use the content cache, e.g., for use in production, where the
`.vm` template never changes:
[source,java]
@@ -173,7 +173,7 @@ from("activemq:My.Queue").
to("activemq:Another.Queue");
----------------------------------------------------------
-And a file based resource:
+And a file-based resource:
[source,java]
-----------------------------------------------------------------
@@ -192,8 +192,8 @@ from("direct:in").
to("velocity:dummy?allowTemplateFromHeader=true"");
---------------------------------------------------------------------------
-It's possible to specify a template directly as a header
-the component should use dynamically via a header, so for example:
+It's possible to specify a template directly as a header.
+The component should use it dynamically via a header, so for example:
[source,java]
---------------------------------------------------------------------------------------------------------------
@@ -204,7 +204,7 @@ from("direct:in").
== The Email Sample
-In this sample we want to use Velocity templating for an order
+In this sample, we want to use Velocity templating for an order
confirmation email. The email template is laid out in Velocity as:
.letter.vm
(camel) 11/25: CAMEL-20410: documentation fixes for camel-validator
Posted by or...@apache.org.
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 bd97a467a138ce069b79973b926ceb2480adc292
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:38:59 2024 +0100
CAMEL-20410: documentation fixes for camel-validator
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-validator/src/main/docs/validator-component.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-validator/src/main/docs/validator-component.adoc b/components/camel-validator/src/main/docs/validator-component.adoc
index 307471d509e..d965b899651 100644
--- a/components/camel-validator/src/main/docs/validator-component.adoc
+++ b/components/camel-validator/src/main/docs/validator-component.adoc
@@ -55,10 +55,10 @@ The following
https://github.com/apache/camel/blob/main/components/camel-spring-xml/src/test/resources/org/apache/camel/component/validator/camelContext.xml[example]
shows how to configure a route from endpoint *direct:start* which then
goes to one of two endpoints, either *mock:valid* or *mock:invalid*
-based on whether or not the XML matches the given schema (which is
+based on whether the XML matches the given schema (which is
supplied on the classpath).
-== Advanced: JMX method clearCachedSchema
+== Advanced: JMX method `clearCachedSchema`
You can force that the cached schema in the
validator endpoint is cleared and reread with the next process call with
(camel) 03/25: CAMEL-20410: documentation fixes for camel-tika
Posted by or...@apache.org.
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 9faea9863f83678ceaa320d4ffcfa012d95cecf0
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:11:25 2024 +0100
CAMEL-20410: documentation fixes for camel-tika
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-tika/src/main/docs/tika-component.adoc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/camel-tika/src/main/docs/tika-component.adoc b/components/camel-tika/src/main/docs/tika-component.adoc
index c1fd53c841c..26f4256ef62 100644
--- a/components/camel-tika/src/main/docs/tika-component.adoc
+++ b/components/camel-tika/src/main/docs/tika-component.adoc
@@ -14,12 +14,12 @@
*{component-header}*
-The *Tika*: components provides the ability to detect and parse documents with
+The Tika component provides the ability to detect and parse documents with
Apache Tika. This component uses
-https://tika.apache.org/[Apache Tika] as underlying library to work
+https://tika.apache.org/[Apache Tika] as the underlying library to work
with documents.
-In order to use the Tika component, Maven users will need to add the
+To use the Tika component, Maven users will need to add the
following dependency to their `pom.xml`:
*pom.xml*
(camel) 10/25: CAMEL-20410: documentation fixes for camel-univocity-parsers
Posted by or...@apache.org.
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 6effdfc21ca9d525380746f23cac2aa9749a75ec
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:38:28 2024 +0100
CAMEL-20410: documentation fixes for camel-univocity-parsers
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/univocityCsv-dataformat.adoc | 10 +++++-----
.../src/main/docs/univocityFixed-dataformat.adoc | 8 ++++----
.../src/main/docs/univocityTsv-dataformat.adoc | 8 ++++----
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/components/camel-univocity-parsers/src/main/docs/univocityCsv-dataformat.adoc b/components/camel-univocity-parsers/src/main/docs/univocityCsv-dataformat.adoc
index bae73c468f1..a7be0698117 100644
--- a/components/camel-univocity-parsers/src/main/docs/univocityCsv-dataformat.adoc
+++ b/components/camel-univocity-parsers/src/main/docs/univocityCsv-dataformat.adoc
@@ -13,7 +13,7 @@
This xref:manual::data-format.adoc[Data
Format] uses https://www.univocity.com/pages/univocity_parsers_tutorial.html[uniVocity-parsers]
-for reading and writing 3 kinds of tabular data text files:
+for reading and writing three kinds of tabular data text files:
* CSV (Comma Separated Values), where the values are separated by a
symbol (usually a comma)
@@ -21,9 +21,9 @@ symbol (usually a comma)
* TSV (Tabular Separated Values), where the fields are separated by a
tabulation
-Thus there are 3 data formats based on uniVocity-parsers.
+Thus, there are three data formats based on uniVocity-parsers.
-If you use Maven you can just add the following to your pom.xml,
+If you use Maven, you can add the following to your `pom.xml`,
substituting the version number for the latest and greatest release.
[source,xml]
@@ -43,7 +43,7 @@ please refer to their
https://www.univocity.com/pages/univocity_parsers_tutorial#settings[documentation
page].
-The 3 data formats share common options and have dedicated ones, this
+The three data formats share common options and have dedicated ones, this
section presents them all.
== Options
@@ -62,7 +62,7 @@ The marshalling accepts either:
* A list of maps (`List<Map<String, ?>>`), one for each line
* A single map (`Map<String, ?>`), for a single line
-Any other body will throws an exception.
+Any other body will throw an exception.
=== Usage example: marshalling a Map into CSV format
diff --git a/components/camel-univocity-parsers/src/main/docs/univocityFixed-dataformat.adoc b/components/camel-univocity-parsers/src/main/docs/univocityFixed-dataformat.adoc
index 1603825c99c..074668243e8 100644
--- a/components/camel-univocity-parsers/src/main/docs/univocityFixed-dataformat.adoc
+++ b/components/camel-univocity-parsers/src/main/docs/univocityFixed-dataformat.adoc
@@ -13,7 +13,7 @@
This xref:manual::data-format.adoc[Data
Format] uses https://www.univocity.com/pages/univocity_parsers_tutorial.html[uniVocity-parsers]
-for reading and writing 3 kinds of tabular data text files:
+for reading and writing three kinds of tabular data text files:
* CSV (Comma Separated Values), where the values are separated by a
symbol (usually a comma)
@@ -21,9 +21,9 @@ symbol (usually a comma)
* TSV (Tabular Separated Values), where the fields are separated by a
tabulation
-Thus there are 3 data formats based on uniVocity-parsers.
+Thus, there are three data formats based on uniVocity-parsers.
-If you use Maven you can just add the following to your pom.xml,
+If you use Maven, you can add the following to your `pom.xml`,
substituting the version number for the latest and greatest release.
[source,xml]
@@ -43,7 +43,7 @@ please refer to their
https://www.univocity.com/pages/univocity_parsers_tutorial#settings[documentation
page].
-The 3 data formats share common options and have dedicated ones, this
+The three data formats share common options and have dedicated ones, this
section presents them all.
== Options
diff --git a/components/camel-univocity-parsers/src/main/docs/univocityTsv-dataformat.adoc b/components/camel-univocity-parsers/src/main/docs/univocityTsv-dataformat.adoc
index ea3fa25bb2e..d8820c6a97e 100644
--- a/components/camel-univocity-parsers/src/main/docs/univocityTsv-dataformat.adoc
+++ b/components/camel-univocity-parsers/src/main/docs/univocityTsv-dataformat.adoc
@@ -13,7 +13,7 @@
This xref:manual::data-format.adoc[Data
Format] uses https://www.univocity.com/pages/univocity_parsers_tutorial.html[uniVocity-parsers]
-for reading and writing 3 kinds of tabular data text files:
+for reading and writing three kinds of tabular data text files:
* CSV (Comma Separated Values), where the values are separated by a
symbol (usually a comma)
@@ -21,9 +21,9 @@ symbol (usually a comma)
* TSV (Tabular Separated Values), where the fields are separated by a
tabulation
-Thus there are 3 data formats based on uniVocity-parsers.
+Thus, there are three data formats based on uniVocity-parsers.
-If you use Maven you can just add the following to your pom.xml,
+If you use Maven, you can add the following to your `pom.xml`,
substituting the version number for the latest and greatest release.
[source,xml]
@@ -43,7 +43,7 @@ please refer to their
https://www.univocity.com/pages/univocity_parsers_tutorial#settings[documentation
page].
-The 3 data formats share common options and have dedicated ones, this
+The three data formats share common options and have dedicated ones, this
section presents them all.
== Options
(camel) 13/25: CAMEL-20410: documentation fixes for camel-vertx
Posted by or...@apache.org.
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 6558ba56c863d6f30eed2d118e67248fe05e689e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:42:51 2024 +0100
CAMEL-20410: documentation fixes for camel-vertx
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-vertx/camel-vertx/src/main/docs/vertx-component.adoc | 6 ------
1 file changed, 6 deletions(-)
diff --git a/components/camel-vertx/camel-vertx/src/main/docs/vertx-component.adoc b/components/camel-vertx/camel-vertx/src/main/docs/vertx-component.adoc
index 32e9660afbc..237e1342eb5 100644
--- a/components/camel-vertx/camel-vertx/src/main/docs/vertx-component.adoc
+++ b/components/camel-vertx/camel-vertx/src/main/docs/vertx-component.adoc
@@ -20,12 +20,6 @@ https://vertx.io/docs/vertx-core/java/#event_bus[EventBus].
The vertx https://vertx.io/docs/vertx-core/java/#event_bus[EventBus]
sends and receives JSON events.
-[NOTE]
-====
-The version of Vert.x, used by the component, requires at least Java 1.8 at
-runtime.
-====
-
Maven users will need to add the following dependency to their `pom.xml`
for this component:
(camel) 06/25: CAMEL-20410: documentation fixes for camel-twilio
Posted by or...@apache.org.
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 e113eb797494eb67e707b5c004ce7b5c45313a5a
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:23:50 2024 +0100
CAMEL-20410: documentation fixes for camel-twilio
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-twilio/src/main/docs/twilio-component.adoc | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/components/camel-twilio/src/main/docs/twilio-component.adoc b/components/camel-twilio/src/main/docs/twilio-component.adoc
index c1acc0de97c..d713f37e342 100644
--- a/components/camel-twilio/src/main/docs/twilio-component.adoc
+++ b/components/camel-twilio/src/main/docs/twilio-component.adoc
@@ -48,12 +48,12 @@ include::partial$component-endpoint-options.adoc[]
Producer endpoints can use endpoint prefixes followed by endpoint names
and associated options described next. A shorthand alias can be used for
-all of the endpoints. The endpoint URI MUST contain a prefix.
+all the endpoints. The endpoint URI MUST contain a prefix.
Any of the endpoint options can be provided in either the endpoint URI,
or dynamically in a message header. The message header name must be of
the format *`CamelTwilio.<option>`*. Note that the *`inBody`* option
-overrides message header, i.e. the endpoint option *`inBody=option`*
+overrides message header, i.e., the endpoint option *`inBody=option`*
would override a *`CamelTwilio.option`* header.
Endpoint can be one of:
@@ -61,18 +61,17 @@ Endpoint can be one of:
[width="100%",cols="20%,20%,60%",options="header"]
|=======================================================================
| Endpoint | Shorthand Alias | Description
-| *creator* | create | Make the request to the Twilio API to perform the create
-| *deleter* | delete | Make the request to the Twilio API to perform the delete
-| *fetcher* | fetch | Make the request to the Twilio API to perform the fetch
-| *reader* | read | Make the request to the Twilio API to perform the read
-| *updater* | update | Make the request to the Twilio API to perform the update
+| *creator* | create | Make the request to the Twilio API to perform the `create`
+| *deleter* | delete | Make the request to the Twilio API to perform the `delete`
+| *fetcher* | fetch | Make the request to the Twilio API to perform the `fetch`
+| *reader* | read | Make the request to the Twilio API to perform the `read`
+| *updater* | update | Make the request to the Twilio API to perform the `update`
|=======================================================================
Available endpoints differ depending on the endpoint prefixes.
-For more information on the endpoints and options see API documentation at:
-https://www.twilio.com/docs/libraries/reference/twilio-java/index.html
-
+For more information on the endpoints and options,
+see https://www.twilio.com/docs/libraries/reference/twilio-java/index.html[Twilio API documentation].
include::spring-boot:partial$starter.adoc[]
(camel) 14/25: CAMEL-20410: documentation fixes for camel-vertx-http
Posted by or...@apache.org.
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 3b7a77a9ae29cdea92a0895411bb1feeaf9c2cb7
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:47:48 2024 +0100
CAMEL-20410: documentation fixes for camel-vertx-http
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-vertx-http/src/main/docs/vertx-http-component.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-vertx/camel-vertx-http/src/main/docs/vertx-http-component.adoc b/components/camel-vertx/camel-vertx-http/src/main/docs/vertx-http-component.adoc
index 9978feb4c39..63e8c40fa9e 100644
--- a/components/camel-vertx/camel-vertx-http/src/main/docs/vertx-http-component.adoc
+++ b/components/camel-vertx/camel-vertx-http/src/main/docs/vertx-http-component.adoc
@@ -73,7 +73,7 @@ URI, or as a header with the key `Exchange.HTTP_QUERY` on the message.
== Response code
-Camel will handle according to the HTTP response code:
+Camel will handle, according to the HTTP response code:
* Response code is in the range 100..299, Camel regards it as a success
response.
@@ -95,7 +95,7 @@ codes. This allows you to get any response from the remote server.
* The HTTP status code
* The HTTP status line (text of the status code)
-* Redirect location, if server returned a redirect
+* Redirect location if server returned a redirect
* Response body as a `java.lang.String`, if server provided a body as
response
(camel) 17/25: CAMEL-20410: documentation fixes for camel-wasm
Posted by or...@apache.org.
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 e61547ca05bfbc75163cf38f21ac4c97611adc81
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:52:38 2024 +0100
CAMEL-20410: documentation fixes for camel-wasm
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-wasm/src/main/docs/wasm-component.adoc | 17 ++++++++++-------
components/camel-wasm/src/main/docs/wasm-language.adoc | 18 +++++++++++-------
2 files changed, 21 insertions(+), 14 deletions(-)
diff --git a/components/camel-wasm/src/main/docs/wasm-component.adoc b/components/camel-wasm/src/main/docs/wasm-component.adoc
index bfce5520a30..2061a66254c 100644
--- a/components/camel-wasm/src/main/docs/wasm-component.adoc
+++ b/components/camel-wasm/src/main/docs/wasm-component.adoc
@@ -19,7 +19,7 @@ https://webassembly.org[WebAssembly (Wasm)] is a low-level bytecode format desig
This component provides support to leverage Wasm functions for message transformation.
-Maven users will need to add the following dependency to their pom.xml
+Maven users will need to add the following dependency to their `pom.xml`
for this component:
[source,xml]
@@ -69,7 +69,7 @@ In _Wasm_, sharing objects between the host, in this case the _JVM_, and the _Wa
The module hosting the function *must* provide the functions to allocate/deallocate memory that *must* be named `alloc` and `dealloc` respectively.
-Here an example of the mentioned functions implemented in https://www.rust-lang.org[Rust]:
+Here's an example of the mentioned functions implemented in https://www.rust-lang.org[Rust]:
[source,rust]
---------------------------------------
@@ -91,7 +91,10 @@ pub unsafe extern "C" fn dealloc(ptr: &mut u8, len: i32) {
=== Data shapes
-It is not possible to share a Java object with the Wasm module directly and as mentioned before, data exchange leverages Wasm's memory that can be accessed by both the host and the guest runtimes. At this stage, the data structure that the component exchange with the Wasm function is a subset of the Apache Camel Message, containing headers the body encoded as a base64 string:
+It is not possible to share a Java object with the Wasm module directly, and as mentioned before,
+data exchange leverages Wasm's memory that can be accessed by both the host and the guest runtimes.
+At this stage, the data structure that the component exchange with the Wasm function is a subset of the Apache Camel Message,
+containing headers the body encoded as a base64 string:
[source,java]
-------------------------------------------------
@@ -117,11 +120,11 @@ fn function(ptr: u32, len: u32) -> u64
** a pointer to the memory location when the input data has been written (`ptr`)
** the size of the input data (`len`)
* it returns a 64bit unsigned integer where:
-** the first 32bit represent a pointer to the return data
-** the last 31bit represent the size of the return data, which must have the same data shape discussed above unless there is an error (see below)
-** the most significant bit of the returned data size, is reserved to signal an error, so if it is set, then the return data could contain an error message/code/etc
+** the first 32bit represents a pointer to the return data
+** the last 31bit represents the size of the return data, which must have the same data shape discussed above unless there is an error (see below)
+** the most significant bit of the returned data size is reserved to signal an error, so if it is set, then the return data could contain an error message/code/etc
-Here an example of a complete function:
+Here's an example of a complete function:
[source,rust]
---------------------------------------
diff --git a/components/camel-wasm/src/main/docs/wasm-language.adoc b/components/camel-wasm/src/main/docs/wasm-language.adoc
index 59aa6f5d1d0..50325d6de10 100644
--- a/components/camel-wasm/src/main/docs/wasm-language.adoc
+++ b/components/camel-wasm/src/main/docs/wasm-language.adoc
@@ -34,7 +34,7 @@ In _Wasm_, sharing objects between the host, in this case the _JVM_, and the _Wa
The module hosting the function *must* provide the functions to allocate/deallocate memory that *must* be named `alloc` and `dealloc` respectively.
-Here an example of the mentioned functions implemented in https://www.rust-lang.org[Rust]:
+Here's an example of the mentioned functions implemented in https://www.rust-lang.org[Rust]:
[source,rust]
---------------------------------------
@@ -56,7 +56,10 @@ pub unsafe extern "C" fn dealloc(ptr: &mut u8, len: i32) {
=== Data shapes
-It is not possible to share a Java object with the Wasm module directly and as mentioned before, data exchange leverages Wasm's memory that can be accessed by both the host and the guest runtimes. At this stage, the data structure that the component exchange with the Wasm function is a subset of the Apache Camel Message, containing headers the body encoded as a base64 string:
+It is not possible to share a Java object with the Wasm module directly, and as mentioned before,
+data exchange leverages Wasm's memory that can be accessed by both the host and the guest runtimes.
+At this stage, the data structure that the component exchange with the Wasm function is a subset of the Apache Camel Message,
+containing headers the body encoded as a base64 string:
[source,java]
-------------------------------------------------
@@ -82,11 +85,11 @@ fn function(ptr: u32, len: u32) -> u64
** a pointer to the memory location when the input data has been written (`ptr`)
** the size of the input data (`len`)
* it returns a 64bit unsigned integer where:
-** the first 32bit represent a pointer to the return data
-** the last 31bit represent the size of the return data
-** the most significant bit of the returned data size, is reserved to signal an error, so if it is set, then the return data could contain an error message/code/etc
+** the first 32bit represents a pointer to the return data
+** the last 31bit represents the size of the return data
+** the most significant bit of the returned data size is reserved to signal an error, so if it is set, then the return data could contain an error message/code/etc
-Here an example of a complete function:
+Here's an example of a complete function:
[source,rust]
---------------------------------------
@@ -160,7 +163,8 @@ Supposing we have compiled a Wasm module containing the function above, then it
== Dependencies
-If you use Maven you could just add the following to your `pom.xml`, substituting the version number for the latest and greatest release (see the download page for the latest versions).
+If you use Maven you could add the following to your `pom.xml`,
+substituting the version number for the latest and greatest release.
[source,xml]
---------------------------------------
(camel) 19/25: CAMEL-20410: documentation fixes for camel-whatsapp
Posted by or...@apache.org.
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 b1d4da6788d2632a08bf05b6fedfc8d3f061e31f
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:57:39 2024 +0100
CAMEL-20410: documentation fixes for camel-whatsapp
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/whatsapp-component.adoc | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/components/camel-whatsapp/src/main/docs/whatsapp-component.adoc b/components/camel-whatsapp/src/main/docs/whatsapp-component.adoc
index bce0ac128e8..f505d9d2f21 100644
--- a/components/camel-whatsapp/src/main/docs/whatsapp-component.adoc
+++ b/components/camel-whatsapp/src/main/docs/whatsapp-component.adoc
@@ -15,9 +15,13 @@
The WhatsApp component provides access to the https://developers.facebook.com/docs/whatsapp/cloud-api[WhatsApp Cloud API].
It allows a Camel-based application to send messages using a cloud-hosted version of the WhatsApp Business Platform.
-Before using this component you have to set up Developer Assets and Platform Access, following the instructions at the
+Before using this component, you have to set up Developer Assets and Platform Access, following the instructions at the
https://developers.facebook.com/docs/whatsapp/cloud-api/get-started#set-up-developer-assets[Register WhatsApp Business Cloud API account].
-Once the account is set up you can navigate to https://developers.facebook.com/apps/?show_reminder=true[Meta for Developers Apps], in order to access to the WhatsApp dashboard where you can get the **authorization token**, **phone number id** and you can add **recipient phone numbers**, these parameters are mandatory in order to use the component.=
+Once the account is set up,
+you can navigate to https://developers.facebook.com/apps/?show_reminder=true[Meta for Developers Apps],
+to access to the WhatsApp dashboard.
+There you can get the **authorization token**, **phone number id**,
+and you can add **recipient phone numbers**, these parameters are mandatory to use the component.=
Maven users will need to add the following dependency to their `pom.xml`
for this component:
@@ -86,7 +90,7 @@ For more information you can refer to https://developers.facebook.com/docs/whats
The Whatsapp component supports usage in the *webhook mode* using the *camel-webhook* component.
-In order to enable webhook mode, users need first to add a REST implementation to their application.
+To enable webhook mode, users need first to add a REST implementation to their application.
Maven users, for example, can add *netty-http* to their `pom.xml` file:
[source,xml]
@@ -106,6 +110,9 @@ In Java DSL:
fromF("webhook:whatsapp:%s?authorizationToken=%s&webhookVerifyToken=%s", "<phoneNumberId>", "<AuthorizationToken>", "<webhookVerifyToken>").log("${body}")
---------------------------------------------------------
-In order to enable and configure the webhook, the following guide can be used https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks the webhook component will expose an endpoint that can be used into the whatsapp administration console.
+You can follow the
+https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks[set up webhooks guide]
+to enable and configure the webhook.
+The webhook component will expose an endpoint that can be used into the whatsapp administration console.
-Refer to the *camel-webhook* component documentation for instructions on how to set it.
+Refer to the xref:webhook-component.adoc[camel-webhook component] documentation for instructions on how to set it.
(camel) 25/25: CAMEL-20410: documentation fixes for camel-qdrant
Posted by or...@apache.org.
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 69ef52e7ab15d2d417520e6e6566996c02ae564d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 12:17:46 2024 +0100
CAMEL-20410: documentation fixes for camel-qdrant
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-qdrant/src/main/docs/qdrant-component.adoc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/camel-qdrant/src/main/docs/qdrant-component.adoc b/components/camel-qdrant/src/main/docs/qdrant-component.adoc
index 83e3aacd259..35a089ca5ad 100644
--- a/components/camel-qdrant/src/main/docs/qdrant-component.adoc
+++ b/components/camel-qdrant/src/main/docs/qdrant-component.adoc
@@ -42,7 +42,7 @@ include::partial$component-endpoint-options.adoc[]
== Collection Samples
-In the route below we use the qdrant component to create a collection named _myCollection_ with the given parameters:
+In the route below, we use the qdrant component to create a collection named _myCollection_ with the given parameters:
[tabs]
====
@@ -93,7 +93,7 @@ from("direct:in")
=== Retrieve
-In the route below we use the qdrant component to retrieve information of a single point by id from the collection named _myCollection_:
+In the route below, we use the qdrant component to retrieve information of a single point by id from the collection named _myCollection_:
[tabs]
====
@@ -114,7 +114,7 @@ from("direct:in")
=== Delete
-In the route below we use the qdrant component to delete points from the collection named _myCollection_ according to a criteria:
+In the route below, we use the qdrant component to delete points from the collection named `myCollection` according to a criteria:
[tabs]
====
(camel) 15/25: CAMEL-20410: documentation fixes for camel-vertx-websocket
Posted by or...@apache.org.
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 1431513ee3f0ac32635531b7ff572a8022ae180d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:48:19 2024 +0100
CAMEL-20410: documentation fixes for camel-vertx-websocket
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-vertx-websocket/src/main/docs/vertx-websocket-component.adoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-vertx/camel-vertx-websocket/src/main/docs/vertx-websocket-component.adoc b/components/camel-vertx/camel-vertx-websocket/src/main/docs/vertx-websocket-component.adoc
index 73b94e8f05e..9c6f98c0a8d 100644
--- a/components/camel-vertx/camel-vertx-websocket/src/main/docs/vertx-websocket-component.adoc
+++ b/components/camel-vertx/camel-vertx-websocket/src/main/docs/vertx-websocket-component.adoc
@@ -83,7 +83,7 @@ from("vertx-websocket:localhost:8080/chat/{user}")
.log("New message from ${header.user} >>> ${body}")
----
-Similarly you can retrieve any query parameter values that were used by the WebSocket client to connect to the server endpoint:
+Similarly, you can retrieve any query parameter values used by the WebSocket client to connect to the server endpoint:
[source,java]
----
(camel) 05/25: CAMEL-20410: documentation fixes for camel-tracing
Posted by or...@apache.org.
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 82089aaaddf0d2ea9bdd612233c98c82fc84f75c
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:19:57 2024 +0100
CAMEL-20410: documentation fixes for camel-tracing
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-tracing/src/main/docs/tracing.adoc | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/components/camel-tracing/src/main/docs/tracing.adoc b/components/camel-tracing/src/main/docs/tracing.adoc
index 6a5631e621c..2ce65ec572e 100644
--- a/components/camel-tracing/src/main/docs/tracing.adoc
+++ b/components/camel-tracing/src/main/docs/tracing.adoc
@@ -9,6 +9,10 @@
*Since Camel {since}*
-This module is common interfaces and API for distributed tracing.
+This module is a common interface and API for distributed tracing.
+
+This module is not intended to be used by end users. Instead, should use one of:
+
+* xref:opentelemetry.adoc[`camel-opentelemetry`]
+* xref:observation.adoc[`camel-observation`]
-This module is not intended to be used by end users, but they should use `camel-opentelemetry`, `camel-opentracing` or `camel-zipkin` instead.
(camel) 23/25: CAMEL-20410: documentation fixes for camel-xslt
Posted by or...@apache.org.
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 dbd132820dff44eee462314372ecf99e6b837030
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 12:15:29 2024 +0100
CAMEL-20410: documentation fixes for camel-xslt
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-xslt/src/main/docs/xslt-component.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-xslt/src/main/docs/xslt-component.adoc b/components/camel-xslt/src/main/docs/xslt-component.adoc
index 5aa3847beac..e2407f380dc 100644
--- a/components/camel-xslt/src/main/docs/xslt-component.adoc
+++ b/components/camel-xslt/src/main/docs/xslt-component.adoc
@@ -84,11 +84,11 @@ from("activemq:My.Queue").
to("activemq:Another.Queue");
----
-== Getting Useable Parameters into the XSLT
+== Getting Usable Parameters into the XSLT
By default, all headers are added as parameters which are then available in
the XSLT. +
-To make the parameters useable, you will need to declare them.
+To make the parameters usable, you will need to declare them.
[source,xml]
----
(camel) 22/25: CAMEL-20410: documentation fixes for camel-xpath
Posted by or...@apache.org.
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 76fd91770f5539908ca8bc949d2e8b3aff82796c
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 12:14:43 2024 +0100
CAMEL-20410: documentation fixes for camel-xpath
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-xpath/src/main/docs/xpath-language.adoc | 80 +++++++++++-----------
1 file changed, 40 insertions(+), 40 deletions(-)
diff --git a/components/camel-xpath/src/main/docs/xpath-language.adoc b/components/camel-xpath/src/main/docs/xpath-language.adoc
index 43f736a571b..89a1900099d 100644
--- a/components/camel-xpath/src/main/docs/xpath-language.adoc
+++ b/components/camel-xpath/src/main/docs/xpath-language.adoc
@@ -27,12 +27,12 @@ include::partial$language-options.adoc[]
== Namespaces
-You can easily use namespaces with XPath expressions using the
-`Namespaces` helper class.
+You can use namespaces with XPath expressions using the `Namespaces` helper class.
== Variables
-Variables in XPath is defined in different namespaces. The default
+Variables in XPath are defined in different namespaces.
+The default
namespace is `\http://camel.apache.org/schema/spring`.
[width="100%",cols="10%,10%,10%,70%",options="header",]
@@ -53,14 +53,14 @@ Camel will resolve variables according to either:
=== Namespace given
-If the namespace is given then Camel is instructed exactly what to
+If the namespace is given, then Camel is instructed exactly what to
return. However, when resolving Camel will try to
resolve a header with the given local part first, and return it. If the
-local part has the value *body* then the body is returned instead.
+local part has the value *body,* then the body is returned instead.
=== No namespace given
-If there is no namespace given then Camel resolves only based on the
+If there is no namespace given, then Camel resolves only based on the
local part. Camel will try to resolve a variable in the following steps:
* from `variables` that has been set using the `variable(name, value)` fluent builder
@@ -91,7 +91,7 @@ Here's an example showing some of these functions in use.
=== Functions example
If you prefer to configure your routes in your Spring
-XML file then you can use XPath expressions as follows
+XML file, then you can use XPath expressions as follows
[source,xml]
----
@@ -115,18 +115,19 @@ XML file then you can use XPath expressions as follows
----
Notice how we can reuse the namespace prefixes, *foo* in this case, in
-the XPath expression for easier namespace based XPath expressions.
+the XPath expression for easier namespace-based XPath expressions.
-== Stream based message bodies
+== Stream-based message bodies
If the message body is stream based, which means the input it receives
is submitted to Camel as a stream. That means you will only be able to
-read the content of the stream *once*. So often when you use
-xref:xpath-language.adoc[XPath] as xref:xpath-language.adoc[Message Filter] or
-Content Based Router then you need to
-access the data multiple times, and you should use
-Stream Caching or convert the message body to
-a `String` prior which is safe to be re-read multiple times.
+read the content of the stream *once*.
+
+You often need to access the data multiple times when you use
+xref:xpath-language.adoc[XPath] as a xref:xpath-language.adoc[Message Filter] or
+Content-Based Router.
+Then, you should use Stream Caching or convert the message body to
+a `String` prior, which is safe to be re-read multiple times.
[source,java]
----
@@ -142,11 +143,11 @@ from("queue:foo").
otherwise().to("queue:others");
----
-== Setting result type
+== Setting a result type
The XPath expression will return a result type using
native XML objects such as `org.w3c.dom.NodeList`. However, many times you
-want a result type to be a `String`. To do this you have to instruct the
+want a result type to be a `String`. To do this, you have to instruct the
XPath which result type to use.
In Java DSL:
@@ -179,14 +180,14 @@ type, so the concat function works.
== Using XPath on Headers
Some users may have XML stored in a header. To apply an XPath to a
-header's value you can do this by defining the 'headerName' attribute.
+header's value, you can do this by defining the 'headerName' attribute.
[source,xml]
----
<xpath headerName="invoiceDetails">/invoice/@orderType = 'premium'</xpath>
----
-And in Java DSL you specify the headerName as the 2nd parameter as shown:
+And in Java DSL you specify the headerName as the second parameter as shown:
[source,java]
----
@@ -222,7 +223,7 @@ And in XML
== Using namespaces
If you have a standard set of namespaces you wish to work with and wish
-to share them across many XPath expressions you can use the
+to share them across many XPath expressions, you can use the
`org.apache.camel.support.builder.Namespaces` when using Java DSL as shown:
[source,java]
@@ -235,10 +236,10 @@ from("direct:start")
----
Notice how the namespaces are provided to `xpath` with the `ns` variable
-that are passed in as the 2nd parameter.
+that are passed in as the second parameter.
Each namespace is a key=value pair, where the prefix is the key.
-In the XPath expression then the namespace is used by its prefix, eg:
+In the XPath expression then the namespace is used by its prefix, e.g.:
[source,xpath]
----
@@ -254,7 +255,7 @@ Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
.add("b", "http://acme.com/beer");
----
-When using namespaces in XML DSL then its different, as you setup the namespaces
+When using namespaces in XML DSL then its different, as you set up the namespaces
in the XML root tag (or one of the `camelContext`, `routes`, `route` tags).
In the XML example below we use Spring XML where the namespace is declared in the root tag `beans`,
@@ -361,7 +362,7 @@ a custom XPathFactory to use.
This unit test shows how this can be done to use Saxon instead:
-Camel will log at `INFO` level if it uses a non default XPathFactory
+Camel will log at `INFO` level if it uses a non-default `XPathFactory`
such as:
[source]
@@ -370,7 +371,7 @@ XPathBuilder INFO Using system property javax.xml.xpath.XPathFactory:http://sa
net.sf.saxon.xpath.XPathFactoryImpl when creating XPathFactory
----
-To use Apache Xerces you can configure the system property
+To use Apache Xerces, you can configure the system property
[source]
----
@@ -379,7 +380,7 @@ To use Apache Xerces you can configure the system property
=== Enabling Saxon from XML DSL
-Similarly to Java DSL, to enable Saxon from XML DSL you have three
+Similarly to Java DSL, to enable Saxon from XML DSL, you have three
options:
Referring to a custom factory:
@@ -414,15 +415,15 @@ And the recommended approach is to set `saxon=true` as shown:
Many XPath-related issues that users frequently face are
linked to the usage of namespaces. You may have some misalignment
-between the namespaces present in your message, and those that your XPath
+between the namespaces present in your message and those that your XPath
expression is aware of or referencing. XPath predicates or expressions
that are unable to locate the XML elements and attributes due to
-namespaces issues may simply look like _they are not working_, when in
+namespaces issues may look like _they are not working_, when in
reality all there is to it is a lack of namespace definition.
Namespaces in XML are completely necessary, and while we would love to
simplify their usage by implementing some magic or voodoo to wire
-namespaces automatically, truth is that any action down this path would
+namespaces automatically, the truth is that any action down this path would
disagree with the standards and would greatly hinder interoperability.
Therefore, the utmost we can do is assist you in debugging such issues
@@ -455,13 +456,13 @@ in which case the logging will occur on the INFO level
Camel is able to discover and dump all namespaces present on every
incoming message before evaluating an XPath expression, providing all
-the richness of information you need to help you analyse and pinpoint
+the richness of information you need to help you analyze and pinpoint
possible namespace issues.
To achieve this, it in turn internally uses another specially tailored
XPath expression to extract all namespace mappings that appear in the
message, displaying the prefix and the full namespace URI(s) for each
-individual mapping.
+mapping.
Some points to take into account:
@@ -503,10 +504,10 @@ xmlns:b=[http://apache.org/camelA, http://apache.org/camelB]}
== Loading script from external resource
-You can externalize the script and have Camel load it from a resource
+You can externalize the script and have Apache Camel load it from a resource
such as `"classpath:"`, `"file:"`, or `"http:"`.
This is done using the following syntax: `"resource:scheme:location"`,
-eg to refer to a file on the classpath you can do:
+e.g., to refer to a file on the classpath you can do:
[source,java]
----
@@ -515,7 +516,7 @@ eg to refer to a file on the classpath you can do:
== Transforming a XML message
-For basic XML transformation where you have a fixed structure you can represent with a combination of using
+For basic XML transformation where you have a fixed structure, you can represent with a combination of using
Camel simple and XPath language as:
Given this XML body
@@ -561,7 +562,7 @@ from("direct:start")
Notice how we use `${xpath(exp}` syntax in the simple template to use xpath that will be evaluated on the message body,
to extract the content to be used in the output (see previous for output).
-Since the simple language can output anything you can also use this to output in plain text or JSon etc.
+Since the simple language can output anything, you can also use this to output in plain text or JSon, etc.
[source,java]
----
@@ -572,12 +573,11 @@ from("direct:start")
== Dependencies
-To use XPath in your camel routes you need to add the dependency on
-*camel-xpath* which implements the XPath language.
+To use XPath in your camel routes, you need to add the dependency on
+*camel-xpath*, which implements the XPath language.
-If you use maven you could just add the following to your pom.xml,
-substituting the version number for the latest & greatest release (see
-the download page for the latest versions).
+If you use Maven, you could add the following to your `pom.xml`,
+substituting the version number for the latest & greatest release.
[source,xml]
--------------------------------------
(camel) 01/25: CAMEL-20410: documentation fixes for camel-thrift
Posted by or...@apache.org.
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 80fb3d8b759a8c18233ee252d2ab735ab5eb19ac
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:07:32 2024 +0100
CAMEL-20410: documentation fixes for camel-thrift
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/thrift-component.adoc | 7 +++---
.../src/main/docs/thrift-dataformat.adoc | 26 +++++++++++-----------
2 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/components/camel-thrift/src/main/docs/thrift-component.adoc b/components/camel-thrift/src/main/docs/thrift-component.adoc
index a7b34e28c0a..d1e9f9ceca4 100644
--- a/components/camel-thrift/src/main/docs/thrift-component.adoc
+++ b/components/camel-thrift/src/main/docs/thrift-component.adoc
@@ -58,8 +58,9 @@ include::partial$component-endpoint-headers.adoc[]
== Thrift method parameters mapping
Parameters in the called procedure must be passed as a list of objects inside the message body. The primitives are converted from the objects on the fly.
-In order to correctly find the corresponding method, all types must be transmitted regardless of the values. Please see an example below, how to pass
-different parameters to the method with the Camel body
+To correctly find the corresponding method, all types must be transmitted regardless of the values. Please see an example below, how to pass
+different parameters to the method with the Camel body:
+
[source,java]
-------------------------------------------------------------------------------
List requestBody = new ArrayList();
@@ -73,7 +74,7 @@ requestBody.add((double)THRIFT_TEST_NUM1);
requestBody.add("empty"); // String parameter
requestBody.add(ByteBuffer.allocate(10)); // binary parameter
requestBody.add(new Work(THRIFT_TEST_NUM1, THRIFT_TEST_NUM2, Operation.MULTIPLY)); // Struct parameter
-requestBody.add(new ArrayList<Integer>()); // list paramater
+requestBody.add(new ArrayList<Integer>()); // list parameter
requestBody.add(new HashSet<String>()); // set parameter
requestBody.add(new HashMap<String, Long>()); // map parameter
diff --git a/components/camel-thrift/src/main/docs/thrift-dataformat.adoc b/components/camel-thrift/src/main/docs/thrift-dataformat.adoc
index bf4211b0722..e8b82c8ab85 100644
--- a/components/camel-thrift/src/main/docs/thrift-dataformat.adoc
+++ b/components/camel-thrift/src/main/docs/thrift-dataformat.adoc
@@ -13,14 +13,12 @@
Camel provides a Data Format to serialize between
-Java and the Apache Thrift . The project's site details why
-you may wish to
-https://thrift.apache.org/.
+Java and the https://thrift.apache.org/[Apache Thrift].
Apache Thrift is language-neutral and
platform-neutral, so messages produced by your Camel routes may be
consumed by other language implementations.
-https://github.com/apache/thrift[Apache Thrift Implementation] +
+NOTE: Check the https://github.com/apache/thrift[Apache Thrift Implementation] for additional details.
== Thrift Options
@@ -30,9 +28,9 @@ include::partial$dataformat-options.adoc[]
== Content type format
-It's possible to parse JSON message to convert it to the Thrift format and unparse it back using native util converter.
+It's possible to parse JSON message to convert it to the Thrift format and serialize it back using native util converter.
To use this option, set contentTypeFormat value to 'json' or call thrift with second parameter.
-If default instance is not specified, always use native binary Thrift format.
+If the default instance is not specified, always use the native binary Thrift format.
The simple JSON format is write-only (marshal) and produces a simple output format suitable for parsing by scripting languages.
The sample code shows below:
@@ -46,7 +44,8 @@ from("direct:marshal")
== Thrift overview
-This quick overview of how to use Thrift. For more detail see the
+This quick overview of how to use Thrift.
+For more details, see the
https://thrift.apache.org/tutorial/[complete tutorial]
== Defining the thrift format
@@ -56,7 +55,7 @@ This is defined in a .thrift file as so:
*tutorial.thrift*
-[source,java]
+[source,text]
----
namespace java org.apache.camel.dataformat.thrift.generated
@@ -85,9 +84,10 @@ You can also run the compiler for any additional supported languages you require
`thrift -r --gen java -out ../java/ ./tutorial-dataformat.thrift`
This will generate separate Java class for each type defined in .thrift
-file, i.e. struct or enum.
+file, i.e., struct or enum.
The generated classes implement org.apache.thrift.TBase which is required
-by the serialization mechanism. For this reason it important that only
+by the serialization mechanism.
+For this reason, it is important that only
these classes are used in the body of your exchanges.
Camel will throw an exception on route creation if you attempt to tell
the Data Format to use a class that does not implement
@@ -125,7 +125,7 @@ default instance class name like this.
The following example shows how to use Thrift to unmarshal using Spring
configuring the thrift data type
-[source,java]
+[source,xml]
----
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
@@ -140,8 +140,8 @@ configuring the thrift data type
== Dependencies
-To use Thrift in your camel routes you need to add the a dependency on
-*camel-thrift* which implements this data format.
+To use Thrift in your Camel routes, you need to add a dependency on
+*camel-thrift*, which implements this data format.
[source,xml]
----
(camel) 21/25: CAMEL-20410: documentation fixes for camel-wordpress (regen-DSL)
Posted by or...@apache.org.
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 4dcae1ea05f99f47a1c739cee01907749a7658a2
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 13:09:15 2024 +0100
CAMEL-20410: documentation fixes for camel-wordpress (regen-DSL)
---
.../component/ComponentsBuilderFactory.java | 4 ++--
.../dsl/WordpressComponentBuilderFactory.java | 8 ++++----
.../src/generated/resources/metadata.json | 4 ++--
.../builder/endpoint/StaticEndpointBuilders.java | 8 ++++----
.../dsl/WordpressEndpointBuilderFactory.java | 22 +++++++++++-----------
5 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index e06c707fc4f..754bfd0e78e 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -4305,8 +4305,8 @@ public interface ComponentsBuilderFactory {
return org.apache.camel.builder.component.dsl.WhatsappComponentBuilderFactory.whatsapp();
}
/**
- * Wordpress (camel-wordpress)
- * Manage posts and users using Wordpress API.
+ * WordPress (camel-wordpress)
+ * Manage posts and users using the WordPress API.
*
* Category: cloud,api,cms
* Since: 2.21
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WordpressComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WordpressComponentBuilderFactory.java
index 41c86182b75..0ec59eb0802 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WordpressComponentBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WordpressComponentBuilderFactory.java
@@ -23,7 +23,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.wordpress.WordpressComponent;
/**
- * Manage posts and users using Wordpress API.
+ * Manage posts and users using the WordPress API.
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@@ -31,8 +31,8 @@ import org.apache.camel.component.wordpress.WordpressComponent;
public interface WordpressComponentBuilderFactory {
/**
- * Wordpress (camel-wordpress)
- * Manage posts and users using Wordpress API.
+ * WordPress (camel-wordpress)
+ * Manage posts and users using the WordPress API.
*
* Category: cloud,api,cms
* Since: 2.21
@@ -45,7 +45,7 @@ public interface WordpressComponentBuilderFactory {
}
/**
- * Builder for the Wordpress component.
+ * Builder for the WordPress component.
*/
interface WordpressComponentBuilder
extends
diff --git a/dsl/camel-componentdsl/src/generated/resources/metadata.json b/dsl/camel-componentdsl/src/generated/resources/metadata.json
index 5997c74b2fe..f7d4d9cc456 100644
--- a/dsl/camel-componentdsl/src/generated/resources/metadata.json
+++ b/dsl/camel-componentdsl/src/generated/resources/metadata.json
@@ -7426,8 +7426,8 @@
"WordpressComponentBuilderFactory": {
"kind": "component",
"name": "wordpress",
- "title": "Wordpress",
- "description": "Manage posts and users using Wordpress API.",
+ "title": "WordPress",
+ "description": "Manage posts and users using the WordPress API.",
"deprecated": false,
"firstVersion": "2.21.0",
"label": "cloud,api,cms",
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index f17ad1e20d8..c838ab062c6 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -15510,8 +15510,8 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.WhatsAppEndpointBuilderFactory.endpointBuilder(componentName, path);
}
/**
- * Wordpress (camel-wordpress)
- * Manage posts and users using Wordpress API.
+ * WordPress (camel-wordpress)
+ * Manage posts and users using the WordPress API.
*
* Category: cloud,api,cms
* Since: 2.21
@@ -15536,8 +15536,8 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.WordpressEndpointBuilderFactory.endpointBuilder("wordpress", path);
}
/**
- * Wordpress (camel-wordpress)
- * Manage posts and users using Wordpress API.
+ * WordPress (camel-wordpress)
+ * Manage posts and users using the WordPress API.
*
* Category: cloud,api,cms
* Since: 2.21
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WordpressEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WordpressEndpointBuilderFactory.java
index 526d2777b07..2635df12cc7 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WordpressEndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WordpressEndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Manage posts and users using Wordpress API.
+ * Manage posts and users using the WordPress API.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -36,7 +36,7 @@ public interface WordpressEndpointBuilderFactory {
/**
- * Builder for endpoint consumers for the Wordpress component.
+ * Builder for endpoint consumers for the WordPress component.
*/
public interface WordpressEndpointConsumerBuilder
extends
@@ -239,7 +239,7 @@ public interface WordpressEndpointBuilderFactory {
}
/**
- * Advanced builder for endpoint consumers for the Wordpress component.
+ * Advanced builder for endpoint consumers for the WordPress component.
*/
public interface AdvancedWordpressEndpointConsumerBuilder
extends
@@ -375,7 +375,7 @@ public interface WordpressEndpointBuilderFactory {
}
/**
- * Builder for endpoint producers for the Wordpress component.
+ * Builder for endpoint producers for the WordPress component.
*/
public interface WordpressEndpointProducerBuilder
extends
@@ -578,7 +578,7 @@ public interface WordpressEndpointBuilderFactory {
}
/**
- * Advanced builder for endpoint producers for the Wordpress component.
+ * Advanced builder for endpoint producers for the WordPress component.
*/
public interface AdvancedWordpressEndpointProducerBuilder
extends
@@ -638,7 +638,7 @@ public interface WordpressEndpointBuilderFactory {
}
/**
- * Builder for endpoint for the Wordpress component.
+ * Builder for endpoint for the WordPress component.
*/
public interface WordpressEndpointBuilder
extends
@@ -839,7 +839,7 @@ public interface WordpressEndpointBuilderFactory {
}
/**
- * Advanced builder for endpoint for the Wordpress component.
+ * Advanced builder for endpoint for the WordPress component.
*/
public interface AdvancedWordpressEndpointBuilder
extends
@@ -852,8 +852,8 @@ public interface WordpressEndpointBuilderFactory {
public interface WordpressBuilders {
/**
- * Wordpress (camel-wordpress)
- * Manage posts and users using Wordpress API.
+ * WordPress (camel-wordpress)
+ * Manage posts and users using the WordPress API.
*
* Category: cloud,api,cms
* Since: 2.21
@@ -877,8 +877,8 @@ public interface WordpressEndpointBuilderFactory {
return WordpressEndpointBuilderFactory.endpointBuilder("wordpress", path);
}
/**
- * Wordpress (camel-wordpress)
- * Manage posts and users using Wordpress API.
+ * WordPress (camel-wordpress)
+ * Manage posts and users using the WordPress API.
*
* Category: cloud,api,cms
* Since: 2.21
(camel) 02/25: CAMEL-20410: documentation fixes for camel-thymeleaf
Posted by or...@apache.org.
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 1eac3ae1c0be097608ac46c2afc4526bf814db75
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:10:29 2024 +0100
CAMEL-20410: documentation fixes for camel-thymeleaf
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/thymeleaf-component.adoc | 25 +++++++++++-----------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/components/camel-thymeleaf/src/main/docs/thymeleaf-component.adoc b/components/camel-thymeleaf/src/main/docs/thymeleaf-component.adoc
index 91be394d41f..de430943a27 100644
--- a/components/camel-thymeleaf/src/main/docs/thymeleaf-component.adoc
+++ b/components/camel-thymeleaf/src/main/docs/thymeleaf-component.adoc
@@ -38,8 +38,8 @@ thymeleaf:templateName[?options]
-------------------------------
Where *templateName* is the classpath-local URI of the template to
-invoke; or the complete URL of the remote template (eg:
-\file://folder/myfile.html).
+invoke; or the complete URL of the remote template (e.g.:
+`\file://folder/myfile.html`).
@@ -77,7 +77,8 @@ The `fruit` header is now accessible from the `message.out.headers`.
== Thymeleaf Context
Camel will provide exchange information in the Thymeleaf context (just a
-`Map`). The `Exchange` is transfered as:
+`Map`).
+The `Exchange` is transferred as:
[width="100%",cols="10%,90%",options="header",]
|=======================================================================
@@ -103,7 +104,7 @@ Camel will provide exchange information in the Thymeleaf context (just a
|=======================================================================
You can set up a custom Thymeleaf Context yourself by
-setting property *allowTemplateFromHeader=true* and setting the message header *CamelThymeleafContext* like this
+setting property `allowTemplateFromHeader=true` and setting the message header `CamelThymeleafContext` like this
[source,java]
-----------------------------------------------------------------------
@@ -116,14 +117,14 @@ exchange.getIn().setHeader("CamelThymeleafContext", engineContext);
The Thymeleaf template resource is, by default, hot reloadable for both
file and classpath resources (expanded jar). If you set
`contentCache=true`, Camel will only load the resource once, and thus
-hot reloading is not possible. This scenario can be used in production,
+hot reloading is not possible. This scenario can be used in production
when the resource never changes.
== Dynamic templates
Camel provides two headers by which you can define a different resource
location for a template or the template content itself. If any of these
-headers is set then Camel uses this over the endpoint configured
+headers is set, then Camel uses this over the endpoint configured
resource. This allows you to provide a dynamic template at runtime.
[width="100%",cols="10%,10%,80%",options="header",]
@@ -159,7 +160,7 @@ from("activemq:My.Queue")
.to("activemq:Another.Queue");
----------------------------------------
-And to use the content cache, e.g. for use in production, where the
+And to use the content cache, e.g., for use in production, where the
`.html` template never changes:
[source,java]
@@ -169,7 +170,7 @@ from("activemq:My.Queue")
.to("activemq:Another.Queue");
----------------------------------------------------------
-And a file based resource:
+And a file-based resource:
[source,java]
-----------------------------------------------------------------
@@ -188,8 +189,8 @@ from("direct:in")
.to("thymeleaf:dummy?allowTemplateFromHeader=true"");
---------------------------------------------------------------------------
-It's possible to specify a template directly as a header
-the component should use dynamically via a header, so for example:
+It's possible to specify a template directly as a header.
+The component should use it dynamically via a header, so, for example:
[source,java]
---------------------------------------------------------------------------------------------------------------
@@ -200,7 +201,7 @@ from("direct:in")
== The Email Sample
-In this sample we want to use Thymeleaf templating for an order
+In this sample, we want to use Thymeleaf templating for an order
confirmation email. The email template is laid out in Thymeleaf as:
.letter.html
@@ -214,7 +215,7 @@ Regards Camel Riders Bookstore
[(${body})]
----------------------------------------------
-And the java code (from an unit test):
+And the java code (from a unit test):
[source,java]
----
(camel) 09/25: CAMEL-20410: documentation fixes for camel-undertow-security
Posted by or...@apache.org.
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 c5a82180ce4458078175ae7b3a3b9422357ee462
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 22 11:35:40 2024 +0100
CAMEL-20410: documentation fixes for camel-undertow-security
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/undertow-spring-security.adoc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/components/camel-undertow-spring-security/src/main/docs/undertow-spring-security.adoc b/components/camel-undertow-spring-security/src/main/docs/undertow-spring-security.adoc
index be5a2f26ed5..4b084345e85 100644
--- a/components/camel-undertow-spring-security/src/main/docs/undertow-spring-security.adoc
+++ b/components/camel-undertow-spring-security/src/main/docs/undertow-spring-security.adoc
@@ -14,21 +14,21 @@
*OSGi is not supported*
-The Spring Security Provider provides Spring Security (5.x) token bearer security over camel-undertow component.
+The Spring Security Provider provides Spring Security (5.x) token bearer security over the camel-undertow component.
To force camel-undertow to use spring security provider:
-* Add spring security provider library on classpath.
+* Add the spring security provider library on classpath.
* Provide instance of SpringSecurityConfiguration as `securityConfiguration`
-parameter into camel-undertow component or provide both `securityConfiguration` and `securityProvider`
+parameter into the camel-undertow component or provide both `securityConfiguration` and `securityProvider`
into camel-undertow component.
* Configure spring-security.
-Configuration has to provide following security attribute:
+Configuration has to provide the following security attribute:
[width="100%"]
|===
| Name | Description | Type
-| *securityFiler* | Provides security filter gained from configured spring security (5.x). Filter could be obtained
-for example from DelegatingFilterProxyRegistrationBean. | Filter
+| *securityFiler* | Provides security filter gained from configured spring security (5.x). Filter could be obtained,
+for example, from DelegatingFilterProxyRegistrationBean. | Filter
|===
Each exchange created by Undertow endpoint with spring security contains header 'SpringSecurityProvider_principal' (