Skip to content

Commit

Permalink
Add Camel AS2 Modules as Quarkus Extension #1471
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek authored and jamesnetherton committed Aug 25, 2020
1 parent 641ef30 commit 074d165
Show file tree
Hide file tree
Showing 36 changed files with 1,948 additions and 0 deletions.
2 changes: 2 additions & 0 deletions catalog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
camel-quarkus-amqp
camel-quarkus-apns
camel-quarkus-arangodb
camel-quarkus-as2
camel-quarkus-asterisk
camel-quarkus-atmos
camel-quarkus-atom
Expand Down Expand Up @@ -214,6 +215,7 @@
camel-quarkus-support-ahc
camel-quarkus-support-aws
camel-quarkus-support-aws2
camel-quarkus-support-bouncycastle
camel-quarkus-support-common
camel-quarkus-support-commons-logging
camel-quarkus-support-consul-client
Expand Down
1 change: 1 addition & 0 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*** xref:reference/extensions/amqp.adoc[AMQP]
*** xref:reference/extensions/apns.adoc[APNS]
*** xref:reference/extensions/arangodb.adoc[ArangoDb]
*** xref:reference/extensions/as2.adoc[AS2]
*** xref:reference/extensions/asterisk.adoc[Asterisk]
*** xref:reference/extensions/ahc.adoc[Async HTTP Client (AHC)]
*** xref:reference/extensions/ahc-ws.adoc[Async HTTP Client (AHC) Websocket]
Expand Down
3 changes: 3 additions & 0 deletions docs/modules/ROOT/pages/reference/components.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Preview | 1.1.0 | Send notifications to Apple iOS devices.
| xref:reference/extensions/arangodb.adoc[ArangoDb] | [.camel-element-artifact]##camel-quarkus-arangodb## | [.camel-element-Native]##Native## +
Stable | 1.1.0 | Perform operations on ArangoDb when used as a Document Database, or as a Graph Database

| xref:reference/extensions/as2.adoc[AS2] | [.camel-element-artifact]##camel-quarkus-as2## | [.camel-element-Native]##Native## +
Stable | 1.0.0-CR4 | Transfer data securely and reliably using the AS2 protocol (RFC4130).

| xref:reference/extensions/asterisk.adoc[Asterisk] | [.camel-element-artifact]##camel-quarkus-asterisk## | [.camel-element-JVM]##JVM## +
Preview | 1.1.0 | Interact with Asterisk PBX Server.

Expand Down
37 changes: 37 additions & 0 deletions docs/modules/ROOT/pages/reference/extensions/as2.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page

[[as2]]
= AS2
:page-aliases: extensions/as2.adoc

[.badges]
[.badge-key]##Since Camel Quarkus##[.badge-version]##1.0.0-CR4## [.badge-key]##JVM##[.badge-supported]##supported## [.badge-key]##Native##[.badge-supported]##supported##

Transfer data securely and reliably using the AS2 protocol (RFC4130).

== What's inside

* https://camel.apache.org/components/latest/as2-component.html[AS2 component], URI syntax: `as2:apiName/methodName`

Please refer to the above link for usage and configuration details.

== Maven coordinates

[source,xml]
----
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-as2</artifactId>
</dependency>
----

Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.

== Usage

Depending on its configuration, this component may require SSL encryption on its connections. In such a case, you will need
to add `quarkus.ssl.native=true` to your `application.properties`.
See also https://quarkus.io/guides/native-and-ssl[Quarkus native SSL guide] and xref:user-guide/native-mode.adoc[Native mode]
section of Camel Quarkus user guide.

3 changes: 3 additions & 0 deletions docs/modules/ROOT/pages/reference/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Preview | 1.1.0 | Send notifications to Apple iOS devices.
| xref:reference/extensions/arangodb.adoc[ArangoDb] | camel-quarkus-arangodb | [.camel-element-Native]##Native## +
Stable | 1.1.0 | Perform operations on ArangoDb when used as a Document Database, or as a Graph Database

| xref:reference/extensions/as2.adoc[AS2] | camel-quarkus-as2 | [.camel-element-Native]##Native## +
Stable | 1.0.0-CR4 | Transfer data securely and reliably using the AS2 protocol (RFC4130).

| xref:reference/extensions/asterisk.adoc[Asterisk] | camel-quarkus-asterisk | [.camel-element-JVM]##JVM## +
Preview | 1.1.0 | Interact with Asterisk PBX Server.

Expand Down
69 changes: 69 additions & 0 deletions extensions-support/bouncycastle/deployment/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?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-support-bouncycastle-parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>camel-quarkus-support-bouncycastle-deployment</artifactId>
<name>Camel Quarkus :: Support :: Bouncy Castle :: Deployment</name>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-core-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-support-bouncycastle</artifactId>
</dependency>
<dependency>
<artifactId>bcprov-jdk15on</artifactId>
<groupId>org.bouncycastle</groupId>
</dependency>
<dependency>
<artifactId>bcpkix-jdk15on</artifactId>
<groupId>org.bouncycastle</groupId>
</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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* 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.support.bouncycastle.deployment;

import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import org.jboss.jandex.IndexView;

public class BouncycastleSupportProcessor {
static final String FEATURE = "camel-support-bouncycastle";

@BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}

@BuildStep
ReflectiveClassBuildItem registerForReflection(CombinedIndexBuildItem combinedIndex) {
IndexView index = combinedIndex.getIndex();

String[] dtos = index.getKnownClasses().stream()
.map(ci -> ci.name().toString())
.filter(n -> n.startsWith("org.bouncycastle.jcajce.provider.digest.") ||
n.startsWith("org.bouncycastle.jcajce.provider.symmetric.") ||
n.startsWith("org.bouncycastle.jcajce.provider.asymmetric.") ||
n.startsWith("org.bouncycastle.jcajce.provider.keystore."))
.sorted()
.toArray(String[]::new);

return new ReflectiveClassBuildItem(false, false, dtos);
}

@BuildStep
IndexDependencyBuildItem registerBCDependencyForIndex() {
return new IndexDependencyBuildItem("org.bouncycastle", "bcprov-jdk15on");
}
}
37 changes: 37 additions & 0 deletions extensions-support/bouncycastle/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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>1.1.0-SNAPSHOT</version>
<relativePath>../../poms/build-parent/pom.xml</relativePath>
</parent>

<artifactId>camel-quarkus-support-bouncycastle-parent</artifactId>
<name>Camel Quarkus :: Support :: Bouncy Castle</name>
<packaging>pom</packaging>

<modules>
<module>deployment</module>
<module>runtime</module>
</modules>
</project>
80 changes: 80 additions & 0 deletions extensions-support/bouncycastle/runtime/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?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-support-bouncycastle-parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>camel-quarkus-support-bouncycastle</artifactId>
<name>Camel Quarkus :: Support :: Bouncy Castle :: Runtime</name>

<properties>
<firstVersion>1.1.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>io.quarkus</groupId>
<artifactId>quarkus-core</artifactId>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</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>
Original file line number Diff line number Diff line change
@@ -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 Support Bouncy Castle"
description: "Camel Quarkus Support Bouncy Castle"
metadata:
unlisted: true
keywords:
- "camel"
guide: "https://quarkus.io/guides/camel"
categories:
- "integration"
1 change: 1 addition & 0 deletions extensions-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<module>ahc</module>
<module>aws</module>
<module>aws2</module>
<module>bouncycastle</module>
<module>common</module>
<module>commons-logging</module>
<module>consul-client</module>
Expand Down

0 comments on commit 074d165

Please sign in to comment.