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 2023/01/12 14:07:32 UTC
[camel] 01/02: CAMEL-18897: Remove camel-ipfs in v4
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
commit bc3f9bbb7ec63ff4ae64ff6273534c0c418887c4
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jan 12 15:05:38 2023 +0100
CAMEL-18897: Remove camel-ipfs in v4
---
bom/camel-bom/pom.xml | 5 -
catalog/camel-allcomponents/pom.xml | 5 -
.../org/apache/camel/catalog/components.properties | 1 -
.../org/apache/camel/catalog/components/ipfs.json | 35 ----
components/camel-ipfs/pom.xml | 80 --------
.../component/ipfs/IPFSComponentConfigurer.java | 67 -------
.../component/ipfs/IPFSEndpointConfigurer.java | 52 -----
.../component/ipfs/IPFSEndpointUriFactory.java | 70 -------
.../services/org/apache/camel/component.properties | 7 -
.../services/org/apache/camel/component/ipfs | 2 -
.../org/apache/camel/configurer/ipfs-component | 2 -
.../org/apache/camel/configurer/ipfs-endpoint | 2 -
.../org/apache/camel/urifactory/ipfs-endpoint | 2 -
.../org/apache/camel/component/ipfs/ipfs.json | 35 ----
.../camel-ipfs/src/main/docs/ipfs-component.adoc | 63 ------
.../apache/camel/component/ipfs/IPFSComponent.java | 73 -------
.../camel/component/ipfs/IPFSConfiguration.java | 61 ------
.../apache/camel/component/ipfs/IPFSEndpoint.java | 65 ------
.../apache/camel/component/ipfs/IPFSProducer.java | 162 ---------------
.../camel/component/ipfs/SimpleIPFSTest.java | 223 ---------------------
.../src/test/resources/html/chap/ch01.html | 31 ---
.../src/test/resources/html/css/default.css | 54 -----
.../src/test/resources/html/etc/userfile.txt | 1 -
.../src/test/resources/html/img/logo.png | Bin 6715 -> 0 bytes
.../camel-ipfs/src/test/resources/html/index.html | 31 ---
.../src/test/resources/log4j2.properties | 30 ---
components/pom.xml | 1 -
.../modules/ROOT/examples/json/ipfs.json | 1 -
docs/components/modules/ROOT/nav.adoc | 1 -
.../modules/ROOT/pages/ipfs-component.adoc | 1 -
.../modules/others/examples/json/opentracing.json | 1 -
.../modules/others/pages/opentracing.adoc | 1 -
.../ROOT/pages/camel-4-migration-guide.adoc | 1 +
.../component/ComponentsBuilderFactory.java | 14 --
.../component/dsl/IpfsComponentBuilderFactory.java | 150 --------------
.../src/generated/resources/metadata.json | 22 --
.../builder/endpoint/EndpointBuilderFactory.java | 1 -
.../camel/builder/endpoint/EndpointBuilders.java | 1 -
.../builder/endpoint/StaticEndpointBuilders.java | 47 -----
.../endpoint/dsl/IPFSEndpointBuilderFactory.java | 175 ----------------
parent/pom.xml | 5 -
pom.xml | 2 +-
42 files changed, 2 insertions(+), 1581 deletions(-)
diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index cf3b8f15d71..174eca9ff66 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1016,11 +1016,6 @@
<artifactId>camel-iota</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-ipfs</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-irc</artifactId>
diff --git a/catalog/camel-allcomponents/pom.xml b/catalog/camel-allcomponents/pom.xml
index 0c879cb2370..99940a5dafa 100644
--- a/catalog/camel-allcomponents/pom.xml
+++ b/catalog/camel-allcomponents/pom.xml
@@ -858,11 +858,6 @@
<artifactId>camel-iota</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-ipfs</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-irc</artifactId>
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
index f5da9f66960..e15d4bc282e 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
@@ -160,7 +160,6 @@ infinispan-embedded
influxdb
influxdb2
iota
-ipfs
irc
ironmq
jbpm
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ipfs.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ipfs.json
deleted file mode 100644
index 4fedd485074..00000000000
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ipfs.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "component": {
- "kind": "component",
- "name": "ipfs",
- "title": "IPFS",
- "description": "Access the Interplanetary File System (IPFS).",
- "deprecated": true,
- "firstVersion": "2.23.0",
- "label": "file,ipfs",
- "javaType": "org.apache.camel.component.ipfs.IPFSComponent",
- "supportLevel": "Stable",
- "groupId": "org.apache.camel",
- "artifactId": "camel-ipfs",
- "version": "4.0.0-SNAPSHOT",
- "scheme": "ipfs",
- "extendsScheme": "",
- "syntax": "ipfs:ipfsCmd",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": true,
- "lenientProperties": false
- },
- "componentProperties": {
- "ipfsHost": { "kind": "property", "displayName": "Ipfs Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "127.0.0.1", "description": "The ipfs host" },
- "ipfsPort": { "kind": "property", "displayName": "Ipfs Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 5001, "description": "The ipfs port" },
- "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during star [...]
- "autowiredEnabled": { "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which t [...]
- },
- "properties": {
- "ipfsCmd": { "kind": "path", "displayName": "Ipfs Cmd", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "add", "cat", "get", "version" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ipfs.IPFSConfiguration", "configurationField": "configuration", "description": "The ipfs command" },
- "outdir": { "kind": "parameter", "displayName": "Outdir", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ipfs.IPFSConfiguration", "configurationField": "configuration", "description": "The ipfs output directory" },
- "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may other [...]
- }
-}
diff --git a/components/camel-ipfs/pom.xml b/components/camel-ipfs/pom.xml
deleted file mode 100644
index bcba081e2b5..00000000000
--- a/components/camel-ipfs/pom.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?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</groupId>
- <artifactId>components</artifactId>
- <version>4.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-ipfs</artifactId>
- <packaging>jar</packaging>
-
- <name>Camel :: IPFS (deprecated)</name>
- <description>Camel IPFS support</description>
-
- <properties>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-support</artifactId>
- </dependency>
- <dependency>
- <groupId>io.nessus</groupId>
- <artifactId>nessus-ipfs-client</artifactId>
- </dependency>
-
- <!-- Test -->
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test-junit5</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>flatten-maven-plugin</artifactId>
- <configuration>
- <pomElements combine.children="append">
- <repositories>keep</repositories>
- </pomElements>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSComponentConfigurer.java b/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSComponentConfigurer.java
deleted file mode 100644
index 9b77b3977b9..00000000000
--- a/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSComponentConfigurer.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.ipfs;
-
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@SuppressWarnings("unchecked")
-public class IPFSComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- IPFSComponent target = (IPFSComponent) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
- case "ipfshost":
- case "ipfsHost": target.setIpfsHost(property(camelContext, java.lang.String.class, value)); return true;
- case "ipfsport":
- case "ipfsPort": target.setIpfsPort(property(camelContext, int.class, value)); return true;
- case "lazystartproducer":
- case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
- default: return false;
- }
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": return boolean.class;
- case "ipfshost":
- case "ipfsHost": return java.lang.String.class;
- case "ipfsport":
- case "ipfsPort": return int.class;
- case "lazystartproducer":
- case "lazyStartProducer": return boolean.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- IPFSComponent target = (IPFSComponent) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": return target.isAutowiredEnabled();
- case "ipfshost":
- case "ipfsHost": return target.getIpfsHost();
- case "ipfsport":
- case "ipfsPort": return target.getIpfsPort();
- case "lazystartproducer":
- case "lazyStartProducer": return target.isLazyStartProducer();
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSEndpointConfigurer.java b/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSEndpointConfigurer.java
deleted file mode 100644
index fe289a99796..00000000000
--- a/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSEndpointConfigurer.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.ipfs;
-
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@SuppressWarnings("unchecked")
-public class IPFSEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- IPFSEndpoint target = (IPFSEndpoint) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "lazystartproducer":
- case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
- case "outdir": target.getConfiguration().setOutdir(property(camelContext, java.lang.String.class, value)); return true;
- default: return false;
- }
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "lazystartproducer":
- case "lazyStartProducer": return boolean.class;
- case "outdir": return java.lang.String.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- IPFSEndpoint target = (IPFSEndpoint) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "lazystartproducer":
- case "lazyStartProducer": return target.isLazyStartProducer();
- case "outdir": return target.getConfiguration().getOutdir();
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSEndpointUriFactory.java b/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSEndpointUriFactory.java
deleted file mode 100644
index 66929c1e0e7..00000000000
--- a/components/camel-ipfs/src/generated/java/org/apache/camel/component/ipfs/IPFSEndpointUriFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.ipfs;
-
-import java.net.URISyntaxException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.camel.spi.EndpointUriFactory;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-public class IPFSEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
-
- private static final String BASE = ":ipfsCmd";
-
- private static final Set<String> PROPERTY_NAMES;
- private static final Set<String> SECRET_PROPERTY_NAMES;
- private static final Set<String> MULTI_VALUE_PREFIXES;
- static {
- Set<String> props = new HashSet<>(3);
- props.add("ipfsCmd");
- props.add("lazyStartProducer");
- props.add("outdir");
- PROPERTY_NAMES = Collections.unmodifiableSet(props);
- SECRET_PROPERTY_NAMES = Collections.emptySet();
- MULTI_VALUE_PREFIXES = Collections.emptySet();
- }
-
- @Override
- public boolean isEnabled(String scheme) {
- return "ipfs".equals(scheme);
- }
-
- @Override
- public String buildUri(String scheme, Map<String, Object> properties, boolean encode) throws URISyntaxException {
- String syntax = scheme + BASE;
- String uri = syntax;
-
- Map<String, Object> copy = new HashMap<>(properties);
-
- uri = buildPathParameter(syntax, uri, "ipfsCmd", null, true, copy);
- uri = buildQueryParameters(uri, copy, encode);
- return uri;
- }
-
- @Override
- public Set<String> propertyNames() {
- return PROPERTY_NAMES;
- }
-
- @Override
- public Set<String> secretPropertyNames() {
- return SECRET_PROPERTY_NAMES;
- }
-
- @Override
- public Set<String> multiValuePrefixes() {
- return MULTI_VALUE_PREFIXES;
- }
-
- @Override
- public boolean isLenientProperties() {
- return false;
- }
-}
-
diff --git a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/component.properties b/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/component.properties
deleted file mode 100644
index f7254b50d20..00000000000
--- a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/component.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-components=ipfs
-groupId=org.apache.camel
-artifactId=camel-ipfs
-version=4.0.0-SNAPSHOT
-projectName=Camel :: IPFS (deprecated)
-projectDescription=Camel IPFS support
diff --git a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/component/ipfs b/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/component/ipfs
deleted file mode 100644
index 946547bc9ee..00000000000
--- a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/component/ipfs
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.ipfs.IPFSComponent
diff --git a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/configurer/ipfs-component b/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/configurer/ipfs-component
deleted file mode 100644
index 12590737b79..00000000000
--- a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/configurer/ipfs-component
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.ipfs.IPFSComponentConfigurer
diff --git a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/configurer/ipfs-endpoint b/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/configurer/ipfs-endpoint
deleted file mode 100644
index 22e9cbe6bb2..00000000000
--- a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/configurer/ipfs-endpoint
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.ipfs.IPFSEndpointConfigurer
diff --git a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/urifactory/ipfs-endpoint b/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/urifactory/ipfs-endpoint
deleted file mode 100644
index a8068d27d6d..00000000000
--- a/components/camel-ipfs/src/generated/resources/META-INF/services/org/apache/camel/urifactory/ipfs-endpoint
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.ipfs.IPFSEndpointUriFactory
diff --git a/components/camel-ipfs/src/generated/resources/org/apache/camel/component/ipfs/ipfs.json b/components/camel-ipfs/src/generated/resources/org/apache/camel/component/ipfs/ipfs.json
deleted file mode 100644
index 4fedd485074..00000000000
--- a/components/camel-ipfs/src/generated/resources/org/apache/camel/component/ipfs/ipfs.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "component": {
- "kind": "component",
- "name": "ipfs",
- "title": "IPFS",
- "description": "Access the Interplanetary File System (IPFS).",
- "deprecated": true,
- "firstVersion": "2.23.0",
- "label": "file,ipfs",
- "javaType": "org.apache.camel.component.ipfs.IPFSComponent",
- "supportLevel": "Stable",
- "groupId": "org.apache.camel",
- "artifactId": "camel-ipfs",
- "version": "4.0.0-SNAPSHOT",
- "scheme": "ipfs",
- "extendsScheme": "",
- "syntax": "ipfs:ipfsCmd",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": true,
- "lenientProperties": false
- },
- "componentProperties": {
- "ipfsHost": { "kind": "property", "displayName": "Ipfs Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "127.0.0.1", "description": "The ipfs host" },
- "ipfsPort": { "kind": "property", "displayName": "Ipfs Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 5001, "description": "The ipfs port" },
- "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during star [...]
- "autowiredEnabled": { "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which t [...]
- },
- "properties": {
- "ipfsCmd": { "kind": "path", "displayName": "Ipfs Cmd", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "add", "cat", "get", "version" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ipfs.IPFSConfiguration", "configurationField": "configuration", "description": "The ipfs command" },
- "outdir": { "kind": "parameter", "displayName": "Outdir", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ipfs.IPFSConfiguration", "configurationField": "configuration", "description": "The ipfs output directory" },
- "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may other [...]
- }
-}
diff --git a/components/camel-ipfs/src/main/docs/ipfs-component.adoc b/components/camel-ipfs/src/main/docs/ipfs-component.adoc
deleted file mode 100644
index b2562704798..00000000000
--- a/components/camel-ipfs/src/main/docs/ipfs-component.adoc
+++ /dev/null
@@ -1,63 +0,0 @@
-= IPFS Component (deprecated)
-:doctitle: IPFS
-:shortname: ipfs
-:artifactid: camel-ipfs
-:description: Access the Interplanetary File System (IPFS).
-:since: 2.23
-:supportlevel: Stable-deprecated
-:deprecated: *deprecated*
-:component-header: Only producer is supported
-//Manually maintained attributes
-:camel-spring-boot-name: ipfs
-
-*Since Camel {since}*
-
-*{component-header}*
-
-The IPFS component provides access to the Interplanetary File System https://ipfs.io/[(IPFS)].
-
-Maven users will need to add the following dependency to their `pom.xml`
-for this component:
-
-[source,xml]
-------------------------------------------------------------
-<dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-ipfs</artifactId>
- <version>x.x.x</version>
- <!-- use the same version as your Camel core version -->
-</dependency>
-------------------------------------------------------------
-
-== URI format
-
----------------------------------
-ipfs://cmd?options
----------------------------------
-
-// component-configure options: START
-
-// component-configure options: END
-
-// component options: START
-include::partial$component-configure-options.adoc[]
-include::partial$component-endpoint-options.adoc[]
-// component options: END
-
-// endpoint options: START
-
-// endpoint options: END
-
-== Samples
-
-In this sample we add a file to IPFS, get a file from IPFS and finally access the content of an IPFS file.
-
-[source,java]
----------------------------------------------------------------------------------------------
-from("direct:start").to("ipfs:add")
-from("direct:start").to("ipfs:get?outdir=target")
-from("direct:start").to("ipfs:cat");
----------------------------------------------------------------------------------------------
-
-
-include::spring-boot:partial$starter.adoc[]
diff --git a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSComponent.java b/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSComponent.java
deleted file mode 100644
index dd08eddde64..00000000000
--- a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSComponent.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * 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.component.ipfs;
-
-import java.util.Map;
-
-import io.nessus.ipfs.client.DefaultIPFSClient;
-import io.nessus.ipfs.client.IPFSClient;
-import org.apache.camel.Endpoint;
-import org.apache.camel.spi.Metadata;
-import org.apache.camel.spi.annotations.Component;
-import org.apache.camel.support.DefaultComponent;
-
-@Component("ipfs")
-public class IPFSComponent extends DefaultComponent {
-
- @Metadata(description = "The ipfs host", defaultValue = "127.0.0.1")
- private String ipfsHost = "127.0.0.1";
- @Metadata(description = "The ipfs port", defaultValue = "5001")
- private int ipfsPort = 5001;
-
- private IPFSClient client;
-
- public String getIpfsHost() {
- return ipfsHost;
- }
-
- public void setIpfsHost(String ipfsHost) {
- this.ipfsHost = ipfsHost;
- }
-
- public int getIpfsPort() {
- return ipfsPort;
- }
-
- public void setIpfsPort(int ipfsPort) {
- this.ipfsPort = ipfsPort;
- }
-
- @Override
- protected Endpoint createEndpoint(String urispec, String remaining, Map<String, Object> parameters) throws Exception {
-
- IPFSConfiguration config = new IPFSConfiguration();
- IPFSEndpoint endpoint = new IPFSEndpoint(urispec, this, config);
- setProperties(endpoint, parameters);
-
- String cmd = remaining;
- config.setIpfsCmd(cmd);
-
- return endpoint;
- }
-
- public IPFSClient getIPFSClient() {
- if (client == null) {
- client = new DefaultIPFSClient(ipfsHost, ipfsPort);
- }
- return client;
- }
-}
diff --git a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSConfiguration.java b/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSConfiguration.java
deleted file mode 100644
index ce58125b684..00000000000
--- a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSConfiguration.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * 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.component.ipfs;
-
-import org.apache.camel.spi.Metadata;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriParams;
-import org.apache.camel.spi.UriPath;
-
-@UriParams
-public class IPFSConfiguration {
-
- // Available commands
- public enum IPFSCommand {
- add,
- cat,
- get,
- version
- }
-
- @UriPath(description = "The ipfs command", enums = "add,cat,get,version")
- @Metadata(required = true)
- private String ipfsCmd;
- @UriParam(description = "The ipfs output directory")
- private String outdir;
-
- public void init(String urispec, String remaining) {
- String cmd = remaining;
- setIpfsCmd(cmd);
- }
-
- public String getIpfsCmd() {
- return ipfsCmd;
- }
-
- public void setIpfsCmd(String cmd) {
- this.ipfsCmd = cmd;
- }
-
- public String getOutdir() {
- return outdir;
- }
-
- public void setOutdir(String outdir) {
- this.outdir = outdir;
- }
-}
diff --git a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSEndpoint.java b/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSEndpoint.java
deleted file mode 100644
index 1b8f9c5d8c0..00000000000
--- a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSEndpoint.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * 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.component.ipfs;
-
-import io.nessus.ipfs.client.IPFSClient;
-import org.apache.camel.Category;
-import org.apache.camel.Consumer;
-import org.apache.camel.Processor;
-import org.apache.camel.Producer;
-import org.apache.camel.spi.UriEndpoint;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.support.DefaultEndpoint;
-
-/**
- * Access the Interplanetary File System (IPFS).
- */
-@UriEndpoint(firstVersion = "2.23.0", scheme = "ipfs", title = "IPFS",
- syntax = "ipfs:ipfsCmd", producerOnly = true, category = { Category.FILE, Category.IPFS })
-public class IPFSEndpoint extends DefaultEndpoint {
-
- @UriParam
- private final IPFSConfiguration configuration;
-
- public IPFSEndpoint(String uri, IPFSComponent component, IPFSConfiguration configuration) {
- super(uri, component);
- this.configuration = configuration;
- }
-
- @Override
- public IPFSComponent getComponent() {
- return (IPFSComponent) super.getComponent();
- }
-
- @Override
- public Consumer createConsumer(Processor processor) throws Exception {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Producer createProducer() throws Exception {
- return new IPFSProducer(this);
- }
-
- public IPFSConfiguration getConfiguration() {
- return configuration;
- }
-
- public IPFSClient getIPFSClient() {
- return getComponent().getIPFSClient();
- }
-}
diff --git a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSProducer.java b/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSProducer.java
deleted file mode 100644
index 18a27c723d0..00000000000
--- a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSProducer.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * 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.component.ipfs;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.List;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.TimeoutException;
-import java.util.stream.Collectors;
-
-import io.ipfs.multihash.Multihash;
-import io.nessus.ipfs.client.IPFSClient;
-import io.nessus.ipfs.client.IPFSException;
-import org.apache.camel.Exchange;
-import org.apache.camel.component.ipfs.IPFSConfiguration.IPFSCommand;
-import org.apache.camel.support.DefaultProducer;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class IPFSProducer extends DefaultProducer {
-
- private static final Logger LOG = LoggerFactory.getLogger(IPFSComponent.class);
-
- private static final long DEFAULT_TIMEOUT = 10000L;
-
- public IPFSProducer(IPFSEndpoint endpoint) {
- super(endpoint);
- }
-
- @Override
- public IPFSEndpoint getEndpoint() {
- return (IPFSEndpoint) super.getEndpoint();
- }
-
- @Override
- protected void doStart() throws Exception {
- super.doStart();
- IPFSClient client = getEndpoint().getIPFSClient();
- try {
- client.connect();
- } catch (IPFSException ex) {
- LOG.warn(ex.getMessage());
- }
- }
-
- @Override
- protected void doStop() throws Exception {
- super.doStop();
- // client has no disconnect api
- }
-
- @Override
- public void process(Exchange exchange) throws Exception {
- IPFSEndpoint endpoint = getEndpoint();
- IPFSCommand cmd = getCommand();
-
- if (IPFSCommand.version == cmd) {
- String resp = ipfsVersion();
- exchange.getMessage().setBody(resp);
- } else if (IPFSCommand.add == cmd) {
- Path path = pathFromBody(exchange);
- List<String> cids = ipfsAdd(path);
- Object resp = cids;
- if (path.toFile().isFile()) {
- resp = !cids.isEmpty() ? cids.get(0) : null;
- }
- exchange.getMessage().setBody(resp);
- } else if (IPFSCommand.cat == cmd) {
- String cid = exchange.getMessage().getBody(String.class);
- InputStream resp = ipfsCat(cid);
- exchange.getMessage().setBody(resp);
- } else if (IPFSCommand.get == cmd) {
- String outdir = endpoint.getConfiguration().getOutdir();
- String cid = exchange.getMessage().getBody(String.class);
- Path resp = ipfsGet(cid, new File(outdir).toPath());
- exchange.getMessage().setBody(resp);
- } else {
- throw new UnsupportedOperationException(cmd.toString());
- }
- }
-
- private Path pathFromBody(Exchange exchange) {
- Object body = exchange.getMessage().getBody();
- if (body instanceof Path) {
- return (Path) body;
- }
- if (body instanceof String) {
- return Paths.get((String) body);
- }
- if (body instanceof File) {
- return ((File) body).toPath();
- }
- throw new IllegalArgumentException("Invalid path: " + body);
- }
-
- public IPFSCommand getCommand() {
- String cmd = getEndpoint().getConfiguration().getIpfsCmd();
- try {
- return IPFSCommand.valueOf(cmd);
- } catch (IllegalArgumentException ex) {
- throw new IllegalArgumentException("Unsupported command: " + cmd);
- }
- }
-
- public String ipfsVersion() throws IOException {
- return ipfs().version();
- }
-
- public List<String> ipfsAdd(Path path) throws IOException {
- List<Multihash> cids = ipfs().add(path);
- return cids.stream().map(mh -> mh.toBase58()).collect(Collectors.toList());
- }
-
- public InputStream ipfsCat(String cid) throws IOException, TimeoutException {
- Multihash mhash = Multihash.fromBase58(cid);
- Future<InputStream> future = ipfs().cat(mhash);
- try {
- return future.get(DEFAULT_TIMEOUT, TimeUnit.MILLISECONDS);
- } catch (InterruptedException | ExecutionException ex) {
- throw new IOException("Cannot obtain: " + cid, ex);
- }
- }
-
- public Path ipfsGet(String cid, Path outdir) throws IOException, TimeoutException {
- Multihash mhash = Multihash.fromBase58(cid);
- Future<Path> future = ipfs().get(mhash, outdir);
- try {
- return future.get(DEFAULT_TIMEOUT, TimeUnit.MILLISECONDS);
- } catch (InterruptedException | ExecutionException ex) {
- throw new IOException("Cannot obtain: " + cid, ex);
- }
- }
-
- private IPFSClient ipfs() {
- IPFSClient client = getEndpoint().getIPFSClient();
- if (!client.hasConnection()) {
- client.connect();
- }
- return client;
- }
-
-}
diff --git a/components/camel-ipfs/src/test/java/org/apache/camel/component/ipfs/SimpleIPFSTest.java b/components/camel-ipfs/src/test/java/org/apache/camel/component/ipfs/SimpleIPFSTest.java
deleted file mode 100644
index a086049d079..00000000000
--- a/components/camel-ipfs/src/test/java/org/apache/camel/component/ipfs/SimpleIPFSTest.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*
- * 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.component.ipfs;
-
-import java.io.ByteArrayOutputStream;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.List;
-
-import io.nessus.utils.StreamUtils;
-import org.apache.camel.CamelContext;
-import org.apache.camel.ProducerTemplate;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.jupiter.api.Assumptions.assumeFalse;
-
-/*
-
-> ipfs config Addresses.Gateway /ip4/127.0.0.1/tcp/8088
-
-> ipfs daemon
-
-Initializing daemon...
-go-ipfs version: 0.4.22-
-Golang version: go1.12.7
-...
-API server listening on /ip4/127.0.0.1/tcp/5001
-WebUI: http://webui
-Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8088
-Daemon is ready
-
-*/
-
-public class SimpleIPFSTest {
-
- private static final String SINGLE_HASH = "QmUD7uG5prAMHbcCfp4x1G1mMSpywcSMHTGpq62sbpDAg6";
- private static final String RECURSIVE_HASH = "QmdcE2PmF5SBGCs1EVtznNTFPu4GoJztgJmAvdq66XxM3h";
-
- @Test
- public void ipfsVersion() throws Exception {
-
- try (CamelContext camelctx = new DefaultCamelContext()) {
-
- camelctx.addRoutes(new RouteBuilder() {
- @Override
- public void configure() {
- from("direct:startA").to("ipfs:version");
- }
- });
-
- camelctx.start();
-
- try {
- ProducerTemplate producer = camelctx.createProducerTemplate();
- String resA = producer.requestBody("direct:startA", null, String.class);
- assertTrue(resA.startsWith("0.4"), "Expecting 0.4 in: " + resA);
- } catch (Exception e) {
- boolean notRunning = e.getCause().getMessage().contains("Is IPFS running");
- assumeFalse(notRunning, "IPFS is running");
- }
- }
- }
-
- @Test
- public void ipfsAddSingle() throws Exception {
-
- try (CamelContext camelctx = new DefaultCamelContext()) {
-
- camelctx.addRoutes(new RouteBuilder() {
- @Override
- public void configure() {
- from("direct:start").to("ipfs:add");
- }
- });
-
- camelctx.start();
-
- try {
- Path path = Paths.get("src/test/resources/html/etc/userfile.txt");
- ProducerTemplate producer = camelctx.createProducerTemplate();
- String res = producer.requestBody("direct:start", path, String.class);
- assertEquals(SINGLE_HASH, res);
- } catch (Exception e) {
- boolean notRunning = e.getCause().getMessage().contains("Is IPFS running");
- assumeFalse(notRunning, "IPFS is running");
- }
- }
- }
-
- @Test
- @SuppressWarnings("unchecked")
- public void ipfsAddRecursive() throws Exception {
-
- try (CamelContext camelctx = new DefaultCamelContext()) {
-
- camelctx.addRoutes(new RouteBuilder() {
- @Override
- public void configure() {
- from("direct:start").to("ipfs:add");
- }
- });
-
- camelctx.start();
-
- try {
- Path path = Paths.get("src/test/resources/html");
- ProducerTemplate producer = camelctx.createProducerTemplate();
- List<String> res = producer.requestBody("direct:start", path, List.class);
- assertEquals(10, res.size());
- assertEquals(RECURSIVE_HASH, res.get(9));
- } catch (Exception e) {
- boolean notRunning = e.getCause().getMessage().contains("Is IPFS running");
- assumeFalse(notRunning, "IPFS is running");
- }
- }
- }
-
- @Test
- public void ipfsCat() throws Exception {
-
- try (CamelContext camelctx = new DefaultCamelContext()) {
-
- camelctx.addRoutes(new RouteBuilder() {
- @Override
- public void configure() {
- from("direct:start").to("ipfs:cat");
- }
- });
-
- camelctx.start();
-
- try {
- ProducerTemplate producer = camelctx.createProducerTemplate();
- InputStream res = producer.requestBody("direct:start", SINGLE_HASH, InputStream.class);
- verifyFileContent(res);
- } catch (Exception e) {
- boolean notRunning = e.getCause().getMessage().contains("Is IPFS running");
- assumeFalse(notRunning, "IPFS is running");
- }
- }
- }
-
- @Test
- public void ipfsGetSingle() throws Exception {
-
- try (CamelContext camelctx = new DefaultCamelContext()) {
-
- camelctx.addRoutes(new RouteBuilder() {
- @Override
- public void configure() {
- from("direct:start").to("ipfs:get?outdir=target");
- }
- });
-
- camelctx.start();
-
- try {
- ProducerTemplate producer = camelctx.createProducerTemplate();
- Path res = producer.requestBody("direct:start", SINGLE_HASH, Path.class);
- assertEquals(Paths.get("target", SINGLE_HASH), res);
- verifyFileContent(new FileInputStream(res.toFile()));
- } catch (Exception e) {
- boolean notRunning = e.getCause().getMessage().contains("Is IPFS running");
- assumeFalse(notRunning, "IPFS is running");
- }
- }
- }
-
- @Test
- public void ipfsGetRecursive() throws Exception {
-
- try (CamelContext camelctx = new DefaultCamelContext()) {
-
- camelctx.addRoutes(new RouteBuilder() {
- @Override
- public void configure() {
- from("direct:start").to("ipfs:get?outdir=target");
- }
- });
-
- camelctx.start();
-
- try {
- ProducerTemplate producer = camelctx.createProducerTemplate();
- Path res = producer.requestBody("direct:start", RECURSIVE_HASH, Path.class);
- assertEquals(Paths.get("target", RECURSIVE_HASH), res);
- assertTrue(res.toFile().isDirectory());
- assertTrue(res.resolve("index.html").toFile().exists());
- } catch (Exception e) {
- boolean notRunning = e.getCause().getMessage().contains("Is IPFS running");
- assumeFalse(notRunning, "IPFS is running");
- }
- }
- }
-
- private void verifyFileContent(InputStream ins) throws IOException {
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
- StreamUtils.copyStream(ins, baos);
- assertEquals("The quick brown fox jumps over the lazy dog.", new String(baos.toByteArray()));
- }
-
-}
diff --git a/components/camel-ipfs/src/test/resources/html/chap/ch01.html b/components/camel-ipfs/src/test/resources/html/chap/ch01.html
deleted file mode 100644
index 88fe44eeb21..00000000000
--- a/components/camel-ipfs/src/test/resources/html/chap/ch01.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
-
- 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.
-
--->
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <title>IPFS</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="./../css/default.css">
-</head>
-<body>
-<p><a href="../index.html">Home</a></p>
-<h2>Chapter 01</h2>
-<p><img src="../img/logo.png" alt="logo" /></p>
-</body>
-</html>
diff --git a/components/camel-ipfs/src/test/resources/html/css/default.css b/components/camel-ipfs/src/test/resources/html/css/default.css
deleted file mode 100644
index 8dbcf1c9225..00000000000
--- a/components/camel-ipfs/src/test/resources/html/css/default.css
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.
- */
-body {
- font-family: "Verdana";
- color: #137cb9
-}
-
-a {
- #text-decoration: none;
- color: #137cb9
-}
-
-a.gray {
- color: gray;
-}
-
-h1 {
- font-weight: normal;
- font-size: 20px;
-}
-
-h2 {
- font-weight: normal;
- font-size: 15px;
-}
-
-th {
- text-align: left;
- font-weight: normal;
- font-size: 14px;
- color: gray;
-}
-
-td.gray {
- color: gray;
-}
-tr.gray {
- color: gray;
-}
-
diff --git a/components/camel-ipfs/src/test/resources/html/etc/userfile.txt b/components/camel-ipfs/src/test/resources/html/etc/userfile.txt
deleted file mode 100644
index 8fe2a4b5ad1..00000000000
--- a/components/camel-ipfs/src/test/resources/html/etc/userfile.txt
+++ /dev/null
@@ -1 +0,0 @@
-The quick brown fox jumps over the lazy dog.
\ No newline at end of file
diff --git a/components/camel-ipfs/src/test/resources/html/img/logo.png b/components/camel-ipfs/src/test/resources/html/img/logo.png
deleted file mode 100644
index ddda52e086e..00000000000
Binary files a/components/camel-ipfs/src/test/resources/html/img/logo.png and /dev/null differ
diff --git a/components/camel-ipfs/src/test/resources/html/index.html b/components/camel-ipfs/src/test/resources/html/index.html
deleted file mode 100644
index efba9023917..00000000000
--- a/components/camel-ipfs/src/test/resources/html/index.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
-
- 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.
-
--->
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <title>IPFS</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="./css/default.css">
-</head>
-<body>
-<p><a href="index.html">Home</a></p>
-<p><a href="chap/ch01.html">chapter one</a></p>
-<p><img src="img/logo.png" alt="logo" /></p>
-</body>
-</html>
diff --git a/components/camel-ipfs/src/test/resources/log4j2.properties b/components/camel-ipfs/src/test/resources/log4j2.properties
deleted file mode 100644
index a5fae673ec3..00000000000
--- a/components/camel-ipfs/src/test/resources/log4j2.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-## ---------------------------------------------------------------------------
-## 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.
-## ---------------------------------------------------------------------------
-
-rootLogger.level = INFO
-rootLogger.appenderRef.file.ref = file
-
-appender.file.name = file
-appender.file.type = File
-appender.file.fileName = target/camel-ipfs-test.log
-appender.file.layout.type = PatternLayout
-appender.file.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
-
-appender.out.name = out
-appender.out.type = Console
-appender.out.layout.type = PatternLayout
-appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
diff --git a/components/pom.xml b/components/pom.xml
index 4d3e8a1026c..de54384fcf2 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -67,7 +67,6 @@
<module>camel-http-base</module>
<module>camel-http-common</module>
<module>camel-http</module>
- <module>camel-ipfs</module>
<module>camel-jetty-common</module>
<module>camel-jetty</module>
<module>camel-undertow</module>
diff --git a/docs/components/modules/ROOT/examples/json/ipfs.json b/docs/components/modules/ROOT/examples/json/ipfs.json
deleted file mode 120000
index 1ca8470e639..00000000000
--- a/docs/components/modules/ROOT/examples/json/ipfs.json
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../../components/camel-ipfs/src/generated/resources/org/apache/camel/component/ipfs/ipfs.json
\ No newline at end of file
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index e17a3596192..9745a14c934 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -165,7 +165,6 @@
** xref:influxdb-component.adoc[InfluxDB]
** xref:influxdb2-component.adoc[InfluxDB2]
** xref:iota-component.adoc[IOTA]
-** xref:ipfs-component.adoc[IPFS]
** xref:irc-component.adoc[IRC]
** xref:ironmq-component.adoc[IronMQ]
** xref:websocket-jsr356-component.adoc[Javax Websocket]
diff --git a/docs/components/modules/ROOT/pages/ipfs-component.adoc b/docs/components/modules/ROOT/pages/ipfs-component.adoc
deleted file mode 120000
index 1d387efc8b9..00000000000
--- a/docs/components/modules/ROOT/pages/ipfs-component.adoc
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../components/camel-ipfs/src/main/docs/ipfs-component.adoc
\ No newline at end of file
diff --git a/docs/components/modules/others/examples/json/opentracing.json b/docs/components/modules/others/examples/json/opentracing.json
deleted file mode 120000
index 701ecf5f549..00000000000
--- a/docs/components/modules/others/examples/json/opentracing.json
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../../components/camel-opentracing/src/generated/resources/opentracing.json
\ No newline at end of file
diff --git a/docs/components/modules/others/pages/opentracing.adoc b/docs/components/modules/others/pages/opentracing.adoc
deleted file mode 120000
index 354a1e287ff..00000000000
--- a/docs/components/modules/others/pages/opentracing.adoc
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../components/camel-opentracing/src/main/docs/opentracing.adoc
\ No newline at end of file
diff --git a/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc b/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc
index ac1479e35cf..d724882b2d4 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc
@@ -17,6 +17,7 @@ The following components has been removed:
- camel-caffeine-lrucache
- camel-cdi
- camel-elasticsearch-rest
+- camel-ipfs
- camel-opentracing
- camel-rabbitmq
- camel-restdsl-swagger-plugin
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 4e12e2aca96..919c3566531 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -2196,20 +2196,6 @@ public interface ComponentsBuilderFactory {
static org.apache.camel.builder.component.dsl.IotaComponentBuilderFactory.IotaComponentBuilder iota() {
return org.apache.camel.builder.component.dsl.IotaComponentBuilderFactory.iota();
}
- /**
- * IPFS (camel-ipfs)
- * Access the Interplanetary File System (IPFS).
- *
- * Category: file,ipfs
- * Since: 2.23
- * Maven coordinates: org.apache.camel:camel-ipfs
- *
- * @return the dsl builder
- */
- @Deprecated
- static org.apache.camel.builder.component.dsl.IpfsComponentBuilderFactory.IpfsComponentBuilder ipfs() {
- return org.apache.camel.builder.component.dsl.IpfsComponentBuilderFactory.ipfs();
- }
/**
* IRC (camel-irc)
* Send and receive messages to/from and IRC chat.
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IpfsComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IpfsComponentBuilderFactory.java
deleted file mode 100644
index 48557792f65..00000000000
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IpfsComponentBuilderFactory.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * 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.builder.component.dsl;
-
-import javax.annotation.processing.Generated;
-import org.apache.camel.Component;
-import org.apache.camel.builder.component.AbstractComponentBuilder;
-import org.apache.camel.builder.component.ComponentBuilder;
-import org.apache.camel.component.ipfs.IPFSComponent;
-
-/**
- * Access the Interplanetary File System (IPFS).
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
-public interface IpfsComponentBuilderFactory {
-
- /**
- * IPFS (camel-ipfs)
- * Access the Interplanetary File System (IPFS).
- *
- * Category: file,ipfs
- * Since: 2.23
- * Maven coordinates: org.apache.camel:camel-ipfs
- *
- * @return the dsl builder
- */
- @Deprecated
- static IpfsComponentBuilder ipfs() {
- return new IpfsComponentBuilderImpl();
- }
-
- /**
- * Builder for the IPFS component.
- */
- interface IpfsComponentBuilder extends ComponentBuilder<IPFSComponent> {
- /**
- * The ipfs host.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Default: 127.0.0.1
- * Group: producer
- *
- * @param ipfsHost the value to set
- * @return the dsl builder
- */
- default IpfsComponentBuilder ipfsHost(java.lang.String ipfsHost) {
- doSetProperty("ipfsHost", ipfsHost);
- return this;
- }
- /**
- * The ipfs port.
- *
- * The option is a: <code>int</code> type.
- *
- * Default: 5001
- * Group: producer
- *
- * @param ipfsPort the value to set
- * @return the dsl builder
- */
- default IpfsComponentBuilder ipfsPort(int ipfsPort) {
- doSetProperty("ipfsPort", ipfsPort);
- return this;
- }
- /**
- * Whether the producer should be started lazy (on the first message).
- * By starting lazy you can use this to allow CamelContext and routes to
- * startup in situations where a producer may otherwise fail during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default IpfsComponentBuilder lazyStartProducer(boolean lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- /**
- * Whether autowiring is enabled. This is used for automatic autowiring
- * options (the option must be marked as autowired) by looking up in the
- * registry to find if there is a single instance of matching type,
- * which then gets configured on the component. This can be used for
- * automatic configuring JDBC data sources, JMS connection factories,
- * AWS Clients, etc.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: advanced
- *
- * @param autowiredEnabled the value to set
- * @return the dsl builder
- */
- default IpfsComponentBuilder autowiredEnabled(boolean autowiredEnabled) {
- doSetProperty("autowiredEnabled", autowiredEnabled);
- return this;
- }
- }
-
- class IpfsComponentBuilderImpl
- extends
- AbstractComponentBuilder<IPFSComponent>
- implements
- IpfsComponentBuilder {
- @Override
- protected IPFSComponent buildConcreteComponent() {
- return new IPFSComponent();
- }
- @Override
- protected boolean setPropertyOnComponent(
- Component component,
- String name,
- Object value) {
- switch (name) {
- case "ipfsHost": ((IPFSComponent) component).setIpfsHost((java.lang.String) value); return true;
- case "ipfsPort": ((IPFSComponent) component).setIpfsPort((int) value); return true;
- case "lazyStartProducer": ((IPFSComponent) component).setLazyStartProducer((boolean) value); return true;
- case "autowiredEnabled": ((IPFSComponent) component).setAutowiredEnabled((boolean) value); return true;
- default: return false;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/dsl/camel-componentdsl/src/generated/resources/metadata.json b/dsl/camel-componentdsl/src/generated/resources/metadata.json
index 5777533d853..fe4304794f5 100644
--- a/dsl/camel-componentdsl/src/generated/resources/metadata.json
+++ b/dsl/camel-componentdsl/src/generated/resources/metadata.json
@@ -3595,28 +3595,6 @@
"producerOnly": true,
"lenientProperties": false
},
- "IpfsComponentBuilderFactory": {
- "kind": "component",
- "name": "ipfs",
- "title": "IPFS",
- "description": "Access the Interplanetary File System (IPFS).",
- "deprecated": true,
- "firstVersion": "2.23.0",
- "label": "file,ipfs",
- "javaType": "org.apache.camel.component.ipfs.IPFSComponent",
- "supportLevel": "Stable",
- "groupId": "org.apache.camel",
- "artifactId": "camel-ipfs",
- "version": "4.0.0-SNAPSHOT",
- "scheme": "ipfs",
- "extendsScheme": "",
- "syntax": "ipfs:ipfsCmd",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": true,
- "lenientProperties": false
- },
"IrcComponentBuilderFactory": {
"kind": "component",
"name": "irc",
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index 7749341d144..fe7ef93c5c3 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -157,7 +157,6 @@ public interface EndpointBuilderFactory
org.apache.camel.builder.endpoint.dsl.IAM2EndpointBuilderFactory.IAM2Builders,
org.apache.camel.builder.endpoint.dsl.IAMEndpointBuilderFactory.IAMBuilders,
org.apache.camel.builder.endpoint.dsl.IOTAEndpointBuilderFactory.IOTABuilders,
- org.apache.camel.builder.endpoint.dsl.IPFSEndpointBuilderFactory.IPFSBuilders,
org.apache.camel.builder.endpoint.dsl.IgniteCacheEndpointBuilderFactory.IgniteCacheBuilders,
org.apache.camel.builder.endpoint.dsl.IgniteComputeEndpointBuilderFactory.IgniteComputeBuilders,
org.apache.camel.builder.endpoint.dsl.IgniteEventsEndpointBuilderFactory.IgniteEventsBuilders,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index f34c9a1f882..96fea69aa9a 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -154,7 +154,6 @@ public interface EndpointBuilders
org.apache.camel.builder.endpoint.dsl.IAM2EndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.IAMEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.IOTAEndpointBuilderFactory,
- org.apache.camel.builder.endpoint.dsl.IPFSEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.IgniteCacheEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.IgniteComputeEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.IgniteEventsEndpointBuilderFactory,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 8fb5dded260..12c45706c22 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -7407,53 +7407,6 @@ public class StaticEndpointBuilders {
String path) {
return org.apache.camel.builder.endpoint.dsl.IOTAEndpointBuilderFactory.endpointBuilder(componentName, path);
}
- /**
- * IPFS (camel-ipfs)
- * Access the Interplanetary File System (IPFS).
- *
- * Category: file,ipfs
- * Since: 2.23
- * Maven coordinates: org.apache.camel:camel-ipfs
- *
- * Syntax: <code>ipfs:ipfsCmd</code>
- *
- * Path parameter: ipfsCmd (required)
- * The ipfs command
- * There are 4 enums and the value can be one of: add, cat, get, version
- *
- * @param path ipfsCmd
- * @return the dsl builder
- */
- @Deprecated
- public static org.apache.camel.builder.endpoint.dsl.IPFSEndpointBuilderFactory.IPFSEndpointBuilder ipfs(
- String path) {
- return org.apache.camel.builder.endpoint.dsl.IPFSEndpointBuilderFactory.endpointBuilder("ipfs", path);
- }
- /**
- * IPFS (camel-ipfs)
- * Access the Interplanetary File System (IPFS).
- *
- * Category: file,ipfs
- * Since: 2.23
- * Maven coordinates: org.apache.camel:camel-ipfs
- *
- * Syntax: <code>ipfs:ipfsCmd</code>
- *
- * Path parameter: ipfsCmd (required)
- * The ipfs command
- * There are 4 enums and the value can be one of: add, cat, get, version
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path ipfsCmd
- * @return the dsl builder
- */
- @Deprecated
- public static org.apache.camel.builder.endpoint.dsl.IPFSEndpointBuilderFactory.IPFSEndpointBuilder ipfs(
- String componentName,
- String path) {
- return org.apache.camel.builder.endpoint.dsl.IPFSEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
/**
* IRC (camel-irc)
* Send and receive messages to/from and IRC chat.
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/IPFSEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/IPFSEndpointBuilderFactory.java
deleted file mode 100644
index 47893cb93ca..00000000000
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/IPFSEndpointBuilderFactory.java
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
- * 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.builder.endpoint.dsl;
-
-import java.util.*;
-import java.util.concurrent.*;
-import java.util.function.*;
-import java.util.stream.*;
-import javax.annotation.processing.Generated;
-import org.apache.camel.builder.EndpointConsumerBuilder;
-import org.apache.camel.builder.EndpointProducerBuilder;
-import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
-
-/**
- * Access the Interplanetary File System (IPFS).
- *
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
-public interface IPFSEndpointBuilderFactory {
-
-
- /**
- * Builder for endpoint for the IPFS component.
- */
- public interface IPFSEndpointBuilder extends EndpointProducerBuilder {
- default AdvancedIPFSEndpointBuilder advanced() {
- return (AdvancedIPFSEndpointBuilder) this;
- }
- /**
- * The ipfs output directory.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param outdir the value to set
- * @return the dsl builder
- */
- default IPFSEndpointBuilder outdir(String outdir) {
- doSetProperty("outdir", outdir);
- return this;
- }
- }
-
- /**
- * Advanced builder for endpoint for the IPFS component.
- */
- public interface AdvancedIPFSEndpointBuilder
- extends
- EndpointProducerBuilder {
- default IPFSEndpointBuilder basic() {
- return (IPFSEndpointBuilder) this;
- }
- /**
- * Whether the producer should be started lazy (on the first message).
- * By starting lazy you can use this to allow CamelContext and routes to
- * startup in situations where a producer may otherwise fail during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer (advanced)
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default AdvancedIPFSEndpointBuilder lazyStartProducer(
- boolean lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- /**
- * Whether the producer should be started lazy (on the first message).
- * By starting lazy you can use this to allow CamelContext and routes to
- * startup in situations where a producer may otherwise fail during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option will be converted to a <code>boolean</code>
- * type.
- *
- * Default: false
- * Group: producer (advanced)
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default AdvancedIPFSEndpointBuilder lazyStartProducer(
- String lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- }
-
- public interface IPFSBuilders {
- /**
- * IPFS (camel-ipfs)
- * Access the Interplanetary File System (IPFS).
- *
- * Category: file,ipfs
- * Since: 2.23
- * Maven coordinates: org.apache.camel:camel-ipfs
- *
- * Syntax: <code>ipfs:ipfsCmd</code>
- *
- * Path parameter: ipfsCmd (required)
- * The ipfs command
- * There are 4 enums and the value can be one of: add, cat, get, version
- *
- * @param path ipfsCmd
- * @return the dsl builder
- */
- @Deprecated
- default IPFSEndpointBuilder ipfs(String path) {
- return IPFSEndpointBuilderFactory.endpointBuilder("ipfs", path);
- }
- /**
- * IPFS (camel-ipfs)
- * Access the Interplanetary File System (IPFS).
- *
- * Category: file,ipfs
- * Since: 2.23
- * Maven coordinates: org.apache.camel:camel-ipfs
- *
- * Syntax: <code>ipfs:ipfsCmd</code>
- *
- * Path parameter: ipfsCmd (required)
- * The ipfs command
- * There are 4 enums and the value can be one of: add, cat, get, version
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path ipfsCmd
- * @return the dsl builder
- */
- @Deprecated
- default IPFSEndpointBuilder ipfs(String componentName, String path) {
- return IPFSEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- }
- @Deprecated
- static IPFSEndpointBuilder endpointBuilder(String componentName, String path) {
- class IPFSEndpointBuilderImpl extends AbstractEndpointBuilder implements IPFSEndpointBuilder, AdvancedIPFSEndpointBuilder {
- public IPFSEndpointBuilderImpl(String path) {
- super(componentName, path);
- }
- }
- return new IPFSEndpointBuilderImpl(path);
- }
-}
\ No newline at end of file
diff --git a/parent/pom.xml b/parent/pom.xml
index da62443c3ed..f3953995a36 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -1517,11 +1517,6 @@
<artifactId>camel-iota</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-ipfs</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-irc</artifactId>
diff --git a/pom.xml b/pom.xml
index 93af6723161..e43a305fab5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -171,7 +171,7 @@
<enabled>true</enabled>
</releases>
</repository>
- <!-- camel-ipfs, camel-hyperledger-aries, camel-weka -->
+ <!-- camel-hyperledger-aries, camel-weka -->
<repository>
<id>jboss.thirdparty</id>
<name>JBoss Thirdparty Repository</name>