Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Option

Default

Description

loaderCache

true

Velocity based file loader cache.

contentCache

 

New option in Camel 1.4: Cache for the resource content when it is loaded. By default, it's false in Camel 1.x. By default, it's true in Camel 2.x.

encoding

null

New option in Camel 1.6: Character encoding of the resource content.

Message Headers

The velocity component sets a couple headers on the message (you can't set these yourself):

Header

Description

org.apache.camel.velocity.resource

Camel 1.x: The resource as an org.springframework.core.io.Resource object.

org.apache.camel.velocity.resourceUri

Camel 1.x: The templateName as a String object.

CamelVelocityResource

Camel 2.0: The resource as an org.springframework.core.io.Resource object.

CamelVelocityRsourceUri CamelVelocityResourceUri

Camel 2.0: The templateName as a String object.

...