Scala DSL - Supported languagesPage edited by Claus IbsenChanges (3)
Full ContentSupport for other languages inside Scala DSL routes is delivered through traits. The org.apache.camel.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. You can use any of the support Camel Languages in the Scala DSL, below is a couple of examples: Using XPathWith 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 "direct:b" ==> { as(classOf[Document]) split(xpath("/persons/person")) { to("mock:b") to("mock:c") } }
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
