This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 0f2620e6ff50 chore: docs - fix outdated option names and texts,
describe two transformers (#31207)
0f2620e6ff50 is described below
commit 0f2620e6ff50196818b434d8973ad88615941a61
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Dec 1 22:33:14 2026 +0100
chore: docs - fix outdated option names and texts, describe two
transformers (#31207)
Doc pages used option names that the code does not know or that do nothing:
the olingo2
example sent orderBy instead of the OData $orderby, flink used lower case
dataset/datastream
options, amqp did not say that Qpid JMS options go in the broker URI. The
user manual had a
javax CDI package, broken stream-caching examples and said getOut() is gone
(it is deprecated).
The application-octet-stream and text-plain transformers now have a
description.
camel-k-runtime is no longer listed in the documentation and release guides.
Part of CAMEL-27980.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../org/apache/camel/catalog/docs/amqp-component.adoc | 10 ++++++++--
.../org/apache/camel/catalog/docs/flink-component.adoc | 6 +++---
.../org/apache/camel/catalog/docs/olingo2-component.adoc | 2 +-
.../camel/catalog/transformers/application-octet-stream.json | 1 +
.../org/apache/camel/catalog/transformers/text-plain.json | 1 +
components/camel-amqp/src/main/docs/amqp-component.adoc | 10 ++++++++--
components/camel-flink/src/main/docs/flink-component.adoc | 6 +++---
.../src/main/docs/olingo2-component.adoc | 2 +-
.../org/apache/camel/transformer/application-octet-stream.json | 1 +
.../services/org/apache/camel/transformer/text-plain.json | 1 +
.../processor/transformer/ByteArrayDataTypeTransformer.java | 4 +++-
.../camel/processor/transformer/StringDataTypeTransformer.java | 4 +++-
docs/user-manual/modules/ROOT/pages/camel-jbang-mcp.adoc | 4 ++--
.../modules/ROOT/pages/improving-the-documentation.adoc | 3 +--
docs/user-manual/modules/ROOT/pages/registry.adoc | 2 +-
docs/user-manual/modules/ROOT/pages/release-guide-website.adoc | 3 +--
docs/user-manual/modules/ROOT/pages/stream-caching.adoc | 4 ++--
17 files changed, 41 insertions(+), 23 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/amqp-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/amqp-component.adoc
index 12d2c028c4db..1fc3d75104c4 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/amqp-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/amqp-component.adoc
@@ -185,7 +185,8 @@ xref:jms-component.adoc[JMS] component.
*Enabling AMQP specific options*
-If you, for example, need to enable `amqp.traceFrames` you can do that by
appending the option to your URI, like the following example:
+The options of the Qpid JMS client, such as `amqp.traceFrames`, are not
options of the Camel endpoint: append them to
+the connection URI of the broker, which is the `brokerUrl` option or the URI
given to `AMQPComponent.amqpComponent`:
._Java-only: Java programmatic component factory_
[source,java]
@@ -193,7 +194,12 @@ If you, for example, need to enable `amqp.traceFrames` you
can do that by append
AMQPComponent amqp =
AMQPComponent.amqpComponent("amqp://localhost:5672?amqp.traceFrames=true");
----
-For reference, take a look at the
https://qpid.apache.org/releases/qpid-jms-1.7.0/docs/index.html[QPID JMS client
configuration]
+[source,properties]
+----
+camel.component.amqp.broker-url = amqp://localhost:5672?amqp.traceFrames=true
+----
+
+For reference, take a look at the
https://qpid.apache.org/releases/qpid-jms-2.11.0/docs/index.html[QPID JMS
client configuration]
== Using topics
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/flink-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/flink-component.adoc
index b71e56d23481..0c2201283a63 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/flink-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/flink-component.adoc
@@ -38,8 +38,8 @@ their `pom.xml` for this component:
Currently, the Flink Component supports only Producers. One can create
DataSet, DataStream jobs.
----
-flink:dataset?dataset=#myDataSet&dataSetCallback=#dataSetCallback
-flink:datastream?datastream=#myDataStream&dataStreamCallback=#dataStreamCallback
+flink:dataset?dataSet=#myDataSet&dataSetCallback=#dataSetCallback
+flink:datastream?dataStream=#myDataStream&dataStreamCallback=#dataStreamCallback
----
IMPORTANT: The DataSet API has been deprecated by Apache Flink since version
1.12.
@@ -109,7 +109,7 @@ String pattern = "foo";
try {
ProducerTemplate template = camelContext.createProducerTemplate();
camelContext.start();
- Long count =
template.requestBody("flink:dataSet?dataSet=#myDataSet&dataSetCallback=#countLinesContaining",
pattern, Long.class);
+ Long count =
template.requestBody("flink:dataset?dataSet=#myDataSet&dataSetCallback=#countLinesContaining",
pattern, Long.class);
} finally {
camelContext.stop();
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/olingo2-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/olingo2-component.adoc
index d86da425e28d..4f847477d1bb 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/olingo2-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/olingo2-component.adoc
@@ -129,7 +129,7 @@ ordered by ascending Name property.
----
from("direct:...")
.setHeader("CamelOlingo2.$top", constant("5"))
- .to("olingo2://read/Manufacturers?orderBy=Name%20asc");
+ .to("olingo2://read/Manufacturers?$orderby=Name%20asc");
----
The following route reads Manufacturer entry using the key property
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/transformers/application-octet-stream.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/transformers/application-octet-stream.json
index 5ac15324c222..5a3250d181ad 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/transformers/application-octet-stream.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/transformers/application-octet-stream.json
@@ -3,6 +3,7 @@
"kind": "transformer",
"name": "application-octet-stream",
"title": "Application Octet Stream",
+ "description": "Converts the body to a byte array, keeping a stream cache
or a file body as it is, and sets the Content-Type header to
application\/octet-stream",
"deprecated": false,
"javaType":
"org.apache.camel.processor.transformer.ByteArrayDataTypeTransformer",
"groupId": "org.apache.camel",
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/transformers/text-plain.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/transformers/text-plain.json
index 4d941f489559..32730378cf3e 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/transformers/text-plain.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/transformers/text-plain.json
@@ -3,6 +3,7 @@
"kind": "transformer",
"name": "text-plain",
"title": "Text Plain",
+ "description": "Converts the body to a String, reading bytes and streams
as UTF-8, and sets the Content-Type header to text\/plain",
"deprecated": false,
"javaType":
"org.apache.camel.processor.transformer.StringDataTypeTransformer",
"groupId": "org.apache.camel",
diff --git a/components/camel-amqp/src/main/docs/amqp-component.adoc
b/components/camel-amqp/src/main/docs/amqp-component.adoc
index 12d2c028c4db..1fc3d75104c4 100644
--- a/components/camel-amqp/src/main/docs/amqp-component.adoc
+++ b/components/camel-amqp/src/main/docs/amqp-component.adoc
@@ -185,7 +185,8 @@ xref:jms-component.adoc[JMS] component.
*Enabling AMQP specific options*
-If you, for example, need to enable `amqp.traceFrames` you can do that by
appending the option to your URI, like the following example:
+The options of the Qpid JMS client, such as `amqp.traceFrames`, are not
options of the Camel endpoint: append them to
+the connection URI of the broker, which is the `brokerUrl` option or the URI
given to `AMQPComponent.amqpComponent`:
._Java-only: Java programmatic component factory_
[source,java]
@@ -193,7 +194,12 @@ If you, for example, need to enable `amqp.traceFrames` you
can do that by append
AMQPComponent amqp =
AMQPComponent.amqpComponent("amqp://localhost:5672?amqp.traceFrames=true");
----
-For reference, take a look at the
https://qpid.apache.org/releases/qpid-jms-1.7.0/docs/index.html[QPID JMS client
configuration]
+[source,properties]
+----
+camel.component.amqp.broker-url = amqp://localhost:5672?amqp.traceFrames=true
+----
+
+For reference, take a look at the
https://qpid.apache.org/releases/qpid-jms-2.11.0/docs/index.html[QPID JMS
client configuration]
== Using topics
diff --git a/components/camel-flink/src/main/docs/flink-component.adoc
b/components/camel-flink/src/main/docs/flink-component.adoc
index b71e56d23481..0c2201283a63 100644
--- a/components/camel-flink/src/main/docs/flink-component.adoc
+++ b/components/camel-flink/src/main/docs/flink-component.adoc
@@ -38,8 +38,8 @@ their `pom.xml` for this component:
Currently, the Flink Component supports only Producers. One can create
DataSet, DataStream jobs.
----
-flink:dataset?dataset=#myDataSet&dataSetCallback=#dataSetCallback
-flink:datastream?datastream=#myDataStream&dataStreamCallback=#dataStreamCallback
+flink:dataset?dataSet=#myDataSet&dataSetCallback=#dataSetCallback
+flink:datastream?dataStream=#myDataStream&dataStreamCallback=#dataStreamCallback
----
IMPORTANT: The DataSet API has been deprecated by Apache Flink since version
1.12.
@@ -109,7 +109,7 @@ String pattern = "foo";
try {
ProducerTemplate template = camelContext.createProducerTemplate();
camelContext.start();
- Long count =
template.requestBody("flink:dataSet?dataSet=#myDataSet&dataSetCallback=#countLinesContaining",
pattern, Long.class);
+ Long count =
template.requestBody("flink:dataset?dataSet=#myDataSet&dataSetCallback=#countLinesContaining",
pattern, Long.class);
} finally {
camelContext.stop();
}
diff --git
a/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc
b/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc
index d86da425e28d..4f847477d1bb 100644
---
a/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc
+++
b/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc
@@ -129,7 +129,7 @@ ordered by ascending Name property.
----
from("direct:...")
.setHeader("CamelOlingo2.$top", constant("5"))
- .to("olingo2://read/Manufacturers?orderBy=Name%20asc");
+ .to("olingo2://read/Manufacturers?$orderby=Name%20asc");
----
The following route reads Manufacturer entry using the key property
diff --git
a/core/camel-core-processor/src/generated/resources/META-INF/services/org/apache/camel/transformer/application-octet-stream.json
b/core/camel-core-processor/src/generated/resources/META-INF/services/org/apache/camel/transformer/application-octet-stream.json
index 5ac15324c222..5a3250d181ad 100644
---
a/core/camel-core-processor/src/generated/resources/META-INF/services/org/apache/camel/transformer/application-octet-stream.json
+++
b/core/camel-core-processor/src/generated/resources/META-INF/services/org/apache/camel/transformer/application-octet-stream.json
@@ -3,6 +3,7 @@
"kind": "transformer",
"name": "application-octet-stream",
"title": "Application Octet Stream",
+ "description": "Converts the body to a byte array, keeping a stream cache
or a file body as it is, and sets the Content-Type header to
application\/octet-stream",
"deprecated": false,
"javaType":
"org.apache.camel.processor.transformer.ByteArrayDataTypeTransformer",
"groupId": "org.apache.camel",
diff --git
a/core/camel-core-processor/src/generated/resources/META-INF/services/org/apache/camel/transformer/text-plain.json
b/core/camel-core-processor/src/generated/resources/META-INF/services/org/apache/camel/transformer/text-plain.json
index 4d941f489559..32730378cf3e 100644
---
a/core/camel-core-processor/src/generated/resources/META-INF/services/org/apache/camel/transformer/text-plain.json
+++
b/core/camel-core-processor/src/generated/resources/META-INF/services/org/apache/camel/transformer/text-plain.json
@@ -3,6 +3,7 @@
"kind": "transformer",
"name": "text-plain",
"title": "Text Plain",
+ "description": "Converts the body to a String, reading bytes and streams
as UTF-8, and sets the Content-Type header to text\/plain",
"deprecated": false,
"javaType":
"org.apache.camel.processor.transformer.StringDataTypeTransformer",
"groupId": "org.apache.camel",
diff --git
a/core/camel-core-processor/src/main/java/org/apache/camel/processor/transformer/ByteArrayDataTypeTransformer.java
b/core/camel-core-processor/src/main/java/org/apache/camel/processor/transformer/ByteArrayDataTypeTransformer.java
index 94e642415139..0dbfeae3f0f9 100644
---
a/core/camel-core-processor/src/main/java/org/apache/camel/processor/transformer/ByteArrayDataTypeTransformer.java
+++
b/core/camel-core-processor/src/main/java/org/apache/camel/processor/transformer/ByteArrayDataTypeTransformer.java
@@ -36,7 +36,9 @@ import org.apache.camel.spi.Transformer;
* an object read from a bucket or a file to upload, is not read into memory.
Any other stream is read into a byte
* array, as it may be read only once.
*/
-@DataTypeTransformer(name = "application-octet-stream")
+@DataTypeTransformer(name = "application-octet-stream",
+ description = "Converts the body to a byte array, keeping
a stream cache or a file body as it is,"
+ + " and sets the Content-Type header to
application/octet-stream")
@BodyTypes(transformerIn = @BodyType(value = { Carrier.TEXT, Carrier.BYTES,
Carrier.STREAM, Carrier.FILE, Carrier.NULL },
description = "A body Camel can convert
to a byte array: a number fails, and a null"
+ " body stays null"),
diff --git
a/core/camel-core-processor/src/main/java/org/apache/camel/processor/transformer/StringDataTypeTransformer.java
b/core/camel-core-processor/src/main/java/org/apache/camel/processor/transformer/StringDataTypeTransformer.java
index ad85daad10a3..fa637aad63d8 100644
---
a/core/camel-core-processor/src/main/java/org/apache/camel/processor/transformer/StringDataTypeTransformer.java
+++
b/core/camel-core-processor/src/main/java/org/apache/camel/processor/transformer/StringDataTypeTransformer.java
@@ -32,7 +32,9 @@ import org.apache.camel.spi.Transformer;
* Generic String data type converts Exchange payload to String representation
using the Camel message body converter
* mechanism. By default, uses UTF-8 charset as encoding.
*/
-@DataTypeTransformer(name = "text-plain")
+@DataTypeTransformer(name = "text-plain",
+ description = "Converts the body to a String, reading
bytes and streams as UTF-8, and sets the"
+ + " Content-Type header to text/plain")
@BodyTypes(transformerIn = @BodyType(value = {
Carrier.TEXT, Carrier.BYTES, Carrier.STREAM, Carrier.FILE,
Carrier.VALUE,
Carrier.NULL },
diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang-mcp.adoc
b/docs/user-manual/modules/ROOT/pages/camel-jbang-mcp.adoc
index e2d7b32644c4..b3b894b3649f 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang-mcp.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang-mcp.adoc
@@ -364,8 +364,8 @@ passed as the file name, is answered with the argument the
source goes in.
classes a bean or script calls: `Exchange`, `Message`, `CamelContext`,
`Registry`, `ProducerTemplate`,
`Processor`, `AggregationStrategy`, `Predicate`, `Expression` and
`TypeConverter`, one line per method with
the signatures, an example and the common mistakes (the first call of an
aggregation strategy has a `null`
- `oldExchange`, a `Map` body has no `${body.type}`, a bean name is not a
Groovy variable, there is no
- `getOut()` in Camel 4). The reference is generated from the `@Metadata(label
= "api")` annotations on the
+ `oldExchange`, a `Map` body has no `${body.type}`, a bean name is not a
Groovy variable,
+ `getOut()` is deprecated in Camel 4, use `getMessage()`). The reference is
generated from the `@Metadata(label = "api")` annotations on the
real methods in `camel-api` and shipped in `camel-catalog`
(`org/apache/camel/catalog/apis/`), so it
cannot drift. The name of a script language (`groovy`, `js`, `python`,
`python3`, `quickjs`, `java`) or
`template` returns the variables that script sees and how to reach the Camel
API from them; the language
diff --git
a/docs/user-manual/modules/ROOT/pages/improving-the-documentation.adoc
b/docs/user-manual/modules/ROOT/pages/improving-the-documentation.adoc
index 116a84ee47a0..a2d5da2b1988 100644
--- a/docs/user-manual/modules/ROOT/pages/improving-the-documentation.adoc
+++ b/docs/user-manual/modules/ROOT/pages/improving-the-documentation.adoc
@@ -35,7 +35,7 @@ Camel Spring Boot:: Most documentation is generated and
appended to the componen
Editable pages are under `docs/spring-boot` and
`core/camel-spring-boot/src/main/docs` and
`core/camel-spring-boot-xml/src/main/docs`.
Other subprojects::
-camel-k, camel-k-runtime::: Under `docs`.
+camel-k::: Under `docs`.
There is no generated `camel-k` documentation.
camel-kafka-connector::: Editable pages are under `docs`.
Most documentation is generated directly from the generated json files for
each connector under `connectors/<connector-name>/src/generated/resources`.
@@ -261,7 +261,6 @@ nav:
asciidoc:
attributes:
camel-version: 3.12.x
- camel-k-runtime-version: 1.8.0
camel-k-version:
camel-kamelets-version: 0.3.0
----
diff --git a/docs/user-manual/modules/ROOT/pages/registry.adoc
b/docs/user-manual/modules/ROOT/pages/registry.adoc
index 316c793383ff..4c6ff420ac15 100644
--- a/docs/user-manual/modules/ROOT/pages/registry.adoc
+++ b/docs/user-manual/modules/ROOT/pages/registry.adoc
@@ -97,7 +97,7 @@ the Spring Boot project documentation.
==== Binding in Quarkus
Quarkus has similar functionality like Spring Boot to declare beans, which can
be done
-with the `javax.inject.enterprise.Produces` and `javax.inject.Named`
annotations:
+with the `jakarta.enterprise.inject.Produces` and `jakarta.inject.Named`
annotations:
._Java-only: declaring a bean using Quarkus CDI annotations_
[source,java]
diff --git a/docs/user-manual/modules/ROOT/pages/release-guide-website.adoc
b/docs/user-manual/modules/ROOT/pages/release-guide-website.adoc
index aea708725a30..bc792539ee7d 100644
--- a/docs/user-manual/modules/ROOT/pages/release-guide-website.adoc
+++ b/docs/user-manual/modules/ROOT/pages/release-guide-website.adoc
@@ -4,7 +4,7 @@ Most steps are the same for all releases, although some details
may vary.
There are several cases:
* A single repository release, such as `camel-kafka-connector`.
-* A set of separately versioned repositories, such as `camel-k`,
`camel-k-runtime`, and `camel-kamelets`.
+* A set of separately versioned repositories, such as `camel-k` and
`camel-kamelets`.
* The set of main `camel` and `camel-spring-boot` which are versioned together.
Changes in the content repositories may be done as part of release
preparation, or later. Changes in the `camel-website` `antora-playbook.yml` can
be supplied in a PR at any time but should be merged only after the release is
voted on and approved.
@@ -50,7 +50,6 @@ nav:
asciidoc:
attributes:
camel-version: 3.12.x
- camel-k-runtime-version: 1.8.0
camel-kamelets-version: 0.3.0
prerelease: true
----
diff --git a/docs/user-manual/modules/ROOT/pages/stream-caching.adoc
b/docs/user-manual/modules/ROOT/pages/stream-caching.adoc
index 2e2c5471aae1..8acfc43ba5be 100644
--- a/docs/user-manual/modules/ROOT/pages/stream-caching.adoc
+++ b/docs/user-manual/modules/ROOT/pages/stream-caching.adoc
@@ -93,14 +93,14 @@ To store in the java temp directory with a sub directory
using the `CamelContext
[source,java]
----
-context.getStreamCachingStrategy().setSpoolDirectory"${java.io.tmpdir}#name#/");
+context.getStreamCachingStrategy().setSpoolDirectory("${java.io.tmpdir}/#name#/");
----
To store in `KARAF_HOME/tmp/bundleId` directory:
[source,java]
----
-context.getStreamCachingStrategy().setSpoolDirectory"${env:KARAF_HOME}/tmp/bundle#bundleId#");
+context.getStreamCachingStrategy().setSpoolDirectory("${env:KARAF_HOME}/tmp/bundle#bundleId#");
----
== Configuring StreamCachingStrategy in Java