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 66196ba06d07a9517548c3d663ec6307b7ef8d68 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 15:02:43 2026 +0100 CAMEL-23832: camel-fop - improve the component and option descriptions This commit rewrites the component description, the texts of 3 endpoint options (outputType, userConfigURL, fopFactory) and of 1 header (CamelFop.Output.Format) of fop. The component description now says that it renders XSL-FO documents; outputType and the header say which names and MIME types they take, and userConfigURL and fopFactory say how the file is loaded, that they cannot be combined and what is used when neither is set. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-fop 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/fop.json | 10 ++--- .../apache/camel/catalog/docs/fop-component.adoc | 2 +- .../org/apache/camel/component/fop/fop.json | 10 ++--- .../camel-fop/src/main/docs/fop-component.adoc | 2 +- .../apache/camel/component/fop/FopConstants.java | 5 ++- .../apache/camel/component/fop/FopEndpoint.java | 24 +++++------ .../component/ComponentsBuilderFactory.java | 4 +- .../component/dsl/FopComponentBuilderFactory.java | 7 ++-- .../builder/endpoint/EndpointHeaderBuilders.java | 4 +- .../builder/endpoint/StaticEndpointBuilders.java | 18 ++++---- .../endpoint/dsl/FopEndpointBuilderFactory.java | 49 ++++++++++++++-------- tasks/component-descriptions.md | 2 +- 12 files changed, 77 insertions(+), 60 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/fop.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/fop.json index 2b43ca7954d9..ea8ff975fb5e 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/fop.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/fop.json @@ -3,7 +3,7 @@ "kind": "component", "name": "fop", "title": "FOP", - "description": "Render messages into PDF and other output formats supported by Apache FOP.", + "description": "Render XSL-FO documents into PDF, PostScript, PNG and other output formats with Apache FOP.", "deprecated": false, "firstVersion": "2.10.0", "label": "file,transformation", @@ -28,16 +28,16 @@ "autowiredEnabled": { "index": 1, "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": { - "CamelFop.Output.Format": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The output format", "constantName": "org.apache.camel.component.fop.FopConstants#CAMEL_FOP_OUTPUT_FORMAT" } + "CamelFop.Output.Format": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The output format of this message, which overrides the outputType of the endpoint. Either a name, such as pdf or png, or a MIME type that Apache FOP supports, such as application\/pdf, which is passed to FOP as is.", "constantName": "org.apache.camel.component.f [...] }, "bodyTypes": { "producerIn": { "carriers": [ "text", "bytes", "stream", "file", "pojo" ], "format": "xml", "description": "The XSL-FO document to render, as text, bytes, a stream, a file, a DOM Document or a javax.xml.transform.Source. A Map or no body fails" }, "producerOut": { "carriers": [ "bytes" ], "javaType": "java.io.ByteArrayOutputStream", "description": "The rendered document as bytes, in a ByteArrayOutputStream: PDF, or the outputType, or the format of the CamelFop.Output.Format header" } }, "properties": { - "outputType": { "index": 0, "kind": "path", "displayName": "Output Type", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.fop.FopOutputType", "enum": [ "pdf", "ps", "pcl", "png", "jpeg", "svg", "xml", "mif", "rtf", "txt" ], "deprecated": false, "autowired": false, "secret": false, "description": "The primary output format is PDF but other output formats are also supported." }, - "fopFactory": { "index": 1, "kind": "parameter", "displayName": "Fop Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.fop.apps.FopFactory", "deprecated": false, "autowired": false, "secret": false, "description": "Allows to use a custom configured or implementation of org.apache.fop.apps.FopFactory." }, - "userConfigURL": { "index": 2, "kind": "parameter", "displayName": "User Config URL", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportFileReference": true, "description": "The location of a configuration file which can be loaded from classpath or file system." }, + "outputType": { "index": 0, "kind": "path", "displayName": "Output Type", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.fop.FopOutputType", "enum": [ "pdf", "ps", "pcl", "png", "jpeg", "svg", "xml", "mif", "rtf", "txt" ], "deprecated": false, "autowired": false, "secret": false, "description": "The output format to render to. The endpoint URI takes the lower-case name, such as pdf or png, or the MIME type, such as applicat [...] + "fopFactory": { "index": 1, "kind": "parameter", "displayName": "Fop Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.fop.apps.FopFactory", "deprecated": false, "autowired": false, "secret": false, "description": "A custom org.apache.fop.apps.FopFactory to render with, for example one built in Java code with FopFactoryBuilder. It cannot be combined with userConfigURL. If neither is set, a FopFactory with the default FOP settings [...] + "userConfigURL": { "index": 2, "kind": "parameter", "displayName": "User Config URL", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportFileReference": true, "description": "The location of an Apache FOP configuration file (such as fop.xconf), for example to set the resolution, the default page size or the fonts. Use the classpath:, file: or http: prefix; without a p [...] "lazyStartProducer": { "index": 3, "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/fop-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/fop-component.adoc index d71438459ecb..cc2ec8ccc768 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/fop-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/fop-component.adoc @@ -2,7 +2,7 @@ :doctitle: FOP :shortname: fop :artifactid: camel-fop -:description: Render messages into PDF and other output formats supported by Apache FOP. +:description: Render XSL-FO documents into PDF, PostScript, PNG and other output formats with Apache FOP. :since: 2.10 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-fop/src/generated/resources/META-INF/org/apache/camel/component/fop/fop.json b/components/camel-fop/src/generated/resources/META-INF/org/apache/camel/component/fop/fop.json index 2b43ca7954d9..ea8ff975fb5e 100644 --- a/components/camel-fop/src/generated/resources/META-INF/org/apache/camel/component/fop/fop.json +++ b/components/camel-fop/src/generated/resources/META-INF/org/apache/camel/component/fop/fop.json @@ -3,7 +3,7 @@ "kind": "component", "name": "fop", "title": "FOP", - "description": "Render messages into PDF and other output formats supported by Apache FOP.", + "description": "Render XSL-FO documents into PDF, PostScript, PNG and other output formats with Apache FOP.", "deprecated": false, "firstVersion": "2.10.0", "label": "file,transformation", @@ -28,16 +28,16 @@ "autowiredEnabled": { "index": 1, "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": { - "CamelFop.Output.Format": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The output format", "constantName": "org.apache.camel.component.fop.FopConstants#CAMEL_FOP_OUTPUT_FORMAT" } + "CamelFop.Output.Format": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The output format of this message, which overrides the outputType of the endpoint. Either a name, such as pdf or png, or a MIME type that Apache FOP supports, such as application\/pdf, which is passed to FOP as is.", "constantName": "org.apache.camel.component.f [...] }, "bodyTypes": { "producerIn": { "carriers": [ "text", "bytes", "stream", "file", "pojo" ], "format": "xml", "description": "The XSL-FO document to render, as text, bytes, a stream, a file, a DOM Document or a javax.xml.transform.Source. A Map or no body fails" }, "producerOut": { "carriers": [ "bytes" ], "javaType": "java.io.ByteArrayOutputStream", "description": "The rendered document as bytes, in a ByteArrayOutputStream: PDF, or the outputType, or the format of the CamelFop.Output.Format header" } }, "properties": { - "outputType": { "index": 0, "kind": "path", "displayName": "Output Type", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.fop.FopOutputType", "enum": [ "pdf", "ps", "pcl", "png", "jpeg", "svg", "xml", "mif", "rtf", "txt" ], "deprecated": false, "autowired": false, "secret": false, "description": "The primary output format is PDF but other output formats are also supported." }, - "fopFactory": { "index": 1, "kind": "parameter", "displayName": "Fop Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.fop.apps.FopFactory", "deprecated": false, "autowired": false, "secret": false, "description": "Allows to use a custom configured or implementation of org.apache.fop.apps.FopFactory." }, - "userConfigURL": { "index": 2, "kind": "parameter", "displayName": "User Config URL", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportFileReference": true, "description": "The location of a configuration file which can be loaded from classpath or file system." }, + "outputType": { "index": 0, "kind": "path", "displayName": "Output Type", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.fop.FopOutputType", "enum": [ "pdf", "ps", "pcl", "png", "jpeg", "svg", "xml", "mif", "rtf", "txt" ], "deprecated": false, "autowired": false, "secret": false, "description": "The output format to render to. The endpoint URI takes the lower-case name, such as pdf or png, or the MIME type, such as applicat [...] + "fopFactory": { "index": 1, "kind": "parameter", "displayName": "Fop Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.fop.apps.FopFactory", "deprecated": false, "autowired": false, "secret": false, "description": "A custom org.apache.fop.apps.FopFactory to render with, for example one built in Java code with FopFactoryBuilder. It cannot be combined with userConfigURL. If neither is set, a FopFactory with the default FOP settings [...] + "userConfigURL": { "index": 2, "kind": "parameter", "displayName": "User Config URL", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportFileReference": true, "description": "The location of an Apache FOP configuration file (such as fop.xconf), for example to set the resolution, the default page size or the fonts. Use the classpath:, file: or http: prefix; without a p [...] "lazyStartProducer": { "index": 3, "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-fop/src/main/docs/fop-component.adoc b/components/camel-fop/src/main/docs/fop-component.adoc index d71438459ecb..cc2ec8ccc768 100644 --- a/components/camel-fop/src/main/docs/fop-component.adoc +++ b/components/camel-fop/src/main/docs/fop-component.adoc @@ -2,7 +2,7 @@ :doctitle: FOP :shortname: fop :artifactid: camel-fop -:description: Render messages into PDF and other output formats supported by Apache FOP. +:description: Render XSL-FO documents into PDF, PostScript, PNG and other output formats with Apache FOP. :since: 2.10 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-fop/src/main/java/org/apache/camel/component/fop/FopConstants.java b/components/camel-fop/src/main/java/org/apache/camel/component/fop/FopConstants.java index bdb358dc5fe8..9911ce52b013 100644 --- a/components/camel-fop/src/main/java/org/apache/camel/component/fop/FopConstants.java +++ b/components/camel-fop/src/main/java/org/apache/camel/component/fop/FopConstants.java @@ -22,6 +22,9 @@ public interface FopConstants { String CAMEL_FOP_RENDER = "CamelFop.Render."; String CAMEL_FOP_ENCRYPT = "CamelFop.Encrypt."; String CAMEL_FOP_RENDERER_OPTIONS = "CamelFop.RendererOptions."; - @Metadata(description = "The output format", javaType = "String") + @Metadata(description = "The output format of this message, which overrides the outputType of the endpoint. Either a" + + " name, such as pdf or png, or a MIME type that Apache FOP supports, such as application/pdf," + + " which is passed to FOP as is.", + javaType = "String") String CAMEL_FOP_OUTPUT_FORMAT = "CamelFop.Output.Format"; } diff --git a/components/camel-fop/src/main/java/org/apache/camel/component/fop/FopEndpoint.java b/components/camel-fop/src/main/java/org/apache/camel/component/fop/FopEndpoint.java index 73ada96b4de1..0f85855fc313 100644 --- a/components/camel-fop/src/main/java/org/apache/camel/component/fop/FopEndpoint.java +++ b/components/camel-fop/src/main/java/org/apache/camel/component/fop/FopEndpoint.java @@ -35,7 +35,7 @@ import org.apache.camel.support.ResourceHelper; import org.apache.fop.apps.FopFactory; /** - * Render messages into PDF and other output formats supported by Apache FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output formats with Apache FOP. */ @UriEndpoint(firstVersion = "2.10.0", scheme = "fop", title = "FOP", syntax = "fop:outputType", producerOnly = true, remote = false, category = { Category.FILE, Category.TRANSFORMATION }, headersClass = FopConstants.class) @@ -48,13 +48,20 @@ import org.apache.fop.apps.FopFactory; + " outputType, or the format of the CamelFop.Output.Format header")) public class FopEndpoint extends DefaultEndpoint { - @UriPath + @UriPath(description = "The output format to render to. The endpoint URI takes the lower-case name, such as pdf or png," + + " or the MIME type, such as application/pdf. The CamelFop.Output.Format header overrides it for" + + " a single message.") @Metadata(required = true) private FopOutputType outputType; - @UriParam + @UriParam(description = "The location of an Apache FOP configuration file (such as fop.xconf), for example to set the" + + " resolution, the default page size or the fonts. Use the classpath:, file: or http: prefix;" + + " without a prefix the file is loaded from the classpath. It cannot be combined with" + + " fopFactory.") @Metadata(supportFileReference = true) private String userConfigURL; - @UriParam + @UriParam(description = "A custom org.apache.fop.apps.FopFactory to render with, for example one built in Java code with" + + " FopFactoryBuilder. It cannot be combined with userConfigURL. If neither is set, a FopFactory" + + " with the default FOP settings is created.") private FopFactory fopFactory; public FopEndpoint(String uri, FopComponent component, FopOutputType outputType) { @@ -81,9 +88,6 @@ public class FopEndpoint extends DefaultEndpoint { return outputType; } - /** - * The primary output format is PDF but other output formats are also supported. - */ public void setOutputType(FopOutputType outputType) { this.outputType = outputType; } @@ -92,9 +96,6 @@ public class FopEndpoint extends DefaultEndpoint { return userConfigURL; } - /** - * The location of a configuration file which can be loaded from classpath or file system. - */ public void setUserConfigURL(String userConfigURL) { this.userConfigURL = userConfigURL; } @@ -103,9 +104,6 @@ public class FopEndpoint extends DefaultEndpoint { return fopFactory; } - /** - * Allows to use a custom configured or implementation of org.apache.fop.apps.FopFactory. - */ public void setFopFactory(FopFactory fopFactory) { this.fopFactory = fopFactory; } 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 1b1afba6d841..5f1e37f33275 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 @@ -1910,8 +1910,8 @@ public interface ComponentsBuilderFactory { } /** * FOP (camel-fop) - * Render messages into PDF and other output formats supported by Apache - * FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output + * formats with Apache FOP. * * Category: file,transformation * Since: 2.10 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/FopComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/FopComponentBuilderFactory.java index a0e51c92fd20..01e9b360717b 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/FopComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/FopComponentBuilderFactory.java @@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.fop.FopComponent; /** - * Render messages into PDF and other output formats supported by Apache FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output formats + * with Apache FOP. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,8 +34,8 @@ public interface FopComponentBuilderFactory { /** * FOP (camel-fop) - * Render messages into PDF and other output formats supported by Apache - * FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output + * formats with Apache FOP. * * Category: file,transformation * Since: 2.10 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 b1abcf761703..7224666dfead 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 @@ -1500,8 +1500,8 @@ public class EndpointHeaderBuilders { } /** * FOP (camel-fop) - * Render messages into PDF and other output formats supported by Apache - * FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output + * formats with Apache FOP. * * Category: file,transformation * Since: 2.10 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 ed6d323f0220..cdaf941680b8 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 @@ -6293,8 +6293,8 @@ public class StaticEndpointBuilders { } /** * FOP (camel-fop) - * Render messages into PDF and other output formats supported by Apache - * FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output + * formats with Apache FOP. * * Category: file,transformation * Since: 2.10 @@ -6303,8 +6303,9 @@ public class StaticEndpointBuilders { * Syntax: <code>fop:outputType</code> * * Path parameter: outputType (required) - * The primary output format is PDF but other output formats are also - * supported. + * The output format to render to. The endpoint URI takes the lower-case + * name, such as pdf or png, or the MIME type, such as application/pdf. The + * CamelFop.Output.Format header overrides it for a single message. * There are 10 enums and the value can be one of: pdf, ps, pcl, png, jpeg, * svg, xml, mif, rtf, txt * @@ -6316,8 +6317,8 @@ public class StaticEndpointBuilders { } /** * FOP (camel-fop) - * Render messages into PDF and other output formats supported by Apache - * FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output + * formats with Apache FOP. * * Category: file,transformation * Since: 2.10 @@ -6326,8 +6327,9 @@ public class StaticEndpointBuilders { * Syntax: <code>fop:outputType</code> * * Path parameter: outputType (required) - * The primary output format is PDF but other output formats are also - * supported. + * The output format to render to. The endpoint URI takes the lower-case + * name, such as pdf or png, or the MIME type, such as application/pdf. The + * CamelFop.Output.Format header overrides it for a single message. * There are 10 enums and the value can be one of: pdf, ps, pcl, png, jpeg, * svg, xml, mif, rtf, txt * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FopEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FopEndpointBuilderFactory.java index 7c6a886e6e4f..8ae66e539d3c 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FopEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FopEndpointBuilderFactory.java @@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Render messages into PDF and other output formats supported by Apache FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output formats + * with Apache FOP. * * Generated by camel build tools - do NOT edit this file! */ @@ -45,8 +46,10 @@ public interface FopEndpointBuilderFactory { } /** - * Allows to use a custom configured or implementation of - * org.apache.fop.apps.FopFactory. + * A custom org.apache.fop.apps.FopFactory to render with, for example + * one built in Java code with FopFactoryBuilder. It cannot be combined + * with userConfigURL. If neither is set, a FopFactory with the default + * FOP settings is created. * * The option is a: <code>org.apache.fop.apps.FopFactory</code> type. * @@ -60,8 +63,10 @@ public interface FopEndpointBuilderFactory { return this; } /** - * Allows to use a custom configured or implementation of - * org.apache.fop.apps.FopFactory. + * A custom org.apache.fop.apps.FopFactory to render with, for example + * one built in Java code with FopFactoryBuilder. It cannot be combined + * with userConfigURL. If neither is set, a FopFactory with the default + * FOP settings is created. * * The option will be converted to a * <code>org.apache.fop.apps.FopFactory</code> type. @@ -76,8 +81,11 @@ public interface FopEndpointBuilderFactory { return this; } /** - * The location of a configuration file which can be loaded from - * classpath or file system. + * The location of an Apache FOP configuration file (such as fop.xconf), + * for example to set the resolution, the default page size or the + * fonts. Use the classpath:, file: or http: prefix; without a prefix + * the file is loaded from the classpath. It cannot be combined with + * fopFactory. * * This option can also be loaded from an existing file, by prefixing * with file: or classpath: followed by the location of the file. @@ -156,8 +164,8 @@ public interface FopEndpointBuilderFactory { public interface FopBuilders { /** * FOP (camel-fop) - * Render messages into PDF and other output formats supported by Apache - * FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output + * formats with Apache FOP. * * Category: file,transformation * Since: 2.10 @@ -170,8 +178,8 @@ public interface FopEndpointBuilderFactory { } /** * FOP (camel-fop) - * Render messages into PDF and other output formats supported by Apache - * FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output + * formats with Apache FOP. * * Category: file,transformation * Since: 2.10 @@ -180,8 +188,9 @@ public interface FopEndpointBuilderFactory { * Syntax: <code>fop:outputType</code> * * Path parameter: outputType (required) - * The primary output format is PDF but other output formats are also - * supported. + * The output format to render to. The endpoint URI takes the lower-case + * name, such as pdf or png, or the MIME type, such as application/pdf. + * The CamelFop.Output.Format header overrides it for a single message. * There are 10 enums and the value can be one of: pdf, ps, pcl, png, * jpeg, svg, xml, mif, rtf, txt * @@ -193,8 +202,8 @@ public interface FopEndpointBuilderFactory { } /** * FOP (camel-fop) - * Render messages into PDF and other output formats supported by Apache - * FOP. + * Render XSL-FO documents into PDF, PostScript, PNG and other output + * formats with Apache FOP. * * Category: file,transformation * Since: 2.10 @@ -203,8 +212,9 @@ public interface FopEndpointBuilderFactory { * Syntax: <code>fop:outputType</code> * * Path parameter: outputType (required) - * The primary output format is PDF but other output formats are also - * supported. + * The output format to render to. The endpoint URI takes the lower-case + * name, such as pdf or png, or the MIME type, such as application/pdf. + * The CamelFop.Output.Format header overrides it for a single message. * There are 10 enums and the value can be one of: pdf, ps, pcl, png, * jpeg, svg, xml, mif, rtf, txt * @@ -229,7 +239,10 @@ public interface FopEndpointBuilderFactory { public static final FopHeaderNameBuilder INSTANCE = new FopHeaderNameBuilder(); /** - * The output format. + * The output format of this message, which overrides the outputType of + * the endpoint. Either a name, such as pdf or png, or a MIME type that + * Apache FOP supports, such as application/pdf, which is passed to FOP + * as is. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 15612387cec1..a9b4227a23b7 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -177,7 +177,7 @@ or removes its row. | camel-flatpack | flatpack | | | camel-flink | flink | | | camel-flowable | flowable | | -| camel-fop | fop | | +| camel-fop | fop | yes | | camel-freemarker | freemarker | | | camel-ftp | ftp, ftps, sftp | | | camel-geocoder | geocoder | yes |
