...
Div |
---|
class | confluenceTableSmall |
---|
|
Header | Description |
---|
CamelVelocityResourceUri
| The templateName as a String object. | CamelVelocitySupplementalContext | Camel 2.16: To add additional information to the used VelocityContext. The value of this header should be a Map with key/values that will added (override any existing key with the same name). This can be used to pre setup some common key/values you want to reuse in your velocity endpoints. |
|
Headers set during the Velocity evaluation are returned to the message and added as headers. Then its kinda possible to return values from Velocity to the Message.
...
Code Block |
---|
Dear ${headers.lastName}, ${headers.firstName}
Thanks for the order of ${headers.item}.
Regards Camel Riders Bookstore
${body}
|
And the java code:
Wiki Markup |
---|
{snippet:id=e1|lang=java|url=camel/trunk/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityLetterTest.java} |
Include Page |
---|
| Endpoint See Also |
---|
| Endpoint See Also |
---|
|