...
Namespace URI | Local part | Type | Description |
---|---|---|---|
http://camel.apache.org/xml/in/![]() | in | Message | the exchange.in message |
http://camel.apache.org/xml/out/![]() | out | Message | the exchange.out message |
http://camel.apache.org/xml/functions/![]() | functions | Object | Camel 2.5: Additional functions |
http://camel.apache.org/xml/variables/environment-variables![]() | env | Object | OS environment variables |
http://camel.apache.org/xml/variables/system-properties![]() | system | Object | Java System properties |
http://camel.apache.org/xml/variables/exchange-property![]() |
| Object | the exchange property |
...
Function | Argument | Type | Description |
---|---|---|---|
in:body | none | Object | Will return the in message body. |
in:header | the header name | Object | Will return the in message header. |
out:body | none | Object | Will return the out message body. |
out:header | the header name | Object | Will return the out message header. |
function:properties | key for property | Camel 2.5: To lookup a property using the Properties component (property placeholders). | |
function:simple | simple expression | Camel 2.5: To evaluate a Simple expression. |
Here's an example showing some of these functions in use.
Wiki Markup |
---|
{snippet:id=ex|lang=java|url=camel/trunk/camel-core/src/test/java/org/apache/camel/language/XPathFunctionTest.java} |
And the new functions introduced in Camel 2.5:
Wiki Markup |
---|
{snippet:id=ex|lang=java|url=camel/trunk/camel-core/src/test/java/org/apache/camel/builder/xml/XPathFunctionsTest.java} |
Using XML configuration
...
Code Block |
---|
XPathBuilder INFO Using system property javax.xml.xpath.XPathFactory:http://saxon.sf.net/jaxp/xpath/om with value:
net.sf.saxon.xpath.XPathFactoryImpl when creating XPathFactory
|
...