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-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 0b614ee99e2 Regen
0b614ee99e2 is described below

commit 0b614ee99e20886a1cafaedc35cd415fb0d9b206
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Nov 18 21:54:05 2026 +0100

    Regen
---
 .../apache/camel/springboot/catalog/dataformats/jaxb.json | 15 ++++++++-------
 .../camel-jaxb-starter/src/main/docs/jaxb.json            |  7 +++++++
 .../jaxb/springboot/JaxbDataFormatConfiguration.java      | 15 +++++++++++++++
 docs/spring-boot/modules/ROOT/pages/starters/jaxb.adoc    |  3 ++-
 4 files changed, 32 insertions(+), 8 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/jaxb.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/jaxb.json
index 6cdeaf43a7f..c012e93be6b 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/jaxb.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/jaxb.json
@@ -36,12 +36,13 @@
     "fragment": { "index": 11, "kind": "attribute", "displayName": "Fragment", 
"group": "advanced", "label": "advanced", "required": false, "type": "boolean", 
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "To omit the XML 
declaration when marshalling, by setting the JAXB_FRAGMENT property on the JAXB 
marshaller. To marshal or unmarshal only part of the tree, or classes without 
the XmlRootElement annotation [...]
     "partClass": { "index": 12, "kind": "attribute", "displayName": "Part 
Class", "group": "advanced", "label": "advanced", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "Name of class used for fragment 
parsing." },
     "partNamespace": { "index": 13, "kind": "attribute", "displayName": "Part 
Namespace", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "XML namespace to use for 
fragment parsing." },
-    "namespacePrefix": { "index": 14, "kind": "attribute", "displayName": 
"Namespace Prefix", "group": "advanced", "label": "advanced", "required": 
false, "type": "object", "javaType": "java.util.Map", "deprecated": false, 
"autowired": false, "secret": false, "description": "When marshalling using 
JAXB or SOAP then the JAXB implementation will automatically assign namespace 
prefixes, such as ns2, ns3, ns4 etc. To control this mapping, Camel allows you 
to refer to a map which contains the [...]
-    "xmlStreamWriterWrapper": { "index": 15, "kind": "attribute", 
"displayName": "Xml Stream Writer Wrapper", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "To use a custom xml stream writer." },
-    "schemaLocation": { "index": 16, "kind": "attribute", "displayName": 
"Schema Location", "group": "common", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "To set the xsi:schemaLocation attribute in the 
marshalled XML. This does not validate the XML; use the schema option to 
validate." },
-    "noNamespaceSchemaLocation": { "index": 17, "kind": "attribute", 
"displayName": "No Namespace Schema Location", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "To define the location of the namespaceless schema." },
-    "jaxbProviderProperties": { "index": 18, "kind": "attribute", 
"displayName": "Jaxb Provider Properties", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Refers to a custom java.util.Map to lookup in the registry 
containing custom JAXB provider properties to be used with the JAXB 
marshaller." },
-    "contentTypeHeader": { "index": 19, "kind": "attribute", "displayName": 
"Content Type Header", "group": "common", "required": false, "type": "boolean", 
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether the data format 
should set the Content-Type header with the type from the data format. For 
example application\/xml for data formats marshalling to XML, or 
application\/json for data formats marshall [...]
-    "accessExternalSchemaProtocols": { "index": 20, "kind": "attribute", 
"displayName": "Access External Schema Protocols", "group": "security", 
"label": "security", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Only in use if schema validation has been enabled. Restrict 
access to the protocols specified for external reference set by the 
schemaLocation attribute, Import and Include element." }
+    "allowPartClassFromHeader": { "index": 14, "kind": "attribute", 
"displayName": "Allow Part Class From Header", "group": "advanced", "label": 
"advanced", "required": false, "type": "boolean", "javaType": 
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the CamelJaxbPartClass and 
CamelJaxbPartNamespace headers are used, when set, instead of the partClass and 
partNamespace options when marshalling and unmarshal [...]
+    "namespacePrefix": { "index": 15, "kind": "attribute", "displayName": 
"Namespace Prefix", "group": "advanced", "label": "advanced", "required": 
false, "type": "object", "javaType": "java.util.Map", "deprecated": false, 
"autowired": false, "secret": false, "description": "When marshalling using 
JAXB or SOAP then the JAXB implementation will automatically assign namespace 
prefixes, such as ns2, ns3, ns4 etc. To control this mapping, Camel allows you 
to refer to a map which contains the [...]
+    "xmlStreamWriterWrapper": { "index": 16, "kind": "attribute", 
"displayName": "Xml Stream Writer Wrapper", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "To use a custom xml stream writer." },
+    "schemaLocation": { "index": 17, "kind": "attribute", "displayName": 
"Schema Location", "group": "common", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "To set the xsi:schemaLocation attribute in the 
marshalled XML. This does not validate the XML; use the schema option to 
validate." },
+    "noNamespaceSchemaLocation": { "index": 18, "kind": "attribute", 
"displayName": "No Namespace Schema Location", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "To define the location of the namespaceless schema." },
+    "jaxbProviderProperties": { "index": 19, "kind": "attribute", 
"displayName": "Jaxb Provider Properties", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Refers to a custom java.util.Map to lookup in the registry 
containing custom JAXB provider properties to be used with the JAXB 
marshaller." },
+    "contentTypeHeader": { "index": 20, "kind": "attribute", "displayName": 
"Content Type Header", "group": "common", "required": false, "type": "boolean", 
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether the data format 
should set the Content-Type header with the type from the data format. For 
example application\/xml for data formats marshalling to XML, or 
application\/json for data formats marshall [...]
+    "accessExternalSchemaProtocols": { "index": 21, "kind": "attribute", 
"displayName": "Access External Schema Protocols", "group": "security", 
"label": "security", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Only in use if schema validation has been enabled. Restrict 
access to the protocols specified for external reference set by the 
schemaLocation attribute, Import and Include element." }
   }
 }
diff --git a/components-starter/camel-jaxb-starter/src/main/docs/jaxb.json 
b/components-starter/camel-jaxb-starter/src/main/docs/jaxb.json
index 5e6ac8f24b9..fd2ae0c002c 100644
--- a/components-starter/camel-jaxb-starter/src/main/docs/jaxb.json
+++ b/components-starter/camel-jaxb-starter/src/main/docs/jaxb.json
@@ -19,6 +19,13 @@
       "description": "Only in use if schema validation has been enabled. 
Restrict access to the protocols specified for external reference set by the 
schemaLocation attribute, Import and Include element.",
       "sourceType": 
"org.apache.camel.converter.jaxb.springboot.JaxbDataFormatConfiguration"
     },
+    {
+      "name": "camel.dataformat.jaxb.allow-part-class-from-header",
+      "type": "java.lang.Boolean",
+      "description": "Whether the CamelJaxbPartClass and 
CamelJaxbPartNamespace headers are used, when set, instead of the partClass and 
partNamespace options when marshalling and unmarshalling. Enable it only when 
the route sets these headers itself, not on routes that receive them from 
external systems.",
+      "sourceType": 
"org.apache.camel.converter.jaxb.springboot.JaxbDataFormatConfiguration",
+      "defaultValue": false
+    },
     {
       "name": "camel.dataformat.jaxb.content-type-header",
       "type": "java.lang.Boolean",
diff --git 
a/components-starter/camel-jaxb-starter/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
 
b/components-starter/camel-jaxb-starter/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
index 0aac0655b7e..20cd6f486e0 100644
--- 
a/components-starter/camel-jaxb-starter/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
+++ 
b/components-starter/camel-jaxb-starter/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
@@ -104,6 +104,13 @@ public class JaxbDataFormatConfiguration
      * XML namespace to use for fragment parsing.
      */
     private String partNamespace;
+    /**
+     * Whether the CamelJaxbPartClass and CamelJaxbPartNamespace headers are
+     * used, when set, instead of the partClass and partNamespace options when
+     * marshalling and unmarshalling. Enable it only when the route sets these
+     * headers itself, not on routes that receive them from external systems.
+     */
+    private Boolean allowPartClassFromHeader = false;
     /**
      * When marshalling using JAXB or SOAP then the JAXB implementation will
      * automatically assign namespace prefixes, such as ns2, ns3, ns4 etc. To
@@ -247,6 +254,14 @@ public class JaxbDataFormatConfiguration
         this.partNamespace = partNamespace;
     }
 
+    public Boolean getAllowPartClassFromHeader() {
+        return allowPartClassFromHeader;
+    }
+
+    public void setAllowPartClassFromHeader(Boolean allowPartClassFromHeader) {
+        this.allowPartClassFromHeader = allowPartClassFromHeader;
+    }
+
     public Map getNamespacePrefix() {
         return namespacePrefix;
     }
diff --git a/docs/spring-boot/modules/ROOT/pages/starters/jaxb.adoc 
b/docs/spring-boot/modules/ROOT/pages/starters/jaxb.adoc
index a8723268727..3bec3d62929 100644
--- a/docs/spring-boot/modules/ROOT/pages/starters/jaxb.adoc
+++ b/docs/spring-boot/modules/ROOT/pages/starters/jaxb.adoc
@@ -23,12 +23,13 @@ Please refer to the above links for usage and configuration 
details.
 
 == Spring Boot Auto-Configuration
 
-The starter supports 21 options, which are listed below.
+The starter supports 22 options, which are listed below.
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
 | camel.dataformat.jaxb.access-external-schema-protocols | Only in use if 
schema validation has been enabled. Restrict access to the protocols specified 
for external reference set by the schemaLocation attribute, Import and Include 
element. |  | String
+| camel.dataformat.jaxb.allow-part-class-from-header | Whether the 
CamelJaxbPartClass and CamelJaxbPartNamespace headers are used, when set, 
instead of the partClass and partNamespace options when marshalling and 
unmarshalling. Enable it only when the route sets these headers itself, not on 
routes that receive them from external systems. | false | Boolean
 | camel.dataformat.jaxb.content-type-header | Whether the data format should 
set the Content-Type header with the type from the data format. For example 
application/xml for data formats marshalling to XML, or application/json for 
data formats marshalling to JSON | true | Boolean
 | camel.dataformat.jaxb.context-path | Package name where your JAXB classes 
are located. The package must have an ObjectFactory class or a jaxb.index file 
that lists the classes. To use a class name instead, set contextPathIsClassName 
to true. |  | String
 | camel.dataformat.jaxb.context-path-is-class-name | This can be set to true 
to mark that the contextPath is referring to a classname and not a package 
name. | false | Boolean

Reply via email to