Interface XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
XsltSaxonEndpointBuilderFactory
public static interface XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the XSLT Saxon component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()allowStAX(boolean allowStAX) Whether to allow using StAX as the javax.xml.transform.Source.Whether to allow using StAX as the javax.xml.transform.Source.allowTemplateFromHeader(boolean allowTemplateFromHeader) Whether to allow to use resource template from header or not (default false).allowTemplateFromHeader(String allowTemplateFromHeader) Whether to allow to use resource template from header or not (default false).contentCache(boolean contentCache) Cache for the resource content (the stylesheet file) when it is loaded on startup.contentCache(String contentCache) Cache for the resource content (the stylesheet file) when it is loaded on startup.deleteOutputFile(boolean deleteOutputFile) If you have output=file then this option dictates whether or not the output file should be deleted when the Exchange is done processing.deleteOutputFile(String deleteOutputFile) If you have output=file then this option dictates whether or not the output file should be deleted when the Exchange is done processing.failOnNullBody(boolean failOnNullBody) Whether or not to throw an exception if the input body is null.failOnNullBody(String failOnNullBody) Whether or not to throw an exception if the input body is null.Option to specify which output type to use.output(org.apache.camel.component.xslt.XsltOutput output) Option to specify which output type to use.transformerCacheSize(int transformerCacheSize) The number of javax.xml.transform.Transformer object that are cached for reuse to avoid calls to Template.newTransformer().transformerCacheSize(String transformerCacheSize) The number of javax.xml.transform.Transformer object that are cached for reuse to avoid calls to Template.newTransformer().Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
allowStAX
Whether to allow using StAX as the javax.xml.transform.Source. You can enable this if the XSLT library supports StAX such as the Saxon library (camel-saxon). The Xalan library (default in JVM) does not support StAXSource. The option is a: <code>boolean</code> type. Default: true Group: producer- Parameters:
allowStAX- the value to set- Returns:
- the dsl builder
-
allowStAX
Whether to allow using StAX as the javax.xml.transform.Source. You can enable this if the XSLT library supports StAX such as the Saxon library (camel-saxon). The Xalan library (default in JVM) does not support StAXSource. The option will be converted to a <code>boolean</code> type. Default: true Group: producer- Parameters:
allowStAX- the value to set- Returns:
- the dsl builder
-
allowTemplateFromHeader
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder allowTemplateFromHeader(boolean 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. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
allowTemplateFromHeader- the value to set- Returns:
- the dsl builder
-
allowTemplateFromHeader
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder allowTemplateFromHeader(String 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. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
allowTemplateFromHeader- the value to set- Returns:
- the dsl builder
-
contentCache
Cache for the resource content (the stylesheet file) when it is loaded on startup. If set to false Camel will reload the stylesheet file on each message processing. This is good for development. A cached stylesheet can be forced to reload at runtime via JMX using the clearCachedStylesheet operation. The option is a: <code>boolean</code> type. Default: true Group: producer- Parameters:
contentCache- the value to set- Returns:
- the dsl builder
-
contentCache
Cache for the resource content (the stylesheet file) when it is loaded on startup. If set to false Camel will reload the stylesheet file on each message processing. This is good for development. A cached stylesheet can be forced to reload at runtime via JMX using the clearCachedStylesheet operation. The option will be converted to a <code>boolean</code> type. Default: true Group: producer- Parameters:
contentCache- the value to set- Returns:
- the dsl builder
-
deleteOutputFile
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder deleteOutputFile(boolean deleteOutputFile) If you have output=file then this option dictates whether or not the output file should be deleted when the Exchange is done processing. For example suppose the output file is a temporary file, then it can be a good idea to delete it after use. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
deleteOutputFile- the value to set- Returns:
- the dsl builder
-
deleteOutputFile
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder deleteOutputFile(String deleteOutputFile) If you have output=file then this option dictates whether or not the output file should be deleted when the Exchange is done processing. For example suppose the output file is a temporary file, then it can be a good idea to delete it after use. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
deleteOutputFile- the value to set- Returns:
- the dsl builder
-
failOnNullBody
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder failOnNullBody(boolean failOnNullBody) Whether or not to throw an exception if the input body is null. The option is a: <code>boolean</code> type. Default: true Group: producer- Parameters:
failOnNullBody- the value to set- Returns:
- the dsl builder
-
failOnNullBody
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder failOnNullBody(String failOnNullBody) Whether or not to throw an exception if the input body is null. The option will be converted to a <code>boolean</code> type. Default: true Group: producer- Parameters:
failOnNullBody- the value to set- Returns:
- the dsl builder
-
output
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder output(org.apache.camel.component.xslt.XsltOutput output) 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 as file is streamed directly to a java.io.File. For file you must specify the filename in the IN header with the key XsltConstants.XSLT_FILE_NAME which is also CamelXsltFileName. Also any paths leading to the filename must be created beforehand, otherwise an exception is thrown at runtime. The option is a: <code>org.apache.camel.component.xslt.XsltOutput</code> type. Default: string Group: producer- Parameters:
output- the value to set- Returns:
- the dsl builder
-
output
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 as file is streamed directly to a java.io.File. For file you must specify the filename in the IN header with the key XsltConstants.XSLT_FILE_NAME which is also CamelXsltFileName. Also any paths leading to the filename must be created beforehand, otherwise an exception is thrown at runtime. The option will be converted to a <code>org.apache.camel.component.xslt.XsltOutput</code> type. Default: string Group: producer- Parameters:
output- the value to set- Returns:
- the dsl builder
-
transformerCacheSize
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder transformerCacheSize(int transformerCacheSize) The number of javax.xml.transform.Transformer object that are cached for reuse to avoid calls to Template.newTransformer(). The option is a: <code>int</code> type. Default: 0 Group: producer- Parameters:
transformerCacheSize- the value to set- Returns:
- the dsl builder
-
transformerCacheSize
default XsltSaxonEndpointBuilderFactory.XsltSaxonEndpointBuilder transformerCacheSize(String transformerCacheSize) The number of javax.xml.transform.Transformer object that are cached for reuse to avoid calls to Template.newTransformer(). The option will be converted to a <code>int</code> type. Default: 0 Group: producer- Parameters:
transformerCacheSize- the value to set- Returns:
- the dsl builder
-