diff --git a/catalog/pom.xml b/catalog/pom.xml
index 46a20a7912b..e897b5f18db 100644
--- a/catalog/pom.xml
+++ b/catalog/pom.xml
@@ -2346,6 +2346,19 @@
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup
+ ${project.version}
+ pom
+ test
+
+
+ *
+ *
+
+
+
org.apache.camel.quarkus
camel-quarkus-jt400
diff --git a/docs/modules/ROOT/examples/others/jsoup.yml b/docs/modules/ROOT/examples/others/jsoup.yml
new file mode 100644
index 00000000000..f12e935c12a
--- /dev/null
+++ b/docs/modules/ROOT/examples/others/jsoup.yml
@@ -0,0 +1,13 @@
+# Do not edit directly!
+# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
+cqArtifactId: camel-quarkus-jsoup
+cqArtifactIdBase: jsoup
+cqNativeSupported: true
+cqStatus: Stable
+cqDeprecated: false
+cqJvmSince: 3.36.0
+cqNativeSince: 3.36.0
+cqCamelPartName: jsoup
+cqCamelPartTitle: Jsoup
+cqCamelPartDescription: Cleanup HTML content
+cqExtensionPageTitle: Jsoup
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index fac7626d516..8467592ec81 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -195,6 +195,7 @@
*** xref:reference/extensions/jira.adoc[Jira]
*** xref:reference/extensions/jolokia.adoc[Jolokia]
*** xref:reference/extensions/json-patch.adoc[JsonPatch]
+*** xref:reference/extensions/jsoup.adoc[Jsoup]
*** xref:reference/extensions/kafka.adoc[Kafka]
*** xref:reference/extensions/kamelet.adoc[Kamelet]
*** xref:reference/extensions/keycloak.adoc[Keycloak]
diff --git a/docs/modules/ROOT/pages/reference/extensions/jsoup.adoc b/docs/modules/ROOT/pages/reference/extensions/jsoup.adoc
new file mode 100644
index 00000000000..5f30aa7434c
--- /dev/null
+++ b/docs/modules/ROOT/pages/reference/extensions/jsoup.adoc
@@ -0,0 +1,45 @@
+// Do not edit directly!
+// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
+[id="extensions-jsoup"]
+= Jsoup
+:linkattrs:
+:cq-artifact-id: camel-quarkus-jsoup
+:cq-native-supported: true
+:cq-status: Stable
+:cq-status-deprecation: Stable
+:cq-description: Parse HTML using jsoup
+:cq-deprecated: false
+:cq-jvm-since: 3.36.0
+:cq-native-since: 3.36.0
+
+ifeval::[{doc-show-badges} == true]
+[.badges]
+[.badge-key]##JVM since##[.badge-supported]##3.36.0## [.badge-key]##Native since##[.badge-supported]##3.36.0##
+endif::[]
+
+Parse HTML using jsoup
+
+[id="extensions-jsoup-whats-inside"]
+== What's inside
+
+* xref:{cq-camel-components}:others:jsoup.adoc[Jsoup]
+
+Please refer to the above link for usage and configuration details.
+
+[id="extensions-jsoup-maven-coordinates"]
+== Maven coordinates
+
+https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-jsoup[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]
+
+Or add the coordinates to your existing project:
+
+[source,xml]
+----
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup
+
+----
+ifeval::[{doc-show-user-guide-link} == true]
+Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
+endif::[]
diff --git a/extensions/jsoup/deployment/pom.xml b/extensions/jsoup/deployment/pom.xml
new file mode 100644
index 00000000000..c3162bb9df6
--- /dev/null
+++ b/extensions/jsoup/deployment/pom.xml
@@ -0,0 +1,61 @@
+
+
+
+ 4.0.0
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup-parent
+ 3.36.0-SNAPSHOT
+ ../pom.xml
+
+
+ camel-quarkus-jsoup-deployment
+ Camel Quarkus :: Jsoup :: Deployment
+
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-core-deployment
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+ io.quarkus
+ quarkus-extension-processor
+ ${quarkus.version}
+
+
+
+
+
+
+
+
diff --git a/extensions/jsoup/deployment/src/main/java/org/apache/camel/quarkus/component/jsoup/deployment/JsoupProcessor.java b/extensions/jsoup/deployment/src/main/java/org/apache/camel/quarkus/component/jsoup/deployment/JsoupProcessor.java
new file mode 100644
index 00000000000..5ea9f5f77c2
--- /dev/null
+++ b/extensions/jsoup/deployment/src/main/java/org/apache/camel/quarkus/component/jsoup/deployment/JsoupProcessor.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.jsoup.deployment;
+
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.builditem.FeatureBuildItem;
+
+class JsoupProcessor {
+
+ private static final String FEATURE = "camel-jsoup";
+
+ @BuildStep
+ FeatureBuildItem feature() {
+ return new FeatureBuildItem(FEATURE);
+ }
+
+}
diff --git a/extensions/jsoup/pom.xml b/extensions/jsoup/pom.xml
new file mode 100644
index 00000000000..d89e16eb886
--- /dev/null
+++ b/extensions/jsoup/pom.xml
@@ -0,0 +1,37 @@
+
+
+
+ 4.0.0
+
+ org.apache.camel.quarkus
+ camel-quarkus-extensions
+ 3.36.0-SNAPSHOT
+ ../pom.xml
+
+
+ camel-quarkus-jsoup-parent
+ Camel Quarkus :: Jsoup
+ pom
+
+
+ deployment
+ runtime
+
+
diff --git a/extensions/jsoup/runtime/pom.xml b/extensions/jsoup/runtime/pom.xml
new file mode 100644
index 00000000000..ae87b6bee89
--- /dev/null
+++ b/extensions/jsoup/runtime/pom.xml
@@ -0,0 +1,70 @@
+
+
+
+ 4.0.0
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup-parent
+ 3.36.0-SNAPSHOT
+ ../pom.xml
+
+
+ camel-quarkus-jsoup
+ Camel Quarkus :: Jsoup :: Runtime
+ Parse HTML using jsoup
+
+
+ 3.36.0
+ 3.36.0
+
+
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-core
+
+
+ org.apache.camel
+ camel-jsoup
+
+
+
+
+
+
+ io.quarkus
+ quarkus-extension-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+ io.quarkus
+ quarkus-extension-processor
+ ${quarkus.version}
+
+
+
+
+
+
+
diff --git a/extensions/jsoup/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/jsoup/runtime/src/main/resources/META-INF/quarkus-extension.yaml
new file mode 100644
index 00000000000..af79371e349
--- /dev/null
+++ b/extensions/jsoup/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -0,0 +1,32 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This is a generated file. Do not edit directly!
+# To re-generate, run the following command from the top level directory:
+#
+# mvn -N cq:update-quarkus-metadata
+#
+---
+name: "Camel Jsoup"
+description: "Parse HTML using jsoup"
+metadata:
+ icon-url: "https://raw.githubusercontent.com/apache/camel-website/main/antora-ui-camel/src/img/logo-d.svg"
+ sponsor: "Apache Software Foundation"
+ guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/jsoup.html"
+ categories:
+ - "integration"
+ status: "stable"
diff --git a/extensions/pom.xml b/extensions/pom.xml
index d4a7258b298..c76f4c0d41a 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -170,6 +170,7 @@
jsonata
jsonb
jsonpath
+ jsoup
jt400
jta
kafka
diff --git a/integration-tests/jsoup/pom.xml b/integration-tests/jsoup/pom.xml
new file mode 100644
index 00000000000..23bd3f4a0f5
--- /dev/null
+++ b/integration-tests/jsoup/pom.xml
@@ -0,0 +1,144 @@
+
+
+
+ 4.0.0
+
+ org.apache.camel.quarkus
+ camel-quarkus-build-parent-it
+ 3.36.0-SNAPSHOT
+ ../../poms/build-parent-it/pom.xml
+
+
+ camel-quarkus-integration-test-jsoup
+ Camel Quarkus :: Integration Tests :: Jsoup
+ Integration tests for Camel Quarkus Jsoup extension
+
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-direct
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-yaml-dsl
+
+
+ io.quarkus
+ quarkus-resteasy
+
+
+ io.quarkus
+ quarkus-junit
+
+
+
+
+ io.rest-assured
+ rest-assured
+ test
+
+
+
+
+
+
+ native
+
+
+ native
+
+
+
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-failsafe-plugin
+
+
+
+ integration-test
+ verify
+
+
+
+
+
+
+
+
+ virtualDependencies
+
+
+ !noVirtualDependencies
+
+
+
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-direct-deployment
+ ${project.version}
+ pom
+ test
+
+
+ *
+ *
+
+
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup-deployment
+ ${project.version}
+ pom
+ test
+
+
+ *
+ *
+
+
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-yaml-dsl-deployment
+ ${project.version}
+ pom
+ test
+
+
+ *
+ *
+
+
+
+
+
+
+
+
diff --git a/integration-tests/jsoup/src/main/java/org/apache/camel/quarkus/component/jsoup/it/JsoupResource.java b/integration-tests/jsoup/src/main/java/org/apache/camel/quarkus/component/jsoup/it/JsoupResource.java
new file mode 100644
index 00000000000..50477ae14cc
--- /dev/null
+++ b/integration-tests/jsoup/src/main/java/org/apache/camel/quarkus/component/jsoup/it/JsoupResource.java
@@ -0,0 +1,91 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.jsoup.it;
+
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.inject.Inject;
+import jakarta.ws.rs.Consumes;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.core.MediaType;
+import org.apache.camel.ProducerTemplate;
+
+@Path("/jsoup")
+@ApplicationScoped
+public class JsoupResource {
+
+ @Inject
+ ProducerTemplate producerTemplate;
+
+ @Path("/clean")
+ @POST
+ @Consumes(MediaType.TEXT_HTML)
+ @Produces(MediaType.TEXT_HTML)
+ public String clean(String html) {
+ return producerTemplate.requestBody("direct:clean", html, String.class);
+ }
+
+ @Path("/decode")
+ @POST
+ @Consumes(MediaType.TEXT_HTML)
+ @Produces(MediaType.TEXT_PLAIN)
+ public String decode(String html) {
+ return producerTemplate.requestBody("direct:decode", html, String.class);
+ }
+
+ @Path("/parse-title")
+ @POST
+ @Consumes(MediaType.TEXT_HTML)
+ @Produces(MediaType.TEXT_PLAIN)
+ public String parseTitle(String html) {
+ return producerTemplate.requestBody("direct:parse-title", html, String.class);
+ }
+
+ @Path("/select-css")
+ @POST
+ @Consumes(MediaType.TEXT_HTML)
+ @Produces(MediaType.TEXT_PLAIN)
+ public String selectCss(String html) {
+ return producerTemplate.requestBody("direct:select-css", html, String.class);
+ }
+
+ @Path("/clean-yaml")
+ @POST
+ @Consumes(MediaType.TEXT_HTML)
+ @Produces(MediaType.TEXT_HTML)
+ public String cleanYaml(String html) {
+ return producerTemplate.requestBody("direct:clean-yaml", html, String.class);
+ }
+
+ @Path("/decode-yaml")
+ @POST
+ @Consumes(MediaType.TEXT_HTML)
+ @Produces(MediaType.TEXT_PLAIN)
+ public String decodeYaml(String html) {
+ return producerTemplate.requestBody("direct:decode-yaml", html, String.class);
+ }
+
+ @Path("/parse-yaml")
+ @POST
+ @Consumes(MediaType.TEXT_HTML)
+ @Produces(MediaType.TEXT_HTML)
+ public String parseYaml(String html) {
+ org.jsoup.nodes.Document doc = producerTemplate.requestBody("direct:parse-yaml", html, org.jsoup.nodes.Document.class);
+ return doc != null ? doc.outerHtml() : "";
+ }
+}
diff --git a/integration-tests/jsoup/src/main/java/org/apache/camel/quarkus/component/jsoup/it/JsoupRouteBuilder.java b/integration-tests/jsoup/src/main/java/org/apache/camel/quarkus/component/jsoup/it/JsoupRouteBuilder.java
new file mode 100644
index 00000000000..53ba193fd5f
--- /dev/null
+++ b/integration-tests/jsoup/src/main/java/org/apache/camel/quarkus/component/jsoup/it/JsoupRouteBuilder.java
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.jsoup.it;
+
+import org.apache.camel.builder.RouteBuilder;
+import org.jsoup.nodes.Document;
+
+public class JsoupRouteBuilder extends RouteBuilder {
+ @Override
+ public void configure() {
+ // Test htmlClean() function
+ from("direct:clean")
+ .transform().simple("${htmlClean()}");
+
+ // Test htmlDecode() function
+ from("direct:decode")
+ .transform().simple("${htmlDecode()}");
+
+ // Test htmlParse() function - extract title
+ from("direct:parse-title")
+ .transform().simple("${htmlParse()}")
+ .process(exchange -> {
+ Document doc = exchange.getMessage().getBody(Document.class);
+ exchange.getMessage().setBody(doc.title());
+ });
+
+ // Test htmlParse() with CSS selection
+ from("direct:select-css")
+ .transform().simple("${htmlParse()}")
+ .process(exchange -> {
+ Document doc = exchange.getMessage().getBody(Document.class);
+ String text = doc.select("p").text();
+ exchange.getMessage().setBody(text);
+ });
+ }
+}
diff --git a/integration-tests/jsoup/src/main/resources/application.properties b/integration-tests/jsoup/src/main/resources/application.properties
new file mode 100644
index 00000000000..695ae2f5f3c
--- /dev/null
+++ b/integration-tests/jsoup/src/main/resources/application.properties
@@ -0,0 +1,17 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+camel.main.routes-include-pattern = classpath:yaml/jsoup-routes.yaml
diff --git a/integration-tests/jsoup/src/main/resources/yaml/jsoup-routes.yaml b/integration-tests/jsoup/src/main/resources/yaml/jsoup-routes.yaml
new file mode 100644
index 00000000000..c41fbc7394c
--- /dev/null
+++ b/integration-tests/jsoup/src/main/resources/yaml/jsoup-routes.yaml
@@ -0,0 +1,40 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+- route:
+ id: "clean-yaml"
+ from:
+ uri: "direct:clean-yaml"
+ steps:
+ - setBody:
+ simple: "${htmlClean()}"
+
+- route:
+ id: "decode-yaml"
+ from:
+ uri: "direct:decode-yaml"
+ steps:
+ - setBody:
+ simple: "${htmlDecode()}"
+
+- route:
+ id: "parse-yaml"
+ from:
+ uri: "direct:parse-yaml"
+ steps:
+ - setBody:
+ simple: "${htmlParse()}"
diff --git a/integration-tests/jsoup/src/test/java/org/apache/camel/quarkus/component/jsoup/it/JsoupIT.java b/integration-tests/jsoup/src/test/java/org/apache/camel/quarkus/component/jsoup/it/JsoupIT.java
new file mode 100644
index 00000000000..ec130d2e542
--- /dev/null
+++ b/integration-tests/jsoup/src/test/java/org/apache/camel/quarkus/component/jsoup/it/JsoupIT.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.jsoup.it;
+
+import io.quarkus.test.junit.QuarkusIntegrationTest;
+
+@QuarkusIntegrationTest
+class JsoupIT extends JsoupTest {
+}
diff --git a/integration-tests/jsoup/src/test/java/org/apache/camel/quarkus/component/jsoup/it/JsoupTest.java b/integration-tests/jsoup/src/test/java/org/apache/camel/quarkus/component/jsoup/it/JsoupTest.java
new file mode 100644
index 00000000000..90701c5af7e
--- /dev/null
+++ b/integration-tests/jsoup/src/test/java/org/apache/camel/quarkus/component/jsoup/it/JsoupTest.java
@@ -0,0 +1,161 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.jsoup.it;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import io.restassured.http.ContentType;
+import org.junit.jupiter.api.Test;
+
+import static org.hamcrest.Matchers.containsString;
+import static org.hamcrest.Matchers.equalTo;
+import static org.hamcrest.Matchers.not;
+
+@QuarkusTest
+class JsoupTest {
+
+ @Test
+ void testHtmlClean() {
+ String maliciousHtml = "Link
";
+
+ RestAssured.given()
+ .contentType(ContentType.HTML)
+ .body(maliciousHtml)
+ .post("/jsoup/clean")
+ .then()
+ .statusCode(200)
+ .body(containsString("Test Title"))
+ .body(containsString("Content
"));
+ }
+
+ @Test
+ void testHtmlCleanEmptyInput() {
+ RestAssured.given()
+ .contentType(ContentType.HTML)
+ .body("")
+ .post("/jsoup/clean")
+ .then()
+ .statusCode(200)
+ .body(equalTo(""));
+ }
+
+ @Test
+ void testHtmlDecodeEmptyInput() {
+ RestAssured.given()
+ .contentType(ContentType.HTML)
+ .body("")
+ .post("/jsoup/decode")
+ .then()
+ .statusCode(200)
+ .body(equalTo(""));
+ }
+
+ @Test
+ void testHtmlParseNullBody() {
+ String html = "";
+
+ RestAssured.given()
+ .contentType(ContentType.HTML)
+ .body(html)
+ .post("/jsoup/parse-title")
+ .then()
+ .statusCode(200)
+ .body(equalTo(""));
+ }
+}
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 10fa5dc7f89..fbfb7e43a68 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -143,6 +143,7 @@
json-validator
jsonata
jsonpath
+ jsoup
jt400
jt400-mocked
jta
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index 22f4831678d..d8910597ad6 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -1963,6 +1963,11 @@
camel-jsonpath
${camel.version}
+
+ org.apache.camel
+ camel-jsoup
+ ${camel.version}
+
org.apache.camel
camel-jt400
@@ -5128,6 +5133,16 @@
camel-quarkus-jsonpath-deployment
${camel-quarkus.version}
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup
+ ${camel-quarkus.version}
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup-deployment
+ ${camel-quarkus.version}
+
org.apache.camel.quarkus
camel-quarkus-jt400
diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml b/poms/bom/src/main/generated/flattened-full-pom.xml
index bf2e49a940d..ce8861c0433 100644
--- a/poms/bom/src/main/generated/flattened-full-pom.xml
+++ b/poms/bom/src/main/generated/flattened-full-pom.xml
@@ -1876,6 +1876,11 @@
camel-jsonpath
4.21.0-SNAPSHOT
+
+ org.apache.camel
+ camel-jsoup
+ 4.21.0-SNAPSHOT
+
org.apache.camel
camel-jt400
@@ -5013,6 +5018,16 @@
camel-quarkus-jsonpath-deployment
3.36.0-SNAPSHOT
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup
+ 3.36.0-SNAPSHOT
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup-deployment
+ 3.36.0-SNAPSHOT
+
org.apache.camel.quarkus
camel-quarkus-jt400
diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml b/poms/bom/src/main/generated/flattened-reduced-pom.xml
index e7d46f761af..3f62040c71e 100644
--- a/poms/bom/src/main/generated/flattened-reduced-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml
@@ -1871,6 +1871,11 @@
camel-jsonpath
4.21.0-SNAPSHOT
+
+ org.apache.camel
+ camel-jsoup
+ 4.21.0-SNAPSHOT
+
org.apache.camel
camel-jt400
@@ -4992,6 +4997,16 @@
camel-quarkus-jsonpath-deployment
3.36.0-SNAPSHOT
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup
+ 3.36.0-SNAPSHOT
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup-deployment
+ 3.36.0-SNAPSHOT
+
org.apache.camel.quarkus
camel-quarkus-jt400
diff --git a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
index e10643d6953..1f55a7cfc6a 100644
--- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
@@ -1871,6 +1871,11 @@
camel-jsonpath
4.21.0-SNAPSHOT
+
+ org.apache.camel
+ camel-jsoup
+ 4.21.0-SNAPSHOT
+
org.apache.camel
camel-jt400
@@ -4992,6 +4997,16 @@
camel-quarkus-jsonpath-deployment
3.36.0-SNAPSHOT
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup
+ 3.36.0-SNAPSHOT
+
+
+ org.apache.camel.quarkus
+ camel-quarkus-jsoup-deployment
+ 3.36.0-SNAPSHOT
+
org.apache.camel.quarkus
camel-quarkus-jt400
diff --git a/tooling/scripts/test-categories.yaml b/tooling/scripts/test-categories.yaml
index b8d45da965e..263f01d8e06 100644
--- a/tooling/scripts/test-categories.yaml
+++ b/tooling/scripts/test-categories.yaml
@@ -210,6 +210,7 @@ group-11:
- google-secret-manager
- grok
- jolt
+ - jsoup
- jsonata
- langchain4j-tokenizer
- milo