camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1429272 - in /camel/branches/camel-2.10.x: ./ components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/ components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/
Date Sat, 05 Jan 2013 12:33:22 GMT
Author: davsclaus
Date: Sat Jan  5 12:33:22 2013
New Revision: 1429272

URL: http://svn.apache.org/viewvc?rev=1429272&view=rev
Log:
CAMEL-5889: Added all the tokenize langauges to Scala DSL.

Added:
    camel/branches/camel-2.10.x/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/SplitterTokenizeHeaderTest.scala
      - copied unchanged from r1429271, camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/SplitterTokenizeHeaderTest.scala
    camel/branches/camel-2.10.x/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/SplitterTokenizePairTest.scala
      - copied unchanged from r1429271, camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/SplitterTokenizePairTest.scala
    camel/branches/camel-2.10.x/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/SplitterTokenizeTest.scala
      - copied unchanged from r1429271, camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/SplitterTokenizeTest.scala
Modified:
    camel/branches/camel-2.10.x/   (props changed)
    camel/branches/camel-2.10.x/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1429271

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.10.x/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala?rev=1429272&r1=1429271&r2=1429272&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala
(original)
+++ camel/branches/camel-2.10.x/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala
Sat Jan  5 12:33:22 2013
@@ -66,6 +66,13 @@ trait Languages {
   def xpath(expression: String)(exchange: Exchange) =      Languages.evaluate(expression)(exchange)("xpath")
   def xquery(expression: String)(exchange: Exchange) =     Languages.evaluate(expression)(exchange)("xquery")
   
+  // tokenizer languages
+  def tokenize(headerName: String = null, token: String, regex : Boolean = false)(exchange
: Exchange) : Any = {
+    TokenizeLanguage.tokenize(headerName, token, regex).evaluate(exchange, classOf[Object])
+  }
+  def tokenizePair(startToken: String, endToken: String, includeTokens : Boolean)(exchange
: Exchange) : Any = {
+    TokenizeLanguage.tokenizePair(startToken, endToken, includeTokens).evaluate(exchange,
classOf[Object])
+  }
   def tokenizeXML(tagName: String, inheritNamespaceTagName : String = null)(exchange : Exchange)
: Any = {
     TokenizeLanguage.tokenizeXML(tagName, inheritNamespaceTagName).evaluate(exchange, classOf[Object])
   }



Mime
View raw message