You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/12/04 05:03:33 UTC

[camel-quarkus] branch base64 created (now 30281a1)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch base64
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git.


      at 30281a1  feat: base64 extension

This branch includes the following new commits:

     new 30281a1  feat: base64 extension

The 1 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.



[camel-quarkus] 01/01: feat: base64 extension

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch base64
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 30281a1c1770010c192acd0c6122de3d26841d96
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Dec 4 06:03:17 2019 +0100

    feat: base64 extension
---
 .../pages/list-of-camel-quarkus-extensions.adoc    |   4 +-
 extensions/base64/deployment/pom.xml               |  75 ++++++++++++
 .../base64/deployment/Base64Processor.java         |  19 +--
 extensions/base64/pom.xml                          |  39 ++++++
 extensions/base64/runtime/pom.xml                  |  82 +++++++++++++
 .../main/resources/META-INF/quarkus-extension.yaml |  27 +++++
 extensions/pom.xml                                 |   1 +
 extensions/readme.adoc                             |   4 +-
 integration-tests/base64/pom.xml                   | 132 +++++++++++++++++++++
 .../component/base64/it/Base64Resource.java        |  58 +++++++++
 .../component/base64/it/Base64RouteBuilder.java}   |  11 +-
 .../quarkus/component/base64/it/Base64IT.java}     |  14 +--
 .../quarkus/component/base64/it/Base64Test.java}   |  31 +++--
 integration-tests/pom.xml                          |   1 +
 .../component/zipfile/it/ZipfileRouteBuilder.java  |   1 -
 poms/bom-deployment/pom.xml                        |   5 +
 poms/bom/pom.xml                                   |  10 ++
 17 files changed, 481 insertions(+), 33 deletions(-)

diff --git a/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc b/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
index 35270de..6ae70a0 100644
--- a/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
+++ b/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
@@ -162,12 +162,14 @@ Number of Camel components: 48 in 41 JAR artifacts (0 deprecated)
 == Camel Data Formats
 
 // dataformats: START
-Number of Camel data formats: 9 in 8 JAR artifacts (0 deprecated)
+Number of Camel data formats: 10 in 9 JAR artifacts (0 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
 | Data Format | Since | Description
 
+| link:https://camel.apache.org/components/latest/base64-dataformat.html[Base64] (camel-quarkus-base64) | 0.5 | The Base64 data format is used for base64 encoding and decoding.
+
 | link:https://camel.apache.org/components/latest/csv-dataformat.html[CSV] (camel-quarkus-csv) | 0.2 | The CSV data format is used for handling CSV payloads.
 
 | xref:extensions/fhir.adoc[FHIR JSon] (camel-quarkus-fhir) | 0.3 | The FHIR JSon data format is used to marshall/unmarshall to/from FHIR objects to/from JSON.
diff --git a/extensions/base64/deployment/pom.xml b/extensions/base64/deployment/pom.xml
new file mode 100644
index 0000000..30fd8b4
--- /dev/null
+++ b/extensions/base64/deployment/pom.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-base64-parent</artifactId>
+        <version>0.4.1-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-base64-deployment</artifactId>
+    <name>Camel Quarkus :: Base64 :: Deployment</name>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-bom-deployment</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-core-deployment</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-base64</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>io.quarkus</groupId>
+                            <artifactId>quarkus-extension-processor</artifactId>
+                            <version>${quarkus.version}</version>
+                        </path>
+                    </annotationProcessorPaths>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
diff --git a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java b/extensions/base64/deployment/src/main/java/org/apache/camel/quarkus/component/base64/deployment/Base64Processor.java
similarity index 69%
copy from integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
copy to extensions/base64/deployment/src/main/java/org/apache/camel/quarkus/component/base64/deployment/Base64Processor.java
index c2d8a6d..87ecb33 100644
--- a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
+++ b/extensions/base64/deployment/src/main/java/org/apache/camel/quarkus/component/base64/deployment/Base64Processor.java
@@ -14,15 +14,18 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.camel.quarkus.component.zipfile.it;
+package org.apache.camel.quarkus.component.base64.deployment;
 
-import org.apache.camel.builder.RouteBuilder;
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.builditem.FeatureBuildItem;
 
-public class ZipfileRouteBuilder extends RouteBuilder {
-    @Override
-    public void configure() {
-        // Add some routes or remove this class
-        from("direct:start")
-                .marshal().zipFile();
+class Base64Processor {
+
+    private static final String FEATURE = "camel-base64";
+
+    @BuildStep
+    FeatureBuildItem feature() {
+        return new FeatureBuildItem(FEATURE);
     }
+
 }
diff --git a/extensions/base64/pom.xml b/extensions/base64/pom.xml
new file mode 100644
index 0000000..d28f601
--- /dev/null
+++ b/extensions/base64/pom.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-build-parent</artifactId>
+        <version>0.4.1-SNAPSHOT</version>
+        <relativePath>../../poms/build-parent/pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-base64-parent</artifactId>
+    <name>Camel Quarkus :: Base64</name>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>deployment</module>
+        <module>runtime</module>
+    </modules>
+</project>
diff --git a/extensions/base64/runtime/pom.xml b/extensions/base64/runtime/pom.xml
new file mode 100644
index 0000000..515cca7
--- /dev/null
+++ b/extensions/base64/runtime/pom.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-base64-parent</artifactId>
+        <version>0.4.1-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-base64</artifactId>
+    <name>Camel Quarkus :: Base64 :: Runtime</name>
+
+    <properties>
+        <firstVersion>0.5.0</firstVersion>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-bom</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-base64</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-bootstrap-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>io.quarkus</groupId>
+                            <artifactId>quarkus-extension-processor</artifactId>
+                            <version>${quarkus.version}</version>
+                        </path>
+                    </annotationProcessorPaths>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/extensions/base64/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/base64/runtime/src/main/resources/META-INF/quarkus-extension.yaml
new file mode 100644
index 0000000..f9b45c5
--- /dev/null
+++ b/extensions/base64/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -0,0 +1,27 @@
+#
+# 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.
+#
+
+---
+name: "Camel Quarkus Base64"
+description: "Camel Base64 component"
+metadata:
+  keywords:
+  - "camel"
+  - "transformation"
+  guide: "https://quarkus.io/guides/camel"
+  categories:
+  - "integration"
\ No newline at end of file
diff --git a/extensions/pom.xml b/extensions/pom.xml
index 7beb555..d21223c 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -94,6 +94,7 @@
         <module>xslt</module>
         <module>zipfile</module>
         <module>seda</module>
+        <module>base64</module>
     </modules>
 
     <build>
diff --git a/extensions/readme.adoc b/extensions/readme.adoc
index 34752cf..4ced55d 100644
--- a/extensions/readme.adoc
+++ b/extensions/readme.adoc
@@ -162,12 +162,14 @@ Number of Camel components: 48 in 41 JAR artifacts (0 deprecated)
 == Camel Data Formats
 
 // dataformats: START
-Number of Camel data formats: 9 in 8 JAR artifacts (0 deprecated)
+Number of Camel data formats: 10 in 9 JAR artifacts (0 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
 | Data Format | Since | Description
 
+| link:https://camel.apache.org/components/latest/base64-dataformat.html[Base64] (camel-quarkus-base64) | 0.5 | The Base64 data format is used for base64 encoding and decoding.
+
 | link:https://camel.apache.org/components/latest/csv-dataformat.html[CSV] (camel-quarkus-csv) | 0.2 | The CSV data format is used for handling CSV payloads.
 
 | xref:extensions/fhir.adoc[FHIR JSon] (camel-quarkus-fhir) | 0.3 | The FHIR JSon data format is used to marshall/unmarshall to/from FHIR objects to/from JSON.
diff --git a/integration-tests/base64/pom.xml b/integration-tests/base64/pom.xml
new file mode 100644
index 0000000..ae6c6d8
--- /dev/null
+++ b/integration-tests/base64/pom.xml
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-integration-tests</artifactId>
+        <version>0.4.1-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>camel-quarkus-integration-test-base64</artifactId>
+    <name>Camel Quarkus :: Integration Tests :: Base64</name>
+    <description>Integration tests for Camel Quarkus Base64 extension</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-base64</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-direct</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.quarkus</groupId>
+            <artifactId>quarkus-resteasy</artifactId>
+        </dependency>
+
+        <!-- test dependencies -->
+        <dependency>
+            <groupId>io.quarkus</groupId>
+            <artifactId>quarkus-junit5</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>io.rest-assured</groupId>
+            <artifactId>rest-assured</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>build</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>native</id>
+            <activation>
+                <property>
+                    <name>native</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-failsafe-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>integration-test</goal>
+                                    <goal>verify</goal>
+                                </goals>
+                                <configuration>
+                                    <systemProperties>
+                                        <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
+                                    </systemProperties>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>io.quarkus</groupId>
+                        <artifactId>quarkus-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>native-image</id>
+                                <goals>
+                                    <goal>native-image</goal>
+                                </goals>
+                                <configuration>
+                                    <reportErrorsAtRuntime>false</reportErrorsAtRuntime>
+                                    <cleanupServer>true</cleanupServer>
+                                    <enableHttpsUrlHandler>true</enableHttpsUrlHandler>
+                                    <enableServer>false</enableServer>
+                                    <dumpProxies>false</dumpProxies>
+                                    <graalvmHome>${graalvmHome}</graalvmHome>
+                                    <enableJni>true</enableJni>
+                                    <enableAllSecurityServices>true</enableAllSecurityServices>
+                                    <disableReports>true</disableReports>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>
diff --git a/integration-tests/base64/src/main/java/org/apache/camel/quarkus/component/base64/it/Base64Resource.java b/integration-tests/base64/src/main/java/org/apache/camel/quarkus/component/base64/it/Base64Resource.java
new file mode 100644
index 0000000..003fc2e
--- /dev/null
+++ b/integration-tests/base64/src/main/java/org/apache/camel/quarkus/component/base64/it/Base64Resource.java
@@ -0,0 +1,58 @@
+/*
+ * 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.base64.it;
+
+import java.net.URI;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+import org.apache.camel.ConsumerTemplate;
+import org.apache.camel.ProducerTemplate;
+import org.jboss.logging.Logger;
+
+@Path("/base64")
+@ApplicationScoped
+public class Base64Resource {
+
+    private static final Logger LOG = Logger.getLogger(Base64Resource.class);
+
+    @Inject
+    ProducerTemplate producerTemplate;
+
+    @Path("/post")
+    @POST
+    @Consumes(MediaType.APPLICATION_OCTET_STREAM)
+    @Produces(MediaType.TEXT_PLAIN)
+    public Response post(String message) throws Exception {
+        LOG.infof("Sending to base64: %s", message);
+        final String response = producerTemplate.requestBody("direct:start", message, String.class);
+        LOG.infof("Got response from base64: %s", response);
+        return Response
+                .created(new URI("https://camel.apache.org/"))
+                .header("content-length", response.length())
+                .entity(response)
+                .build();
+    }
+}
diff --git a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java b/integration-tests/base64/src/main/java/org/apache/camel/quarkus/component/base64/it/Base64RouteBuilder.java
similarity index 79%
copy from integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
copy to integration-tests/base64/src/main/java/org/apache/camel/quarkus/component/base64/it/Base64RouteBuilder.java
index c2d8a6d..08bb57a 100644
--- a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
+++ b/integration-tests/base64/src/main/java/org/apache/camel/quarkus/component/base64/it/Base64RouteBuilder.java
@@ -14,15 +14,16 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.camel.quarkus.component.zipfile.it;
+package org.apache.camel.quarkus.component.base64.it;
 
 import org.apache.camel.builder.RouteBuilder;
 
-public class ZipfileRouteBuilder extends RouteBuilder {
+public class Base64RouteBuilder extends RouteBuilder {
+
     @Override
-    public void configure() {
-        // Add some routes or remove this class
+    public void configure() throws Exception {
         from("direct:start")
-                .marshal().zipFile();
+                .marshal().base64(72, "\n", true);
+
     }
 }
diff --git a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java b/integration-tests/base64/src/test/java/org/apache/camel/quarkus/component/base64/it/Base64IT.java
similarity index 71%
copy from integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
copy to integration-tests/base64/src/test/java/org/apache/camel/quarkus/component/base64/it/Base64IT.java
index c2d8a6d..0c69bd2 100644
--- a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
+++ b/integration-tests/base64/src/test/java/org/apache/camel/quarkus/component/base64/it/Base64IT.java
@@ -14,15 +14,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.camel.quarkus.component.zipfile.it;
+package org.apache.camel.quarkus.component.base64.it;
 
-import org.apache.camel.builder.RouteBuilder;
+import io.quarkus.test.junit.NativeImageTest;
+
+@NativeImageTest
+class Base64IT extends Base64Test {
 
-public class ZipfileRouteBuilder extends RouteBuilder {
-    @Override
-    public void configure() {
-        // Add some routes or remove this class
-        from("direct:start")
-                .marshal().zipFile();
-    }
 }
diff --git a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java b/integration-tests/base64/src/test/java/org/apache/camel/quarkus/component/base64/it/Base64Test.java
similarity index 51%
copy from integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
copy to integration-tests/base64/src/test/java/org/apache/camel/quarkus/component/base64/it/Base64Test.java
index c2d8a6d..5b2fe69 100644
--- a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
+++ b/integration-tests/base64/src/test/java/org/apache/camel/quarkus/component/base64/it/Base64Test.java
@@ -14,15 +14,30 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.camel.quarkus.component.zipfile.it;
+package org.apache.camel.quarkus.component.base64.it;
 
-import org.apache.camel.builder.RouteBuilder;
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import io.restassured.http.ContentType;
+import io.restassured.response.ExtractableResponse;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
 
-public class ZipfileRouteBuilder extends RouteBuilder {
-    @Override
-    public void configure() {
-        // Add some routes or remove this class
-        from("direct:start")
-                .marshal().zipFile();
+@QuarkusTest
+class Base64Test {
+
+    @Test
+    public void test() {
+        byte[] body;
+
+        ExtractableResponse response = RestAssured.given() //
+                .contentType(ContentType.BINARY).body("Hello World".getBytes()).post("/base64/post") //
+                .then().extract();
+
+        body = response.body().asByteArray();
+        Assertions.assertNotNull(body);
+
+        Assertions.assertEquals("SGVsbG8gV29ybGQ\n", new String(body));
     }
+
 }
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 9a29a26..60f3113 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -149,6 +149,7 @@
         <module>xslt</module>
         <module>zipfile</module>
         <module>seda</module>
+        <module>base64</module>
     </modules>
 
     <build>
diff --git a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java b/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
index c2d8a6d..a377e69 100644
--- a/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
+++ b/integration-tests/zipfile/src/main/java/org/apache/camel/quarkus/component/zipfile/it/ZipfileRouteBuilder.java
@@ -21,7 +21,6 @@ import org.apache.camel.builder.RouteBuilder;
 public class ZipfileRouteBuilder extends RouteBuilder {
     @Override
     public void configure() {
-        // Add some routes or remove this class
         from("direct:start")
                 .marshal().zipFile();
     }
diff --git a/poms/bom-deployment/pom.xml b/poms/bom-deployment/pom.xml
index f7bf85e..47012c5 100644
--- a/poms/bom-deployment/pom.xml
+++ b/poms/bom-deployment/pom.xml
@@ -100,6 +100,11 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-base64-deployment</artifactId>
+                <version>${camel-quarkus.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
                 <artifactId>camel-quarkus-bean-deployment</artifactId>
                 <version>${camel-quarkus.version}</version>
             </dependency>
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index 6a349c9..9ac8dc8 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -98,6 +98,11 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel</groupId>
+                <artifactId>camel-base64</artifactId>
+                <version>${camel.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel</groupId>
                 <artifactId>camel-bean</artifactId>
                 <version>${camel.version}</version>
             </dependency>
@@ -749,6 +754,11 @@
                 <artifactId>xalan</artifactId>
                 <version>${xalan.version}</version>
             </dependency>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-base64</artifactId>
+                <version>${camel-quarkus.version}</version>
+            </dependency>
         </dependencies>
     </dependencyManagement>