Interface JteComponentBuilderFactory.JteComponentBuilder

All Superinterfaces:
ComponentBuilder<org.apache.camel.component.jte.JteComponent>
All Known Implementing Classes:
JteComponentBuilderFactory.JteComponentBuilderImpl
Enclosing interface:
JteComponentBuilderFactory

public static interface JteComponentBuilderFactory.JteComponentBuilder extends ComponentBuilder<org.apache.camel.component.jte.JteComponent>
Builder for the JTE component.
  • Method Details

    • allowContextMapAll

      default JteComponentBuilderFactory.JteComponentBuilder 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 JteComponentBuilderFactory.JteComponentBuilder 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
    • contentType

      default JteComponentBuilderFactory.JteComponentBuilder contentType(gg.jte.ContentType contentType)
      Content type the JTE engine should use. The option is a: <code>gg.jte.ContentType</code> type. Default: Plain Group: producer
      Parameters:
      contentType - the value to set
      Returns:
      the dsl builder
    • lazyStartProducer

      default JteComponentBuilderFactory.JteComponentBuilder 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
    • preCompile

      default JteComponentBuilderFactory.JteComponentBuilder preCompile(boolean preCompile)
      To speed up startup and rendering on your production server, it is possible to precompile all templates during the build. This way, the template engine can load each template's .class file directly without first compiling it. The option is a: <code>boolean</code> type. Default: false Group: producer
      Parameters:
      preCompile - the value to set
      Returns:
      the dsl builder
    • workDir

      Work directory where JTE will store compiled templates. The option is a: <code>java.lang.String</code> type. Default: jte-classes Group: producer
      Parameters:
      workDir - the value to set
      Returns:
      the dsl builder
    • autowiredEnabled

      default JteComponentBuilderFactory.JteComponentBuilder 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