This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit d7001c8dee4e4d8f100f227de2a7147b9aedf396 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 16:27:32 2026 +0100 CAMEL-23832: camel-xj - improve the component and option descriptions Rewrites the component description, the transformDirection option and the CamelXsltFileName header (1 component, 1 option, 1 header). transformDirection now explains the xj:name and xj:type mapping of each direction and that output=DOM fails with XML2JSON; the header says it names the output file. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-xj is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../org/apache/camel/catalog/components/xj.json | 6 ++--- .../apache/camel/catalog/docs/xj-component.adoc | 2 +- .../META-INF/org/apache/camel/component/xj/xj.json | 6 ++--- .../camel-xj/src/main/docs/xj-component.adoc | 2 +- .../org/apache/camel/component/xj/XJConstants.java | 5 +++- .../org/apache/camel/component/xj/XJEndpoint.java | 12 ++++++---- .../component/ComponentsBuilderFactory.java | 2 +- .../component/dsl/XjComponentBuilderFactory.java | 4 ++-- .../builder/endpoint/EndpointHeaderBuilders.java | 2 +- .../builder/endpoint/StaticEndpointBuilders.java | 4 ++-- .../endpoint/dsl/XJEndpointBuilderFactory.java | 27 ++++++++++++++++------ tasks/component-descriptions.md | 2 +- 12 files changed, 46 insertions(+), 28 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/xj.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/xj.json index b3eb833608e0..b490612ba947 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/xj.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/xj.json @@ -3,7 +3,7 @@ "kind": "component", "name": "xj", "title": "XJ", - "description": "Transform JSON and XML message using a XSLT.", + "description": "Transform JSON to XML and XML to JSON with an XSLT stylesheet.", "deprecated": false, "firstVersion": "3.0.0", "label": "transformation", @@ -39,7 +39,7 @@ "secureProcessing": { "index": 12, "kind": "property", "displayName": "Secure Processing", "group": "security", "label": "advanced,security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:dev", "insecureValue": "false", "defaultValue": true, "description": "Feature for XML secure processing (see javax.xml.XMLConstants). This is enabled by default. However, when using Saxon Professional you [...] }, "headers": { - "CamelXsltFileName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The XSLT file name", "constantName": "org.apache.camel.component.xj.XJConstants#XSLT_FILE_NAME" }, + "CamelXsltFileName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the file that the producer writes the result to when output=file. It is required with output=file, and the message body becomes this java.io.File. The deleteOutputFile option reads it too, to delete the file when the exchange is done.", "constantName": "o [...] "CamelXsltResourceUri": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "A URI for the template resource to load and use instead of the endpoint configured.", "constantName": "org.apache.camel.component.xslt.XsltConstants#XSLT_RESOURCE_URI" }, "CamelXsltStylesheet": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The template to use instead of the endpoint configured.", "constantName": "org.apache.camel.component.xslt.XsltConstants#XSLT_STYLESHEET" } }, @@ -56,7 +56,7 @@ "failOnNullBody": { "index": 5, "kind": "parameter", "displayName": "Fail On Null Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether or not to throw an exception if the input body is null." }, "output": { "index": 6, "kind": "parameter", "displayName": "Output", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.xslt.XsltOutput", "enum": [ "string", "bytes", "DOM", "file" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "string", "description": "Option to specify which output type to use. Possible values are: string, bytes, DOM, file. The first three options are all in memory based, where [...] "source": { "index": 7, "kind": "parameter", "displayName": "Source", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Source to use, instead of message body. You can prefix with variable:, header:, or property: to specify kind of source. Otherwise, the source is assumed to be a variable. Use empty or null to use default source, which is the message body." }, - "transformDirection": { "index": 8, "kind": "parameter", "displayName": "Transform Direction", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.xj.TransformDirection", "enum": [ "XML2JSON", "JSON2XML" ], "deprecated": false, "autowired": false, "secret": false, "description": "Transform direction. Either XML2JSON or JSON2XML" }, + "transformDirection": { "index": 8, "kind": "parameter", "displayName": "Transform Direction", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.xj.TransformDirection", "enum": [ "XML2JSON", "JSON2XML" ], "deprecated": false, "autowired": false, "secret": false, "description": "The direction of the transformation. JSON2XML parses the JSON body into XML elements named object, with the JSON key in the xj:name attribute and the J [...] "transformerCacheSize": { "index": 9, "kind": "parameter", "displayName": "Transformer Cache Size", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 0, "description": "The number of javax.xml.transform.Transformer object that are cached for reuse to avoid calls to Template.newTransformer()." }, "useJsonBody": { "index": 10, "kind": "parameter", "displayName": "Use JSON Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to use JSON body as input. When enabled, the message body is expected to be JSON and will be converted to XML representation of JSON using XSLT3 json-to-xml() function before XSLT processing. This allows X [...] "lazyStartProducer": { "index": 11, "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 produ [...] diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/xj-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/xj-component.adoc index 876c9d89e5a9..10bbd7a001cd 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/xj-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/xj-component.adoc @@ -2,7 +2,7 @@ :doctitle: XJ :shortname: xj :artifactid: camel-xj -:description: Transform JSON and XML message using a XSLT. +:description: Transform JSON to XML and XML to JSON with an XSLT stylesheet. :since: 3.0 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-xj/src/generated/resources/META-INF/org/apache/camel/component/xj/xj.json b/components/camel-xj/src/generated/resources/META-INF/org/apache/camel/component/xj/xj.json index b3eb833608e0..b490612ba947 100644 --- a/components/camel-xj/src/generated/resources/META-INF/org/apache/camel/component/xj/xj.json +++ b/components/camel-xj/src/generated/resources/META-INF/org/apache/camel/component/xj/xj.json @@ -3,7 +3,7 @@ "kind": "component", "name": "xj", "title": "XJ", - "description": "Transform JSON and XML message using a XSLT.", + "description": "Transform JSON to XML and XML to JSON with an XSLT stylesheet.", "deprecated": false, "firstVersion": "3.0.0", "label": "transformation", @@ -39,7 +39,7 @@ "secureProcessing": { "index": 12, "kind": "property", "displayName": "Secure Processing", "group": "security", "label": "advanced,security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:dev", "insecureValue": "false", "defaultValue": true, "description": "Feature for XML secure processing (see javax.xml.XMLConstants). This is enabled by default. However, when using Saxon Professional you [...] }, "headers": { - "CamelXsltFileName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The XSLT file name", "constantName": "org.apache.camel.component.xj.XJConstants#XSLT_FILE_NAME" }, + "CamelXsltFileName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the file that the producer writes the result to when output=file. It is required with output=file, and the message body becomes this java.io.File. The deleteOutputFile option reads it too, to delete the file when the exchange is done.", "constantName": "o [...] "CamelXsltResourceUri": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "A URI for the template resource to load and use instead of the endpoint configured.", "constantName": "org.apache.camel.component.xslt.XsltConstants#XSLT_RESOURCE_URI" }, "CamelXsltStylesheet": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The template to use instead of the endpoint configured.", "constantName": "org.apache.camel.component.xslt.XsltConstants#XSLT_STYLESHEET" } }, @@ -56,7 +56,7 @@ "failOnNullBody": { "index": 5, "kind": "parameter", "displayName": "Fail On Null Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether or not to throw an exception if the input body is null." }, "output": { "index": 6, "kind": "parameter", "displayName": "Output", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.xslt.XsltOutput", "enum": [ "string", "bytes", "DOM", "file" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "string", "description": "Option to specify which output type to use. Possible values are: string, bytes, DOM, file. The first three options are all in memory based, where [...] "source": { "index": 7, "kind": "parameter", "displayName": "Source", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Source to use, instead of message body. You can prefix with variable:, header:, or property: to specify kind of source. Otherwise, the source is assumed to be a variable. Use empty or null to use default source, which is the message body." }, - "transformDirection": { "index": 8, "kind": "parameter", "displayName": "Transform Direction", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.xj.TransformDirection", "enum": [ "XML2JSON", "JSON2XML" ], "deprecated": false, "autowired": false, "secret": false, "description": "Transform direction. Either XML2JSON or JSON2XML" }, + "transformDirection": { "index": 8, "kind": "parameter", "displayName": "Transform Direction", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.xj.TransformDirection", "enum": [ "XML2JSON", "JSON2XML" ], "deprecated": false, "autowired": false, "secret": false, "description": "The direction of the transformation. JSON2XML parses the JSON body into XML elements named object, with the JSON key in the xj:name attribute and the J [...] "transformerCacheSize": { "index": 9, "kind": "parameter", "displayName": "Transformer Cache Size", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 0, "description": "The number of javax.xml.transform.Transformer object that are cached for reuse to avoid calls to Template.newTransformer()." }, "useJsonBody": { "index": 10, "kind": "parameter", "displayName": "Use JSON Body", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to use JSON body as input. When enabled, the message body is expected to be JSON and will be converted to XML representation of JSON using XSLT3 json-to-xml() function before XSLT processing. This allows X [...] "lazyStartProducer": { "index": 11, "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 produ [...] diff --git a/components/camel-xj/src/main/docs/xj-component.adoc b/components/camel-xj/src/main/docs/xj-component.adoc index 876c9d89e5a9..10bbd7a001cd 100644 --- a/components/camel-xj/src/main/docs/xj-component.adoc +++ b/components/camel-xj/src/main/docs/xj-component.adoc @@ -2,7 +2,7 @@ :doctitle: XJ :shortname: xj :artifactid: camel-xj -:description: Transform JSON and XML message using a XSLT. +:description: Transform JSON to XML and XML to JSON with an XSLT stylesheet. :since: 3.0 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-xj/src/main/java/org/apache/camel/component/xj/XJConstants.java b/components/camel-xj/src/main/java/org/apache/camel/component/xj/XJConstants.java index 7cb7527b8c52..55037947be67 100644 --- a/components/camel-xj/src/main/java/org/apache/camel/component/xj/XJConstants.java +++ b/components/camel-xj/src/main/java/org/apache/camel/component/xj/XJConstants.java @@ -49,7 +49,10 @@ public final class XJConstants { * converting to xml the attribute holds the type that was in the original json document. */ public static final String TYPE_HINT_TYPE = "type"; - @Metadata(description = "The XSLT file name", javaType = "String") + @Metadata(description = "The path of the file that the producer writes the result to when output=file. It is" + + " required with output=file, and the message body becomes this java.io.File. The" + + " deleteOutputFile option reads it too, to delete the file when the exchange is done.", + javaType = "String") public static final String XSLT_FILE_NAME = Exchange.XSLT_FILE_NAME; /** diff --git a/components/camel-xj/src/main/java/org/apache/camel/component/xj/XJEndpoint.java b/components/camel-xj/src/main/java/org/apache/camel/component/xj/XJEndpoint.java index 1174eb7e905b..04dea03be902 100644 --- a/components/camel-xj/src/main/java/org/apache/camel/component/xj/XJEndpoint.java +++ b/components/camel-xj/src/main/java/org/apache/camel/component/xj/XJEndpoint.java @@ -32,7 +32,7 @@ import org.apache.camel.spi.UriParam; import tools.jackson.core.json.JsonFactory; /** - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. */ @ManagedResource(description = "Managed XJEndpoint") @UriEndpoint(firstVersion = "3.0.0", scheme = "xj", title = "XJ", syntax = "xj:resourceUri", producerOnly = true, @@ -68,7 +68,12 @@ public class XJEndpoint extends XsltSaxonEndpoint { private final JsonFactory jsonFactory = JsonFactory.builderWithJackson2Defaults().build(); @UriParam - @Metadata(required = true, description = "Transform direction. Either XML2JSON or JSON2XML") + @Metadata(required = true, + description = "The direction of the transformation. JSON2XML parses the JSON body into XML elements named" + + " object, with the JSON key in the xj:name attribute and the JSON type in the xj:type" + + " attribute, and returns the XML that the stylesheet writes. XML2JSON reads an XML body and" + + " writes the output of the stylesheet as JSON, using the xj:name and xj:type attributes as" + + " hints; output=DOM is not supported in this direction.") private TransformDirection transformDirection; public XJEndpoint(String endpointUri, Component component) { @@ -85,9 +90,6 @@ public class XJEndpoint extends XsltSaxonEndpoint { return transformDirection; } - /** - * Sets the transform direction. - */ public void setTransformDirection(TransformDirection transformDirection) { this.transformDirection = transformDirection; } 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 b197432cabc6..094474ffbf40 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 @@ -5564,7 +5564,7 @@ public interface ComponentsBuilderFactory { } /** * XJ (camel-xj) - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Category: transformation * Since: 3.0 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/XjComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/XjComponentBuilderFactory.java index 76a0c8e3fd40..070070d364b5 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/XjComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/XjComponentBuilderFactory.java @@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.xj.XJComponent; /** - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +33,7 @@ public interface XjComponentBuilderFactory { /** * XJ (camel-xj) - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Category: transformation * Since: 3.0 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 fe5db3c365ac..065ab01bad51 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 @@ -4401,7 +4401,7 @@ public class EndpointHeaderBuilders { } /** * XJ (camel-xj) - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Category: transformation * Since: 3.0 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 219260fc8d7d..5e71012cac7a 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 @@ -19015,7 +19015,7 @@ public class StaticEndpointBuilders { } /** * XJ (camel-xj) - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Category: transformation * Since: 3.0 @@ -19039,7 +19039,7 @@ public class StaticEndpointBuilders { } /** * XJ (camel-xj) - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Category: transformation * Since: 3.0 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/XJEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/XJEndpointBuilderFactory.java index 34e05c66f913..cd9713205b3a 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/XJEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/XJEndpointBuilderFactory.java @@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Generated by camel build tools - do NOT edit this file! */ @@ -284,7 +284,12 @@ public interface XJEndpointBuilderFactory { return this; } /** - * Transform direction. Either XML2JSON or JSON2XML. + * The direction of the transformation. JSON2XML parses the JSON body + * into XML elements named object, with the JSON key in the xj:name + * attribute and the JSON type in the xj:type attribute, and returns the + * XML that the stylesheet writes. XML2JSON reads an XML body and writes + * the output of the stylesheet as JSON, using the xj:name and xj:type + * attributes as hints; output=DOM is not supported in this direction. * * The option is a: * <code>org.apache.camel.component.xj.TransformDirection</code> type. @@ -300,7 +305,12 @@ public interface XJEndpointBuilderFactory { return this; } /** - * Transform direction. Either XML2JSON or JSON2XML. + * The direction of the transformation. JSON2XML parses the JSON body + * into XML elements named object, with the JSON key in the xj:name + * attribute and the JSON type in the xj:type attribute, and returns the + * XML that the stylesheet writes. XML2JSON reads an XML body and writes + * the output of the stylesheet as JSON, using the xj:name and xj:type + * attributes as hints; output=DOM is not supported in this direction. * * The option will be converted to a * <code>org.apache.camel.component.xj.TransformDirection</code> type. @@ -818,7 +828,7 @@ public interface XJEndpointBuilderFactory { public interface XJBuilders { /** * XJ (camel-xj) - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Category: transformation * Since: 3.0 @@ -831,7 +841,7 @@ public interface XJEndpointBuilderFactory { } /** * XJ (camel-xj) - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Category: transformation * Since: 3.0 @@ -856,7 +866,7 @@ public interface XJEndpointBuilderFactory { } /** * XJ (camel-xj) - * Transform JSON and XML message using a XSLT. + * Transform JSON to XML and XML to JSON with an XSLT stylesheet. * * Category: transformation * Since: 3.0 @@ -894,7 +904,10 @@ public interface XJEndpointBuilderFactory { public static final XJHeaderNameBuilder INSTANCE = new XJHeaderNameBuilder(); /** - * The XSLT file name. + * The path of the file that the producer writes the result to when + * output=file. It is required with output=file, and the message body + * becomes this java.io.File. The deleteOutputFile option reads it too, + * to delete the file when the exchange is done. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index b20b1eda7c1d..ff7ccf37b7a2 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -390,7 +390,7 @@ or removes its row. | camel-wordpress | wordpress | | | camel-workday | workday | | | camel-xchange | xchange | yes | -| camel-xj | xj | | +| camel-xj | xj | yes | | camel-xmlsecurity | xmlsecurity-sign, xmlsecurity-verify | | | camel-xmpp | xmpp | | | camel-xslt | xslt | |
