esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esjew...@apache.org
Subject svn commit: r967095 - /incubator/esme/branches/metadata/src/main/scala/org/apache/esme/model/Message.scala
Date Fri, 23 Jul 2010 13:48:41 GMT
Author: esjewett
Date: Fri Jul 23 13:48:41 2010
New Revision: 967095

URL: http://svn.apache.org/viewvc?rev=967095&view=rev
Log:
[ESME-242] Allows XML tags in metadata to be returned from the Message.metadata method \nPatch
by Imtiaz Ahmed Hajee Esmail

Modified:
    incubator/esme/branches/metadata/src/main/scala/org/apache/esme/model/Message.scala

Modified: incubator/esme/branches/metadata/src/main/scala/org/apache/esme/model/Message.scala
URL: http://svn.apache.org/viewvc/incubator/esme/branches/metadata/src/main/scala/org/apache/esme/model/Message.scala?rev=967095&r1=967094&r2=967095&view=diff
==============================================================================
--- incubator/esme/branches/metadata/src/main/scala/org/apache/esme/model/Message.scala (original)
+++ incubator/esme/branches/metadata/src/main/scala/org/apache/esme/model/Message.scala Fri
Jul 23 13:48:41 2010
@@ -311,7 +311,8 @@ class Message extends LongKeyedMapper[Me
  
   lazy val body: String = originalXml \ "body" text
   
-  lazy val metadata: String = originalXml \ "metadata" text
+  //lazy val metadata: String = originalXml \ "metadata" text
+  lazy val metadata: String = (originalXml \ "metadata").toString
 
   lazy val metaData: String = {
     val org = originalXml



Mime
View raw message