Interface FreemarkerComponentBuilderFactory.FreemarkerComponentBuilder

All Superinterfaces:
ComponentBuilder<org.apache.camel.component.freemarker.FreemarkerComponent>
All Known Implementing Classes:
FreemarkerComponentBuilderFactory.FreemarkerComponentBuilderImpl
Enclosing interface:
FreemarkerComponentBuilderFactory

public static interface FreemarkerComponentBuilderFactory.FreemarkerComponentBuilder extends ComponentBuilder<org.apache.camel.component.freemarker.FreemarkerComponent>
Builder for the Freemarker component.
  • Method Details

    • allowContextMapAll

      default FreemarkerComponentBuilderFactory.FreemarkerComponentBuilder 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: <code>boolean</code> type. Default: false Group: producer
      Parameters:
      allowContextMapAll - the value to set
      Returns:
      the dsl builder
    • allowTemplateFromHeader

      default FreemarkerComponentBuilderFactory.FreemarkerComponentBuilder 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
    • lazyStartProducer

      default FreemarkerComponentBuilderFactory.FreemarkerComponentBuilder lazyStartProducer(boolean lazyStartProducer)
      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 producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer
      Parameters:
      lazyStartProducer - the value to set
      Returns:
      the dsl builder
    • localizedLookup

      default FreemarkerComponentBuilderFactory.FreemarkerComponentBuilder localizedLookup(boolean localizedLookup)
      Enables/disables localized template lookup. Disabled by default. The option is a: <code>boolean</code> type. Default: false Group: producer
      Parameters:
      localizedLookup - the value to set
      Returns:
      the dsl builder
    • autowiredEnabled

      default FreemarkerComponentBuilderFactory.FreemarkerComponentBuilder autowiredEnabled(boolean autowiredEnabled)
      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 type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced
      Parameters:
      autowiredEnabled - the value to set
      Returns:
      the dsl builder
    • configuration

      default FreemarkerComponentBuilderFactory.FreemarkerComponentBuilder configuration(freemarker.template.Configuration configuration)
      To use an existing freemarker.template.Configuration instance as the configuration. The option is a: <code>freemarker.template.Configuration</code> type. Group: advanced
      Parameters:
      configuration - the value to set
      Returns:
      the dsl builder