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 2022/10/17 14:07:12 UTC

[camel] branch camel-3.18.x updated: CAMEL-18613: camel-cxf - Add option on endpoint to configure schema validation (#8556)

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

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


The following commit(s) were added to refs/heads/camel-3.18.x by this push:
     new 67af11c4e98 CAMEL-18613: camel-cxf - Add option on endpoint to configure schema validation (#8556)
67af11c4e98 is described below

commit 67af11c4e9817da46dab1466256bd34fc2bd4f2d
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Oct 17 16:05:50 2022 +0200

    CAMEL-18613: camel-cxf - Add option on endpoint to configure schema validation (#8556)
---
 .../org/apache/camel/component/cxf/jaxws/CxfEndpointConfigurer.java | 6 ++++++
 .../org/apache/camel/component/cxf/jaxws/CxfEndpointUriFactory.java | 3 ++-
 .../resources/org/apache/camel/component/cxf/jaxws/cxf.json         | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/components/camel-cxf/camel-cxf-soap/src/generated/java/org/apache/camel/component/cxf/jaxws/CxfEndpointConfigurer.java b/components/camel-cxf/camel-cxf-soap/src/generated/java/org/apache/camel/component/cxf/jaxws/CxfEndpointConfigurer.java
index 5c8ed8d264c..e4153da6161 100644
--- a/components/camel-cxf/camel-cxf-soap/src/generated/java/org/apache/camel/component/cxf/jaxws/CxfEndpointConfigurer.java
+++ b/components/camel-cxf/camel-cxf-soap/src/generated/java/org/apache/camel/component/cxf/jaxws/CxfEndpointConfigurer.java
@@ -68,6 +68,8 @@ public class CxfEndpointConfigurer extends PropertyConfigurerSupport implements
         case "properties": target.setProperties(property(camelContext, java.util.Map.class, value)); return true;
         case "publishedendpointurl":
         case "publishedEndpointUrl": target.setPublishedEndpointUrl(property(camelContext, java.lang.String.class, value)); return true;
+        case "schemavalidationenabled":
+        case "schemaValidationEnabled": target.setSchemaValidationEnabled(property(camelContext, java.lang.Boolean.class, value)); return true;
         case "serviceclass":
         case "serviceClass": target.setServiceClass(property(camelContext, java.lang.Class.class, value)); return true;
         case "servicename":
@@ -139,6 +141,8 @@ public class CxfEndpointConfigurer extends PropertyConfigurerSupport implements
         case "properties": return java.util.Map.class;
         case "publishedendpointurl":
         case "publishedEndpointUrl": return java.lang.String.class;
+        case "schemavalidationenabled":
+        case "schemaValidationEnabled": return java.lang.Boolean.class;
         case "serviceclass":
         case "serviceClass": return java.lang.Class.class;
         case "servicename":
@@ -211,6 +215,8 @@ public class CxfEndpointConfigurer extends PropertyConfigurerSupport implements
         case "properties": return target.getProperties();
         case "publishedendpointurl":
         case "publishedEndpointUrl": return target.getPublishedEndpointUrl();
+        case "schemavalidationenabled":
+        case "schemaValidationEnabled": return target.getSchemaValidationEnabled();
         case "serviceclass":
         case "serviceClass": return target.getServiceClass();
         case "servicename":
diff --git a/components/camel-cxf/camel-cxf-soap/src/generated/java/org/apache/camel/component/cxf/jaxws/CxfEndpointUriFactory.java b/components/camel-cxf/camel-cxf-soap/src/generated/java/org/apache/camel/component/cxf/jaxws/CxfEndpointUriFactory.java
index d0edf52947c..172ef7de414 100644
--- a/components/camel-cxf/camel-cxf-soap/src/generated/java/org/apache/camel/component/cxf/jaxws/CxfEndpointUriFactory.java
+++ b/components/camel-cxf/camel-cxf-soap/src/generated/java/org/apache/camel/component/cxf/jaxws/CxfEndpointUriFactory.java
@@ -21,7 +21,7 @@ public class CxfEndpointUriFactory extends org.apache.camel.support.component.En
     private static final Set<String> SECRET_PROPERTY_NAMES;
     private static final Set<String> MULTI_VALUE_PREFIXES;
     static {
-        Set<String> props = new HashSet<>(37);
+        Set<String> props = new HashSet<>(38);
         props.add("address");
         props.add("allowStreaming");
         props.add("beanId");
@@ -49,6 +49,7 @@ public class CxfEndpointUriFactory extends org.apache.camel.support.component.En
         props.add("portName");
         props.add("properties");
         props.add("publishedEndpointUrl");
+        props.add("schemaValidationEnabled");
         props.add("serviceClass");
         props.add("serviceName");
         props.add("skipFaultLogging");
diff --git a/components/camel-cxf/camel-cxf-soap/src/generated/resources/org/apache/camel/component/cxf/jaxws/cxf.json b/components/camel-cxf/camel-cxf-soap/src/generated/resources/org/apache/camel/component/cxf/jaxws/cxf.json
index 12e165ac0da..1f36a4b76f2 100644
--- a/components/camel-cxf/camel-cxf-soap/src/generated/resources/org/apache/camel/component/cxf/jaxws/cxf.json
+++ b/components/camel-cxf/camel-cxf-soap/src/generated/resources/org/apache/camel/component/cxf/jaxws/cxf.json
@@ -63,6 +63,7 @@
     "mergeProtocolHeaders": { "kind": "parameter", "displayName": "Merge Protocol Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to merge protocol headers. If enabled then propagating headers between Camel and CXF becomes more consistent and similar. For more details see CAMEL-6393." },
     "mtomEnabled": { "kind": "parameter", "displayName": "Mtom Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To enable MTOM (attachments). This requires to use POJO or PAYLOAD data format mode." },
     "properties": { "kind": "parameter", "displayName": "Properties", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.Object>", "prefix": "properties.", "multiValue": true, "deprecated": false, "autowired": false, "secret": false, "description": "To set additional CXF options using the key\/value pairs from the Map. For example to turn on stacktraces in SOAP faults, properties.faultStackTraceEnabled=true" },
+    "schemaValidationEnabled": { "kind": "parameter", "displayName": "Schema Validation Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "description": "Enable schema validation for request and response. Disabled by default for performance reason" },
     "skipPayloadMessagePartCheck": { "kind": "parameter", "displayName": "Skip Payload Message Part Check", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Sets whether SOAP message validation should be disabled." },
     "loggingFeatureEnabled": { "kind": "parameter", "displayName": "Logging Feature Enabled", "group": "logging", "label": "logging", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "This option enables CXF Logging Feature which writes inbound and outbound SOAP messages to log." },
     "loggingSizeLimit": { "kind": "parameter", "displayName": "Logging Size Limit", "group": "logging", "label": "logging", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 49152, "description": "To limit the total size of number of bytes the logger will output when logging feature has been enabled and -1 for no limit." },