Support for other languages inside Scala DSL routes is delivered through traits. The org.apache.scala.dsl.languages
package currently offers traits to support XPath. To use any given language, you can mix-in the trait when creating your RouteBuilder
like this:
Error formatting macro: snippet: java.lang.NullPointerException
Using XPath
With the XPath trait, you have an additional method available on an Exchange
to do XPath queries against the message. Just look at this Splitter example, where the xpath
method is used in a Exchange ⇒ Any*
function literal
Error formatting macro: snippet: java.lang.NullPointerException