Interface ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
ThymeleafEndpointBuilderFactory
public static interface ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the Thymeleaf component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()allowContextMapAll(boolean allowContextMapAll) Sets whether the context map should allow access to all details.allowContextMapAll(String allowContextMapAll) Sets whether the context map should allow access to all details.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).Whether templates have to be considered cacheable or not.Whether templates have to be considered cacheable or not.cacheTimeToLive(Long cacheTimeToLive) The cache Time To Live for templates, expressed in milliseconds.cacheTimeToLive(String cacheTimeToLive) The cache Time To Live for templates, expressed in milliseconds.checkExistence(Boolean checkExistence) Whether a template resources will be checked for existence before being returned.checkExistence(String checkExistence) Whether a template resources will be checked for existence before being returned.templateMode(String templateMode) The template mode to be applied to templates.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
allowContextMapAll
default ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder allowContextMapAll(boolean allowContextMapAll) Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and CamelContext. Doing so impose a potential security risk as this opens access to the full power of CamelContext API. The option is a:booleantype. Default: false Group: producer- Parameters:
allowContextMapAll- the value to set- Returns:
- the dsl builder
-
allowContextMapAll
default ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder allowContextMapAll(String allowContextMapAll) Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and CamelContext. Doing so impose a potential security risk as this opens access to the full power of CamelContext API. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
allowContextMapAll- the value to set- Returns:
- the dsl builder
-
allowTemplateFromHeader
default ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder 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:booleantype. Default: false Group: producer- Parameters:
allowTemplateFromHeader- the value to set- Returns:
- the dsl builder
-
allowTemplateFromHeader
default ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder 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 abooleantype. Default: false Group: producer- Parameters:
allowTemplateFromHeader- the value to set- Returns:
- the dsl builder
-
cacheable
Whether templates have to be considered cacheable or not. The option is a:java.lang.Booleantype. Default: false Group: producer- Parameters:
cacheable- the value to set- Returns:
- the dsl builder
-
cacheable
Whether templates have to be considered cacheable or not. The option will be converted to ajava.lang.Booleantype. Default: false Group: producer- Parameters:
cacheable- the value to set- Returns:
- the dsl builder
-
cacheTimeToLive
default ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder cacheTimeToLive(Long cacheTimeToLive) The cache Time To Live for templates, expressed in milliseconds. The option is a:java.lang.Longtype. Group: producer- Parameters:
cacheTimeToLive- the value to set- Returns:
- the dsl builder
-
cacheTimeToLive
default ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder cacheTimeToLive(String cacheTimeToLive) The cache Time To Live for templates, expressed in milliseconds. The option will be converted to ajava.lang.Longtype. Group: producer- Parameters:
cacheTimeToLive- the value to set- Returns:
- the dsl builder
-
checkExistence
default ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder checkExistence(Boolean checkExistence) Whether a template resources will be checked for existence before being returned. The option is a:java.lang.Booleantype. Default: false Group: producer- Parameters:
checkExistence- the value to set- Returns:
- the dsl builder
-
checkExistence
default ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder checkExistence(String checkExistence) Whether a template resources will be checked for existence before being returned. The option will be converted to ajava.lang.Booleantype. Default: false Group: producer- Parameters:
checkExistence- the value to set- Returns:
- the dsl builder
-
templateMode
The template mode to be applied to templates. The option is a:java.lang.Stringtype. Default: HTML Group: producer- Parameters:
templateMode- the value to set- Returns:
- the dsl builder
-