activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r521588 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: Exchange.java impl/DefaultExchange.java
Date Fri, 23 Mar 2007 05:13:04 GMT
Author: chirino
Date: Thu Mar 22 22:13:03 2007
New Revision: 521588

URL: http://svn.apache.org/viewvc?view=rev&rev=521588
Log:
Added a property map to the Route so that route metadata can be attached.

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java?view=diff&rev=521588&r1=521587&r2=521588
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java Thu Mar 22
22:13:03 2007
@@ -59,7 +59,7 @@
      *
      * @return all the headers in a Map
      */
-    Map<String, Object> getHeaders();
+    Map<String, Object> getProperties();
 
     
     /**

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java?view=diff&rev=521588&r1=521587&r2=521588
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
Thu Mar 22 22:13:03 2007
@@ -48,7 +48,7 @@
     }
 
     public void copyFrom(Exchange exchange) {
-        setHeaders(new HashMap<String, Object>(exchange.getHeaders()));
+        setHeaders(new HashMap<String, Object>(exchange.getProperties()));
         setIn(exchange.getIn().copy());
         setOut(exchange.getOut().copy());
         setFault(exchange.getFault().copy());
@@ -71,10 +71,10 @@
     }
 
     public void setProperty(String name, Object value) {
-        getHeaders().put(name, value);
+        getProperties().put(name, value);
     }
 
-    public Map<String, Object> getHeaders() {
+    public Map<String, Object> getProperties() {
         if (headers == null) {
             headers = new HashMap<String, Object>();
         }



Mime
View raw message