...
Function | Argument | Type | Description |
---|---|---|---|
$body in:body | none | Object | The message body. Will return the in message body if using no/default or the in namespace. Will return the out body if using the out namespace. |
$header in:header | the key header name | Object | The message header. Will return the in message header if using no/default or the in namespace. Will return the out message if using the out namespace. . |
out: $out-body | none | Object | The Will return the out message body. |
out.body $out-:header | the key header name | Object The message.out.header | Will return the out message header. |
Here's an example showing some of these functions in use.
Wiki Markup |
---|
{snippet:id=ex|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/language/XPathFunctionTest.java} |
Using XML configuration
If you prefer to configure your routes in your Spring XML file then you can use XPath expressions as follows
...