This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 2c538511af7f Removal of json-patch component
2c538511af7f is described below
commit 2c538511af7fb84faa7b12f6df6a72be650ba8ea
Author: Aurélien Pupier <[email protected]>
AuthorDate: Thu Aug 27 02:54:31 2026 +0200
Removal of json-patch component
The `camel-json-patch` was deprecated in 4.19. The library it uses is
not actively maintained and this module does not work with Jackson 3.
Signed-off-by: Aurélien Pupier <[email protected]>
---
bom/camel-bom/pom.xml | 5 -
catalog/camel-allcomponents/pom.xml | 5 -
.../org/apache/camel/catalog/components.properties | 1 -
.../camel/catalog/components/json-patch.json | 42 ---
.../org/apache/camel/catalog/docs.properties | 1 -
.../camel/catalog/docs/json-patch-component.adoc | 48 ----
components/camel-json-patch/pom.xml | 66 -----
.../jsonpatch/JsonPatchComponentConfigurer.java | 69 -----
.../jsonpatch/JsonPatchEndpointConfigurer.java | 69 -----
.../jsonpatch/JsonPatchEndpointUriFactory.java | 81 ------
.../camel/component/jsonpatch/json-patch.json | 42 ---
.../services/org/apache/camel/component.properties | 7 -
.../services/org/apache/camel/component/json-patch | 2 -
.../apache/camel/configurer/json-patch-component | 2 -
.../apache/camel/configurer/json-patch-endpoint | 2 -
.../apache/camel/urifactory/json-patch-endpoint | 2 -
.../src/main/docs/json-patch-component.adoc | 48 ----
.../component/jsonpatch/JsonPatchComponent.java | 67 -----
.../component/jsonpatch/JsonPatchConstants.java | 28 --
.../component/jsonpatch/JsonPatchEndpoint.java | 79 -----
.../component/jsonpatch/JsonPatchProducer.java | 59 ----
.../jsonpatch/JsonPatchComponentTest.java | 62 ----
.../component/jsonpatch/JsonPatchRefTest.java | 47 ---
.../src/test/resources/log4j2.properties | 29 --
.../apache/camel/component/jsonpatch/patch.json | 1 -
.../camel/component/jsonpatch/patch_error.json | 1 -
components/pom.xml | 1 -
.../org/apache/camel/main/components.properties | 1 -
coverage/pom.xml | 5 -
.../modules/ROOT/examples/json/json-patch.json | 1 -
docs/components/modules/ROOT/nav.adoc | 1 -
.../modules/ROOT/pages/json-patch-component.adoc | 1 -
.../ROOT/pages/camel-4x-upgrade-guide-4_23.adoc | 8 +-
.../component/ComponentsBuilderFactory.java | 13 -
.../dsl/JsonPatchComponentBuilderFactory.java | 160 -----------
.../builder/endpoint/EndpointBuilderFactory.java | 1 -
.../camel/builder/endpoint/EndpointBuilders.java | 1 -
.../builder/endpoint/EndpointHeaderBuilders.java | 14 -
.../builder/endpoint/StaticEndpointBuilders.java | 54 ----
.../dsl/JsonPatchEndpointBuilderFactory.java | 317 ---------------------
.../camel-component-known-dependencies.properties | 1 -
parent/pom.xml | 6 -
42 files changed, 6 insertions(+), 1444 deletions(-)
diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index 7d4d3925b845..f9d036e76ab4 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1462,11 +1462,6 @@
<artifactId>camel-jslt</artifactId>
<version>4.23.0-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-json-patch</artifactId>
- <version>4.23.0-SNAPSHOT</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-json-validator</artifactId>
diff --git a/catalog/camel-allcomponents/pom.xml
b/catalog/camel-allcomponents/pom.xml
index 6c2055c8d994..f43ee1be030f 100644
--- a/catalog/camel-allcomponents/pom.xml
+++ b/catalog/camel-allcomponents/pom.xml
@@ -1277,11 +1277,6 @@
<artifactId>camel-jslt</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-json-patch</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-json-validator</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 afd249c97f71..02b4c2ffe188 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
@@ -213,7 +213,6 @@ jolt
jooq
jpa
jslt
-json-patch
json-validator
jsonata
jt400
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
deleted file mode 100644
index 7586d28a6410..000000000000
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "component": {
- "kind": "component",
- "name": "json-patch",
- "title": "JsonPatch",
- "description": "Transforms JSON using JSON patch (RFC 6902).",
- "deprecated": true,
- "firstVersion": "3.12.0",
- "label": "transformation",
- "javaType": "org.apache.camel.component.jsonpatch.JsonPatchComponent",
- "supportLevel": "Stable",
- "groupId": "org.apache.camel",
- "artifactId": "camel-json-patch",
- "version": "4.23.0-SNAPSHOT",
- "scheme": "json-patch",
- "extendsScheme": "",
- "syntax": "json-patch:resourceUri",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": true,
- "lenientProperties": false,
- "browsable": false,
- "remote": false
- },
- "componentProperties": {
- "allowTemplateFromHeader": { "index": 0, "kind": "property",
"displayName": "Allow Template From Header", "group": "producer", "label": "",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether to allow to use resource template from header or not
(default false). Enabling this allows to specify dynamic templates via message
header. However this can be seen as a potential se [...]
- "contentCache": { "index": 1, "kind": "property", "displayName": "Content
Cache", "group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "description": "Sets whether to use resource
content cache or not" },
- "lazyStartProducer": { "index": 2, "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 [...]
- "autowiredEnabled": { "index": 3, "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 t [...]
- },
- "headers": {
- "CamelJsonPatchResourceUri": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "The resource URI", "constantName":
"org.apache.camel.component.jsonpatch.JsonPatchConstants#JSON_PATCH_RESOURCE_URI"
}
- },
- "properties": {
- "resourceUri": { "index": 0, "kind": "path", "displayName": "Resource
Uri", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "supportFileReference": true,
"description": "Path to the resource. You can prefix with: classpath, file,
http, ref, or bean. classpath, file and http loads the resource using these
protocols (classpath is default). ref will look [...]
- "allowContextMapAll": { "index": 1, "kind": "parameter", "displayName":
"Allow Context Map All", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Sets whether the
context map should allow access to all details. By default only the message
body and headers can be accessed. This option can be enabled for full access to
the current Exchange and C [...]
- "allowTemplateFromHeader": { "index": 2, "kind": "parameter",
"displayName": "Allow Template From Header", "group": "producer", "label": "",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether to allow to use resource template from header or not
(default false). Enabling this allows to specify dynamic templates via message
header. However this can be seen as a potential s [...]
- "contentCache": { "index": 3, "kind": "parameter", "displayName": "Content
Cache", "group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "description": "Sets whether to use resource
content cache or not" },
- "lazyStartProducer": { "index": 4, "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 produc [...]
- }
-}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs.properties
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs.properties
index 18a36ba4e013..5debe80d3b65 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs.properties
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs.properties
@@ -319,7 +319,6 @@ jpa-component
jq-language
js-language
jslt-component
-json-patch-component
json-validator-component
jsonApi-dataformat
jsonata-component
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/json-patch-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/json-patch-component.adoc
deleted file mode 100644
index 918078db034d..000000000000
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/json-patch-component.adoc
+++ /dev/null
@@ -1,48 +0,0 @@
-= JsonPatch Component (deprecated)
-:doctitle: JsonPatch
-:shortname: json-patch
-:artifactid: camel-json-patch
-:description: Transforms JSON using JSON patch (RFC 6902).
-:since: 3.12
-:supportlevel: Stable-deprecated
-:deprecated: *deprecated*
-:tabs-sync-option:
-:component-header: Only producer is supported
-
-*Since Camel {since}*
-
-*{component-header}*
-
-The JsonPatch component allows you to process JSON messages using an
-https://github.com/java-json-tools/json-patch[JSON Patch]
(https://datatracker.ietf.org/doc/html/rfc6902[RFC 6902]).
-
-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-json-patch</artifactId>
- <version>x.x.x</version>
- <!-- use the same version as your Camel core version -->
-</dependency>
-------------------------------------------------------------
-
-
-== URI format
-
------------------------
-json-patch:resourceUri[?options]
------------------------
-
-Where *specName* is the classpath-local URI of the specification to
-invoke; or the complete URL of the remote specification
-(eg: \file://folder/myfile.vm).
-
-
-// component options: START
-include::partial$component-configure-options.adoc[]
-include::partial$component-endpoint-options.adoc[]
-include::partial$component-endpoint-headers.adoc[]
-// component options: END
diff --git a/components/camel-json-patch/pom.xml
b/components/camel-json-patch/pom.xml
deleted file mode 100644
index 33f89e0342f7..000000000000
--- a/components/camel-json-patch/pom.xml
+++ /dev/null
@@ -1,66 +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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel</groupId>
- <artifactId>components</artifactId>
- <version>4.23.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-json-patch</artifactId>
- <packaging>jar</packaging>
- <name>Camel :: JsonPatch (deprecated)</name>
- <description>Camel JsonPatch Component</description>
-
- <dependencies>
-
- <dependency>
- <groupId>com.github.java-json-tools</groupId>
- <artifactId>json-patch</artifactId>
- <version>${json-patch-version}</version>
- <exclusions>
- <exclusion>
- <groupId>com.google.code.findbugs</groupId>
- <artifactId>jsr305</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-support</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test-junit6</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter</artifactId>
- <scope>test</scope>
- </dependency>
-
- </dependencies>
-
-</project>
diff --git
a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchComponentConfigurer.java
b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchComponentConfigurer.java
deleted file mode 100644
index bd42525728ab..000000000000
---
a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchComponentConfigurer.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.jsonpatch;
-
-import javax.annotation.processing.Generated;
-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!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
-@SuppressWarnings("unchecked")
-public class JsonPatchComponentConfigurer extends PropertyConfigurerSupport
implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String
name, Object value, boolean ignoreCase) {
- JsonPatchComponent target = (JsonPatchComponent) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "allowtemplatefromheader":
- case "allowTemplateFromHeader":
target.setAllowTemplateFromHeader(property(camelContext, boolean.class,
value)); return true;
- case "autowiredenabled":
- case "autowiredEnabled":
target.setAutowiredEnabled(property(camelContext, boolean.class, value));
return true;
- case "contentcache":
- case "contentCache": target.setContentCache(property(camelContext,
boolean.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 "allowtemplatefromheader":
- case "allowTemplateFromHeader": return boolean.class;
- case "autowiredenabled":
- case "autowiredEnabled": return boolean.class;
- case "contentcache":
- case "contentCache": return boolean.class;
- case "lazystartproducer":
- case "lazyStartProducer": return boolean.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- JsonPatchComponent target = (JsonPatchComponent) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "allowtemplatefromheader":
- case "allowTemplateFromHeader": return
target.isAllowTemplateFromHeader();
- case "autowiredenabled":
- case "autowiredEnabled": return target.isAutowiredEnabled();
- case "contentcache":
- case "contentCache": return target.isContentCache();
- case "lazystartproducer":
- case "lazyStartProducer": return target.isLazyStartProducer();
- default: return null;
- }
- }
-}
-
diff --git
a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointConfigurer.java
b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointConfigurer.java
deleted file mode 100644
index 48f408820342..000000000000
---
a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointConfigurer.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.jsonpatch;
-
-import javax.annotation.processing.Generated;
-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!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
-@SuppressWarnings("unchecked")
-public class JsonPatchEndpointConfigurer extends PropertyConfigurerSupport
implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String
name, Object value, boolean ignoreCase) {
- JsonPatchEndpoint target = (JsonPatchEndpoint) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "allowcontextmapall":
- case "allowContextMapAll":
target.setAllowContextMapAll(property(camelContext, boolean.class, value));
return true;
- case "allowtemplatefromheader":
- case "allowTemplateFromHeader":
target.setAllowTemplateFromHeader(property(camelContext, boolean.class,
value)); return true;
- case "contentcache":
- case "contentCache": target.setContentCache(property(camelContext,
boolean.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 "allowcontextmapall":
- case "allowContextMapAll": return boolean.class;
- case "allowtemplatefromheader":
- case "allowTemplateFromHeader": return boolean.class;
- case "contentcache":
- case "contentCache": return boolean.class;
- case "lazystartproducer":
- case "lazyStartProducer": return boolean.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- JsonPatchEndpoint target = (JsonPatchEndpoint) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "allowcontextmapall":
- case "allowContextMapAll": return target.isAllowContextMapAll();
- case "allowtemplatefromheader":
- case "allowTemplateFromHeader": return
target.isAllowTemplateFromHeader();
- case "contentcache":
- case "contentCache": return target.isContentCache();
- case "lazystartproducer":
- case "lazyStartProducer": return target.isLazyStartProducer();
- default: return null;
- }
- }
-}
-
diff --git
a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointUriFactory.java
b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointUriFactory.java
deleted file mode 100644
index 5743cc9c9a81..000000000000
---
a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointUriFactory.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.jsonpatch;
-
-import javax.annotation.processing.Generated;
-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!
- */
-@Generated("org.apache.camel.maven.packaging.GenerateEndpointUriFactoryMojo")
-public class JsonPatchEndpointUriFactory extends
org.apache.camel.support.component.EndpointUriFactorySupport implements
EndpointUriFactory {
-
- private static final String BASE = ":resourceUri";
-
- private static final Set<String> PROPERTY_NAMES;
- private static final Set<String> SECRET_PROPERTY_NAMES;
- private static final Set<String> ENDPOINT_IDENTITY_PROPERTY_NAMES;
- private static final Map<String, String> MULTI_VALUE_PREFIXES;
- static {
- Set<String> props = new HashSet<>(5);
- props.add("allowContextMapAll");
- props.add("allowTemplateFromHeader");
- props.add("contentCache");
- props.add("lazyStartProducer");
- props.add("resourceUri");
- PROPERTY_NAMES = Collections.unmodifiableSet(props);
- SECRET_PROPERTY_NAMES = Collections.emptySet();
- ENDPOINT_IDENTITY_PROPERTY_NAMES = Collections.emptySet();
- MULTI_VALUE_PREFIXES = Collections.emptyMap();
- }
-
- @Override
- public boolean isEnabled(String scheme) {
- return "json-patch".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, "resourceUri", 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> endpointIdentityPropertyNames() {
- return ENDPOINT_IDENTITY_PROPERTY_NAMES;
- }
-
- @Override
- public Map<String, String> multiValuePrefixes() {
- return MULTI_VALUE_PREFIXES;
- }
-
- @Override
- public boolean isLenientProperties() {
- return false;
- }
-}
-
diff --git
a/components/camel-json-patch/src/generated/resources/META-INF/org/apache/camel/component/jsonpatch/json-patch.json
b/components/camel-json-patch/src/generated/resources/META-INF/org/apache/camel/component/jsonpatch/json-patch.json
deleted file mode 100644
index 7586d28a6410..000000000000
---
a/components/camel-json-patch/src/generated/resources/META-INF/org/apache/camel/component/jsonpatch/json-patch.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "component": {
- "kind": "component",
- "name": "json-patch",
- "title": "JsonPatch",
- "description": "Transforms JSON using JSON patch (RFC 6902).",
- "deprecated": true,
- "firstVersion": "3.12.0",
- "label": "transformation",
- "javaType": "org.apache.camel.component.jsonpatch.JsonPatchComponent",
- "supportLevel": "Stable",
- "groupId": "org.apache.camel",
- "artifactId": "camel-json-patch",
- "version": "4.23.0-SNAPSHOT",
- "scheme": "json-patch",
- "extendsScheme": "",
- "syntax": "json-patch:resourceUri",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": true,
- "lenientProperties": false,
- "browsable": false,
- "remote": false
- },
- "componentProperties": {
- "allowTemplateFromHeader": { "index": 0, "kind": "property",
"displayName": "Allow Template From Header", "group": "producer", "label": "",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether to allow to use resource template from header or not
(default false). Enabling this allows to specify dynamic templates via message
header. However this can be seen as a potential se [...]
- "contentCache": { "index": 1, "kind": "property", "displayName": "Content
Cache", "group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "description": "Sets whether to use resource
content cache or not" },
- "lazyStartProducer": { "index": 2, "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 [...]
- "autowiredEnabled": { "index": 3, "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 t [...]
- },
- "headers": {
- "CamelJsonPatchResourceUri": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "The resource URI", "constantName":
"org.apache.camel.component.jsonpatch.JsonPatchConstants#JSON_PATCH_RESOURCE_URI"
}
- },
- "properties": {
- "resourceUri": { "index": 0, "kind": "path", "displayName": "Resource
Uri", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "supportFileReference": true,
"description": "Path to the resource. You can prefix with: classpath, file,
http, ref, or bean. classpath, file and http loads the resource using these
protocols (classpath is default). ref will look [...]
- "allowContextMapAll": { "index": 1, "kind": "parameter", "displayName":
"Allow Context Map All", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Sets whether the
context map should allow access to all details. By default only the message
body and headers can be accessed. This option can be enabled for full access to
the current Exchange and C [...]
- "allowTemplateFromHeader": { "index": 2, "kind": "parameter",
"displayName": "Allow Template From Header", "group": "producer", "label": "",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether to allow to use resource template from header or not
(default false). Enabling this allows to specify dynamic templates via message
header. However this can be seen as a potential s [...]
- "contentCache": { "index": 3, "kind": "parameter", "displayName": "Content
Cache", "group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "description": "Sets whether to use resource
content cache or not" },
- "lazyStartProducer": { "index": 4, "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 produc [...]
- }
-}
diff --git
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component.properties
b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component.properties
deleted file mode 100644
index fd10b3fbba38..000000000000
---
a/components/camel-json-patch/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=json-patch
-groupId=org.apache.camel
-artifactId=camel-json-patch
-version=4.23.0-SNAPSHOT
-projectName=Camel :: JsonPatch (deprecated)
-projectDescription=Camel JsonPatch Component
diff --git
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component/json-patch
b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component/json-patch
deleted file mode 100644
index 0a83be5b8946..000000000000
---
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component/json-patch
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.jsonpatch.JsonPatchComponent
diff --git
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-component
b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-component
deleted file mode 100644
index 283807c63290..000000000000
---
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-component
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.jsonpatch.JsonPatchComponentConfigurer
diff --git
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-endpoint
b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-endpoint
deleted file mode 100644
index 45eb0a86d764..000000000000
---
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-endpoint
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.jsonpatch.JsonPatchEndpointConfigurer
diff --git
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/urifactory/json-patch-endpoint
b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/urifactory/json-patch-endpoint
deleted file mode 100644
index 5b80a5cb55b2..000000000000
---
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/urifactory/json-patch-endpoint
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.jsonpatch.JsonPatchEndpointUriFactory
diff --git
a/components/camel-json-patch/src/main/docs/json-patch-component.adoc
b/components/camel-json-patch/src/main/docs/json-patch-component.adoc
deleted file mode 100644
index 918078db034d..000000000000
--- a/components/camel-json-patch/src/main/docs/json-patch-component.adoc
+++ /dev/null
@@ -1,48 +0,0 @@
-= JsonPatch Component (deprecated)
-:doctitle: JsonPatch
-:shortname: json-patch
-:artifactid: camel-json-patch
-:description: Transforms JSON using JSON patch (RFC 6902).
-:since: 3.12
-:supportlevel: Stable-deprecated
-:deprecated: *deprecated*
-:tabs-sync-option:
-:component-header: Only producer is supported
-
-*Since Camel {since}*
-
-*{component-header}*
-
-The JsonPatch component allows you to process JSON messages using an
-https://github.com/java-json-tools/json-patch[JSON Patch]
(https://datatracker.ietf.org/doc/html/rfc6902[RFC 6902]).
-
-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-json-patch</artifactId>
- <version>x.x.x</version>
- <!-- use the same version as your Camel core version -->
-</dependency>
-------------------------------------------------------------
-
-
-== URI format
-
------------------------
-json-patch:resourceUri[?options]
------------------------
-
-Where *specName* is the classpath-local URI of the specification to
-invoke; or the complete URL of the remote specification
-(eg: \file://folder/myfile.vm).
-
-
-// component options: START
-include::partial$component-configure-options.adoc[]
-include::partial$component-endpoint-options.adoc[]
-include::partial$component-endpoint-headers.adoc[]
-// component options: END
diff --git
a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchComponent.java
b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchComponent.java
deleted file mode 100644
index 71b8a4821cc3..000000000000
---
a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchComponent.java
+++ /dev/null
@@ -1,67 +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.jsonpatch;
-
-import java.util.Map;
-
-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("json-patch")
-public class JsonPatchComponent extends DefaultComponent {
-
- @Metadata(defaultValue = "true", description = "Sets whether to use
resource content cache or not")
- private boolean contentCache = true;
- @Metadata
- private boolean allowTemplateFromHeader;
-
- protected Endpoint createEndpoint(String uri, String remaining,
Map<String, Object> parameters) throws Exception {
- JsonPatchEndpoint endpoint = new JsonPatchEndpoint(uri, this,
remaining);
- endpoint.setContentCache(contentCache);
- endpoint.setAllowTemplateFromHeader(allowTemplateFromHeader);
- setProperties(endpoint, parameters);
- return endpoint;
- }
-
- public boolean isContentCache() {
- return contentCache;
- }
-
- /**
- * Sets whether to use resource content cache or not
- */
- public void setContentCache(boolean contentCache) {
- this.contentCache = contentCache;
- }
-
- public boolean isAllowTemplateFromHeader() {
- return allowTemplateFromHeader;
- }
-
- /**
- * Whether to allow to use resource template from header or not (default
false).
- *
- * Enabling this allows to specify dynamic templates via message header.
However this can be seen as a potential
- * security vulnerability if the header is coming from a malicious user,
so use this with care.
- */
- public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader) {
- this.allowTemplateFromHeader = allowTemplateFromHeader;
- }
-
-}
diff --git
a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchConstants.java
b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchConstants.java
deleted file mode 100644
index 7d3894d49ffd..000000000000
---
a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchConstants.java
+++ /dev/null
@@ -1,28 +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.jsonpatch;
-
-import org.apache.camel.spi.Metadata;
-
-public final class JsonPatchConstants {
-
- @Metadata(label = "producer", description = "The resource URI", javaType =
"String")
- public static final String JSON_PATCH_RESOURCE_URI =
"CamelJsonPatchResourceUri";
-
- private JsonPatchConstants() {
- }
-}
diff --git
a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchEndpoint.java
b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchEndpoint.java
deleted file mode 100644
index e0c078253459..000000000000
---
a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchEndpoint.java
+++ /dev/null
@@ -1,79 +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.jsonpatch;
-
-import org.apache.camel.Category;
-import org.apache.camel.Consumer;
-import org.apache.camel.ExchangePattern;
-import org.apache.camel.Processor;
-import org.apache.camel.Producer;
-import org.apache.camel.component.ResourceEndpoint;
-import org.apache.camel.spi.UriEndpoint;
-import org.apache.camel.spi.UriParam;
-
-/**
- * Transforms JSON using JSON patch (RFC 6902).
- */
-@UriEndpoint(firstVersion = "3.12.0", scheme = "json-patch", title =
"JsonPatch", syntax = "json-patch:resourceUri",
- remote = false, producerOnly = true,
- category = { Category.TRANSFORMATION }, headersClass =
JsonPatchConstants.class)
-public class JsonPatchEndpoint extends ResourceEndpoint {
-
- @UriParam
- private boolean allowTemplateFromHeader;
-
- public JsonPatchEndpoint() {
- }
-
- public JsonPatchEndpoint(String uri, JsonPatchComponent component, String
resourceUri) {
- super(uri, component, resourceUri);
- }
-
- @Override
- public boolean isRemote() {
- return false;
- }
-
- @Override
- public ExchangePattern getExchangePattern() {
- return ExchangePattern.InOut;
- }
-
- @Override
- public Producer createProducer() {
- return new JsonPatchProducer(this);
- }
-
- @Override
- public Consumer createConsumer(Processor processor) throws
UnsupportedOperationException {
- throw new UnsupportedOperationException("You cannot consume from this
endpoint");
- }
-
- public boolean isAllowTemplateFromHeader() {
- return allowTemplateFromHeader;
- }
-
- /**
- * Whether to allow to use resource template from header or not (default
false).
- *
- * Enabling this allows to specify dynamic templates via message header.
However this can be seen as a potential
- * security vulnerability if the header is coming from a malicious user,
so use this with care.
- */
- public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader) {
- this.allowTemplateFromHeader = allowTemplateFromHeader;
- }
-}
diff --git
a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchProducer.java
b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchProducer.java
deleted file mode 100644
index 618d85434173..000000000000
---
a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchProducer.java
+++ /dev/null
@@ -1,59 +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.jsonpatch;
-
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.github.fge.jsonpatch.JsonPatch;
-import org.apache.camel.Exchange;
-import org.apache.camel.support.DefaultProducer;
-import org.apache.camel.support.ExchangeHelper;
-import org.apache.camel.support.ResourceHelper;
-
-public class JsonPatchProducer extends DefaultProducer {
- private final JsonPatchEndpoint endpoint;
- private final ObjectMapper objectMapper;
-
- public JsonPatchProducer(JsonPatchEndpoint endpoint) {
- this(endpoint, new ObjectMapper());
- }
-
- public JsonPatchProducer(JsonPatchEndpoint endpoint, ObjectMapper
objectMapper) {
- super(endpoint);
- this.endpoint = endpoint;
- this.objectMapper = objectMapper;
- }
-
- public void process(Exchange exchange) throws Exception {
- String resourceUri = null;
- if (endpoint.isAllowTemplateFromHeader()) {
- resourceUri =
exchange.getIn().getHeader(JsonPatchConstants.JSON_PATCH_RESOURCE_URI,
String.class);
- }
- if (resourceUri == null || resourceUri.isEmpty()) {
- resourceUri = endpoint.getResourceUri();
- }
-
- final JsonPatch patch = objectMapper.readValue(
-
ResourceHelper.resolveMandatoryResourceAsInputStream(exchange.getContext(),
resourceUri),
- JsonPatch.class);
- JsonNode input =
objectMapper.readTree(exchange.getIn().getBody(String.class));
- JsonNode result = patch.apply(input);
-
- ExchangeHelper.setInOutBodyPatternAware(exchange, result.toString());
- }
-
-}
diff --git
a/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
b/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
deleted file mode 100644
index 042bd023c924..000000000000
---
a/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
+++ /dev/null
@@ -1,62 +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.jsonpatch;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.test.junit6.CamelTestSupport;
-import org.apache.camel.test.junit6.TestSupport;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-public class JsonPatchComponentTest extends CamelTestSupport {
-
- @Test
- public void testCamelJsonPatch() {
- MockEndpoint mock = getMockEndpoint("mock:result");
- TestSupport.sendBody(template, "direct:foo", "{ \"a\": \"b\" }");
- assertEquals(1, mock.getReceivedExchanges().size());
- assertEquals("{\"c\":\"b\"}",
mock.getReceivedExchanges().get(0).getIn().getBody(String.class));
- }
-
- @Test
- public void testSendToDeadLetterChannelIfPatchError() {
- MockEndpoint mock = getMockEndpoint("mock:errors");
- String source = "{ \"a\": \"b\" }";
- TestSupport.sendBody(template, "direct:patch_error", source);
- assertEquals(1, mock.getReceivedExchanges().size());
- assertEquals(source,
mock.getReceivedExchanges().get(0).getIn().getBody(String.class));
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
- from("direct:foo")
-
.to("json-patch:org/apache/camel/component/jsonpatch/patch.json")
- .to("mock:result");
-
- from("direct:patch_error")
- .errorHandler(deadLetterChannel("mock:errors"))
-
.to("json-patch:org/apache/camel/component/jsonpatch/patch_error.json");
-
- }
- };
- }
-
-}
diff --git
a/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchRefTest.java
b/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchRefTest.java
deleted file mode 100644
index 7141ae67d95d..000000000000
---
a/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchRefTest.java
+++ /dev/null
@@ -1,47 +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.jsonpatch;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.test.junit6.CamelTestSupport;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-public class JsonPatchRefTest extends CamelTestSupport {
-
- private static final String TEMP = "[ { \"op\": \"move\", \"from\":
\"/a\", \"path\": \"/c\" } ]";
-
- @Test
- public void testRef() {
- String out = template.requestBody("direct:a", "{ \"a\": \"b\" }",
String.class);
- assertEquals("{\"c\":\"b\"}", out);
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
- context.getRegistry().bind("mytemp", TEMP);
-
- from("direct:a").to(
- "json-patch:ref:mytemp");
- }
- };
- }
-
-}
diff --git a/components/camel-json-patch/src/test/resources/log4j2.properties
b/components/camel-json-patch/src/test/resources/log4j2.properties
deleted file mode 100644
index f051c57b2ee9..000000000000
--- a/components/camel-json-patch/src/test/resources/log4j2.properties
+++ /dev/null
@@ -1,29 +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.
-## ---------------------------------------------------------------------------
-
-appender.file.type = File
-appender.file.name = file
-appender.file.fileName = target/camel-json-path-test.log
-appender.file.layout.type = PatternLayout
-appender.file.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
-appender.out.type = Console
-appender.out.name = out
-appender.out.layout.type = PatternLayout
-appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
-rootLogger.level = INFO
-rootLogger.appenderRef.file.ref = file
-#rootLogger.appenderRef.out.ref = out
diff --git
a/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch.json
b/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch.json
deleted file mode 100644
index 1d8d7c2bfd24..000000000000
---
a/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch.json
+++ /dev/null
@@ -1 +0,0 @@
-[ { "op": "move", "from": "/a", "path": "/c" } ]
\ No newline at end of file
diff --git
a/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch_error.json
b/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch_error.json
deleted file mode 100644
index 77773b0349d9..000000000000
---
a/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch_error.json
+++ /dev/null
@@ -1 +0,0 @@
-[ { "op": "123", "from": "/c", "path": "/a" } ]
\ No newline at end of file
diff --git a/components/pom.xml b/components/pom.xml
index 647eeeb32537..3cfd1bada06e 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -203,7 +203,6 @@
<module>camel-jsonb</module>
<module>camel-jsonpath</module>
<module>camel-jsoup</module>
- <module>camel-json-patch</module>
<module>camel-jt400</module>
<module>camel-jta</module>
<module>camel-jte</module>
diff --git
a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
index afd249c97f71..02b4c2ffe188 100644
---
a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
+++
b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
@@ -213,7 +213,6 @@ jolt
jooq
jpa
jslt
-json-patch
json-validator
jsonata
jt400
diff --git a/coverage/pom.xml b/coverage/pom.xml
index 1ce7eee2d7a4..6a26cce51cde 100644
--- a/coverage/pom.xml
+++ b/coverage/pom.xml
@@ -1327,11 +1327,6 @@
<artifactId>camel-jslt</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-json-patch</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-json-validator</artifactId>
diff --git a/docs/components/modules/ROOT/examples/json/json-patch.json
b/docs/components/modules/ROOT/examples/json/json-patch.json
deleted file mode 120000
index b91a1e71f808..000000000000
--- a/docs/components/modules/ROOT/examples/json/json-patch.json
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../../components/camel-json-patch/src/generated/resources/META-INF/org/apache/camel/component/jsonpatch/json-patch.json
\ No newline at end of file
diff --git a/docs/components/modules/ROOT/nav.adoc
b/docs/components/modules/ROOT/nav.adoc
index 7187d0d0206c..540a29fa9dd9 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -243,7 +243,6 @@
** xref:jslt-component.adoc[JSLT]
** xref:json-validator-component.adoc[JSON Schema Validator]
** xref:jsonata-component.adoc[JSONata]
-** xref:json-patch-component.adoc[JsonPatch]
** xref:jt400-component.adoc[JT400]
** xref:jte-component.adoc[JTE]
** xref:kafka-component.adoc[Kafka]
diff --git a/docs/components/modules/ROOT/pages/json-patch-component.adoc
b/docs/components/modules/ROOT/pages/json-patch-component.adoc
deleted file mode 120000
index 948b9610f4f2..000000000000
--- a/docs/components/modules/ROOT/pages/json-patch-component.adoc
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../components/camel-json-patch/src/main/docs/json-patch-component.adoc
\ No newline at end of file
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc
index bfcb9eb2bb86..749a376d6780 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc
@@ -31,17 +31,21 @@ project — the core implementation now provides equivalent
or better performanc
`camel-iec60870` was deprecated in 4.21. The library used to implement it
NeoScada is no more maintained since
2021. There are no alternatives in Java with compatible license.
-=== camel-ironmq
+==== camel-ironmq
The component camel-ironmq was deprecated in 4.21. The official library used
has been unmaintained since 2017
All the other client libraries (in other languages) are unmaintained since the
same amount of time.
The whole iron-io GitHub organization has almost no activity.
+==== camel-json-patch
+
+The `camel-json-patch` was deprecated in 4.19. The library it uses is not
actively maintained and this module does not work with Jackson 3.
+
==== camel-leveldb
`camel-leveldb` was deprecated in 4.18. `leveldb` library is no more
maintained and it exists several alternatives for file-based database nowadays.
-=== camel-reactive-executor-tomcat
+==== camel-reactive-executor-tomcat
The `camel-reactive-executor-tomcat` component has been deprecated in 4.22. It
is now removed.
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 9b0b6f53fdc4..84b51f9d4d45 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
@@ -2903,19 +2903,6 @@ public interface ComponentsBuilderFactory {
static JsltComponentBuilderFactory.JsltComponentBuilder jslt() {
return JsltComponentBuilderFactory.jslt();
}
- /**
- * JsonPatch (camel-json-patch)
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Category: transformation
- * Since: 3.12
- * Maven coordinates: org.apache.camel:camel-json-patch
- *
- * @return the dsl builder
- */
- static JsonPatchComponentBuilderFactory.JsonPatchComponentBuilder
jsonPatch() {
- return JsonPatchComponentBuilderFactory.jsonPatch();
- }
/**
* JSON Schema Validator (camel-json-validator)
* Validate JSON payloads using NetworkNT JSON Schema.
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
deleted file mode 100644
index febdd58b8803..000000000000
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-/*
- * 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.jsonpatch.JsonPatchComponent;
-
-/**
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
-public interface JsonPatchComponentBuilderFactory {
-
- /**
- * JsonPatch (camel-json-patch)
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Category: transformation
- * Since: 3.12
- * Maven coordinates: org.apache.camel:camel-json-patch
- *
- * @return the dsl builder
- */
- static JsonPatchComponentBuilder jsonPatch() {
- return new JsonPatchComponentBuilderImpl();
- }
-
- /**
- * Builder for the JsonPatch component.
- */
- interface JsonPatchComponentBuilder extends
ComponentBuilder<JsonPatchComponent> {
-
-
- /**
- * Whether to allow to use resource template from header or not
(default
- * false). Enabling this allows to specify dynamic templates via
message
- * header. However this can be seen as a potential security
- * vulnerability if the header is coming from a malicious user, so use
- * this with care.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param allowTemplateFromHeader the value to set
- * @return the dsl builder
- */
- default JsonPatchComponentBuilder allowTemplateFromHeader(boolean
allowTemplateFromHeader) {
- doSetProperty("allowTemplateFromHeader", allowTemplateFromHeader);
- return this;
- }
-
-
- /**
- * Sets whether to use resource content cache or not.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: producer
- *
- * @param contentCache the value to set
- * @return the dsl builder
- */
- default JsonPatchComponentBuilder contentCache(boolean contentCache) {
- doSetProperty("contentCache", contentCache);
- 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 JsonPatchComponentBuilder 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 JsonPatchComponentBuilder autowiredEnabled(boolean
autowiredEnabled) {
- doSetProperty("autowiredEnabled", autowiredEnabled);
- return this;
- }
- }
-
- class JsonPatchComponentBuilderImpl
- extends AbstractComponentBuilder<JsonPatchComponent>
- implements JsonPatchComponentBuilder {
- @Override
- protected JsonPatchComponent buildConcreteComponent() {
- return new JsonPatchComponent();
- }
- @Override
- protected boolean setPropertyOnComponent(
- Component component,
- String name,
- Object value) {
- switch (name) {
- case "allowTemplateFromHeader": ((JsonPatchComponent)
component).setAllowTemplateFromHeader((boolean) value); return true;
- case "contentCache": ((JsonPatchComponent)
component).setContentCache((boolean) value); return true;
- case "lazyStartProducer": ((JsonPatchComponent)
component).setLazyStartProducer((boolean) value); return true;
- case "autowiredEnabled": ((JsonPatchComponent)
component).setAutowiredEnabled((boolean) value); return true;
- default: return false;
- }
- }
- }
-}
\ No newline at end of file
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 d97c0985601c..ce0cbb408f1a 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
@@ -205,7 +205,6 @@ public interface EndpointBuilderFactory
org.apache.camel.builder.endpoint.dsl.JooqEndpointBuilderFactory.JooqBuilders,
org.apache.camel.builder.endpoint.dsl.JpaEndpointBuilderFactory.JpaBuilders,
org.apache.camel.builder.endpoint.dsl.JsltEndpointBuilderFactory.JsltBuilders,
-
org.apache.camel.builder.endpoint.dsl.JsonPatchEndpointBuilderFactory.JsonPatchBuilders,
org.apache.camel.builder.endpoint.dsl.JsonValidatorEndpointBuilderFactory.JsonValidatorBuilders,
org.apache.camel.builder.endpoint.dsl.JsonataEndpointBuilderFactory.JsonataBuilders,
org.apache.camel.builder.endpoint.dsl.Jt400EndpointBuilderFactory.Jt400Builders,
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 a08a5e96df88..b1bf976e6a14 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
@@ -202,7 +202,6 @@ public interface EndpointBuilders
org.apache.camel.builder.endpoint.dsl.JooqEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.JpaEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.JsltEndpointBuilderFactory,
-
org.apache.camel.builder.endpoint.dsl.JsonPatchEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.JsonValidatorEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.JsonataEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.Jt400EndpointBuilderFactory,
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 5b6f90c48d92..86db147fc11f 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -2242,20 +2242,6 @@ public class EndpointHeaderBuilders {
public static JsltEndpointBuilderFactory.JsltHeaderNameBuilder jslt() {
return JsltEndpointBuilderFactory.JsltHeaderNameBuilder.INSTANCE;
}
- /**
- * JsonPatch (camel-json-patch)
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Category: transformation
- * Since: 3.12
- * Maven coordinates: org.apache.camel:camel-json-patch
- *
- * @return the dsl builder for the headers' name.
- */
- @Deprecated
- public static JsonPatchEndpointBuilderFactory.JsonPatchHeaderNameBuilder
jsonPatch() {
- return
JsonPatchEndpointBuilderFactory.JsonPatchHeaderNameBuilder.INSTANCE;
- }
/**
* JT400 (camel-jt400)
* Exchanges messages with an IBM i system using data queues, message
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 eeeabc5a6bde..c33ba8385b23 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
@@ -9378,60 +9378,6 @@ public class StaticEndpointBuilders {
public static JsltEndpointBuilderFactory.JsltEndpointBuilder jslt(String
componentName, String path) {
return JsltEndpointBuilderFactory.endpointBuilder(componentName, path);
}
- /**
- * JsonPatch (camel-json-patch)
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Category: transformation
- * Since: 3.12
- * Maven coordinates: org.apache.camel:camel-json-patch
- *
- * Syntax: <code>json-patch:resourceUri</code>
- *
- * Path parameter: resourceUri (required)
- * Path to the resource. You can prefix with: classpath, file, http, ref,
or
- * bean. classpath, file and http loads the resource using these protocols
- * (classpath is default). ref will lookup the resource in the registry.
- * bean will call a method on a bean to be used as the resource. For bean
- * you can specify the method name after dot, eg bean:myBean.myMethod.
- * This option can also be loaded from an existing file, by prefixing with
- * file: or classpath: followed by the location of the file.
- *
- * @param path resourceUri
- * @return the dsl builder
- */
- @Deprecated
- public static JsonPatchEndpointBuilderFactory.JsonPatchEndpointBuilder
jsonPatch(String path) {
- return jsonPatch("json-patch", path);
- }
- /**
- * JsonPatch (camel-json-patch)
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Category: transformation
- * Since: 3.12
- * Maven coordinates: org.apache.camel:camel-json-patch
- *
- * Syntax: <code>json-patch:resourceUri</code>
- *
- * Path parameter: resourceUri (required)
- * Path to the resource. You can prefix with: classpath, file, http, ref,
or
- * bean. classpath, file and http loads the resource using these protocols
- * (classpath is default). ref will lookup the resource in the registry.
- * bean will call a method on a bean to be used as the resource. For bean
- * you can specify the method name after dot, eg bean:myBean.myMethod.
- * This option can also be loaded from an existing file, by prefixing with
- * file: or classpath: followed by the location of the file.
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path resourceUri
- * @return the dsl builder
- */
- @Deprecated
- public static JsonPatchEndpointBuilderFactory.JsonPatchEndpointBuilder
jsonPatch(String componentName, String path) {
- return JsonPatchEndpointBuilderFactory.endpointBuilder(componentName,
path);
- }
/**
* JSON Schema Validator (camel-json-validator)
* Validate JSON payloads using NetworkNT JSON Schema.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
deleted file mode 100644
index f0307f0453af..000000000000
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
+++ /dev/null
@@ -1,317 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-/*
- * 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;
-
-/**
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
-public interface JsonPatchEndpointBuilderFactory {
-
- /**
- * Builder for endpoint for the JsonPatch component.
- */
- public interface JsonPatchEndpointBuilder
- extends
- EndpointProducerBuilder {
- default AdvancedJsonPatchEndpointBuilder advanced() {
- return (AdvancedJsonPatchEndpointBuilder) this;
- }
-
- /**
- * Sets whether the context map should allow access to all details. By
- * default only the message body and headers can be accessed. This
- * option can be enabled for full access to the current Exchange and
- * CamelContext. Doing so impose a potential security risk as this
opens
- * access to the full power of CamelContext API.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param allowContextMapAll the value to set
- * @return the dsl builder
- */
- default JsonPatchEndpointBuilder allowContextMapAll(boolean
allowContextMapAll) {
- doSetProperty("allowContextMapAll", allowContextMapAll);
- return this;
- }
- /**
- * Sets whether the context map should allow access to all details. By
- * default only the message body and headers can be accessed. This
- * option can be enabled for full access to the current Exchange and
- * CamelContext. Doing so impose a potential security risk as this
opens
- * access to the full power of CamelContext API.
- *
- * The option will be converted to a <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param allowContextMapAll the value to set
- * @return the dsl builder
- */
- default JsonPatchEndpointBuilder allowContextMapAll(String
allowContextMapAll) {
- doSetProperty("allowContextMapAll", allowContextMapAll);
- return this;
- }
- /**
- * Whether to allow to use resource template from header or not
(default
- * false). Enabling this allows to specify dynamic templates via
message
- * header. However this can be seen as a potential security
- * vulnerability if the header is coming from a malicious user, so use
- * this with care.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param allowTemplateFromHeader the value to set
- * @return the dsl builder
- */
- default JsonPatchEndpointBuilder allowTemplateFromHeader(boolean
allowTemplateFromHeader) {
- doSetProperty("allowTemplateFromHeader", allowTemplateFromHeader);
- return this;
- }
- /**
- * Whether to allow to use resource template from header or not
(default
- * false). Enabling this allows to specify dynamic templates via
message
- * header. However this can be seen as a potential security
- * vulnerability if the header is coming from a malicious user, so use
- * this with care.
- *
- * The option will be converted to a <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param allowTemplateFromHeader the value to set
- * @return the dsl builder
- */
- default JsonPatchEndpointBuilder allowTemplateFromHeader(String
allowTemplateFromHeader) {
- doSetProperty("allowTemplateFromHeader", allowTemplateFromHeader);
- return this;
- }
- /**
- * Sets whether to use resource content cache or not.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: producer
- *
- * @param contentCache the value to set
- * @return the dsl builder
- */
- default JsonPatchEndpointBuilder contentCache(boolean contentCache) {
- doSetProperty("contentCache", contentCache);
- return this;
- }
- /**
- * Sets whether to use resource content cache or not.
- *
- * The option will be converted to a <code>boolean</code> type.
- *
- * Default: true
- * Group: producer
- *
- * @param contentCache the value to set
- * @return the dsl builder
- */
- default JsonPatchEndpointBuilder contentCache(String contentCache) {
- doSetProperty("contentCache", contentCache);
- return this;
- }
- }
-
- /**
- * Advanced builder for endpoint for the JsonPatch component.
- */
- public interface AdvancedJsonPatchEndpointBuilder
- extends
- EndpointProducerBuilder {
- default JsonPatchEndpointBuilder basic() {
- return (JsonPatchEndpointBuilder) 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 AdvancedJsonPatchEndpointBuilder 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 AdvancedJsonPatchEndpointBuilder lazyStartProducer(String
lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- }
-
- public interface JsonPatchBuilders {
- /**
- * JsonPatch (camel-json-patch)
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Category: transformation
- * Since: 3.12
- * Maven coordinates: org.apache.camel:camel-json-patch
- *
- * @return the dsl builder for the headers' name.
- */
- @Deprecated
- default JsonPatchHeaderNameBuilder jsonPatch() {
- return JsonPatchHeaderNameBuilder.INSTANCE;
- }
- /**
- * JsonPatch (camel-json-patch)
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Category: transformation
- * Since: 3.12
- * Maven coordinates: org.apache.camel:camel-json-patch
- *
- * Syntax: <code>json-patch:resourceUri</code>
- *
- * Path parameter: resourceUri (required)
- * Path to the resource. You can prefix with: classpath, file, http,
- * ref, or bean. classpath, file and http loads the resource using
these
- * protocols (classpath is default). ref will lookup the resource in
the
- * registry. bean will call a method on a bean to be used as the
- * resource. For bean you can specify the method name after dot, eg
- * bean:myBean.myMethod.
- * This option can also be loaded from an existing file, by prefixing
- * with file: or classpath: followed by the location of the file.
- *
- * @param path resourceUri
- * @return the dsl builder
- */
- @Deprecated
- default JsonPatchEndpointBuilder jsonPatch(String path) {
- return
JsonPatchEndpointBuilderFactory.endpointBuilder("json-patch", path);
- }
- /**
- * JsonPatch (camel-json-patch)
- * Transforms JSON using JSON patch (RFC 6902).
- *
- * Category: transformation
- * Since: 3.12
- * Maven coordinates: org.apache.camel:camel-json-patch
- *
- * Syntax: <code>json-patch:resourceUri</code>
- *
- * Path parameter: resourceUri (required)
- * Path to the resource. You can prefix with: classpath, file, http,
- * ref, or bean. classpath, file and http loads the resource using
these
- * protocols (classpath is default). ref will lookup the resource in
the
- * registry. bean will call a method on a bean to be used as the
- * resource. For bean you can specify the method name after dot, eg
- * bean:myBean.myMethod.
- * This option can also be loaded from an existing file, by prefixing
- * with file: or classpath: followed by the location of the file.
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path resourceUri
- * @return the dsl builder
- */
- @Deprecated
- default JsonPatchEndpointBuilder jsonPatch(String componentName,
String path) {
- return
JsonPatchEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
-
- }
- /**
- * The builder of headers' name for the JsonPatch component.
- */
- public static class JsonPatchHeaderNameBuilder {
- /**
- * The internal instance of the builder used to access to all the
- * methods representing the name of headers.
- */
- public static final JsonPatchHeaderNameBuilder INSTANCE = new
JsonPatchHeaderNameBuilder();
-
- /**
- * The resource URI.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code JsonPatchResourceUri}.
- */
- public String jsonPatchResourceUri() {
- return "CamelJsonPatchResourceUri";
- }
- }
- static JsonPatchEndpointBuilder endpointBuilder(String componentName,
String path) {
- class JsonPatchEndpointBuilderImpl extends AbstractEndpointBuilder
implements JsonPatchEndpointBuilder, AdvancedJsonPatchEndpointBuilder {
- public JsonPatchEndpointBuilderImpl(String path) {
- super(componentName, path);
- }
- }
- return new JsonPatchEndpointBuilderImpl(path);
- }
-}
\ No newline at end of file
diff --git
a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
index 78d61139ffd5..0e1d09373bec 100644
---
a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
+++
b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
@@ -227,7 +227,6 @@ org.apache.camel.component.jooq.JooqComponent=camel:jooq
org.apache.camel.component.jpa.JpaComponent=camel:jpa
org.apache.camel.component.jslt.JsltComponent=camel:jslt
org.apache.camel.component.jsonata.JsonataComponent=camel:jsonata
-org.apache.camel.component.jsonpatch.JsonPatchComponent=camel:json-patch
org.apache.camel.component.jsonvalidator.JsonValidatorComponent=camel:json-validator
org.apache.camel.component.jt400.Jt400Component=camel:jt400
org.apache.camel.component.jte.JteComponent=camel:jte
diff --git a/parent/pom.xml b/parent/pom.xml
index 52d4af6157b9..4eda0e19262a 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -323,7 +323,6 @@
<jsonschema-generator-version>4.38.0</jsonschema-generator-version>
<jsonassert-version>1.5.3</jsonassert-version>
<json-path-version>3.0.0</json-path-version>
- <json-patch-version>1.13</json-patch-version>
<json-smart-version>2.6.0</json-smart-version>
<jsonata-version>0.9.10</jsonata-version>
<json-unit-version>6.2.0</json-unit-version>
@@ -1968,11 +1967,6 @@
<artifactId>camel-jslt</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-json-patch</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-json-validator</artifactId>