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 its loaded. Is default false in Camel 1.x. Is default true in Camel 2.x.

encoding

null

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

Message Headers

...

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 String object.

CamelVelocityResource

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

CamelVelocityRsourceUri

Camel 2.0

...

: The templateName as

...

String object.

In Camel 1.4 headers set during the velocity evaluation is returned to the message and added as headers. Then its kinda possible to return values from Velocity to the Message.

...