camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r552523 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
Date Mon, 02 Jul 2007 16:05:20 GMT
Author: jstrachan
Date: Mon Jul  2 09:05:19 2007
New Revision: 552523

URL: http://svn.apache.org/viewvc?view=rev&rev=552523
Log:
tidied up setter naming gremlin...

Modified:
    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/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=552523&r1=552522&r2=552523
==============================================================================
--- 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
Mon Jul  2 09:05:19 2007
@@ -32,7 +32,7 @@
 public class DefaultExchange implements Exchange {
     private static final UuidGenerator defaultIdGenerator = new UuidGenerator();
     protected final CamelContext context;
-    private Map<String, Object> headers;
+    private Map<String, Object> properties;
     private Message in;
     private Message out;
     private Message fault;
@@ -58,7 +58,7 @@
         if (exchange == this) {
             return;
         }
-        setHeaders(safeCopy(exchange.getProperties()));
+        setProperties(safeCopy(exchange.getProperties()));
         setIn(safeCopy(exchange.getIn()));
         setOut(safeCopy(exchange.getOut()));
        	setFault(safeCopy(exchange.getFault()));        
@@ -86,8 +86,8 @@
     }
 
     public Object getProperty(String name) {
-        if (headers != null) {
-            return headers.get(name);
+        if (properties != null) {
+            return properties.get(name);
         }
         return null;
     }
@@ -102,14 +102,14 @@
     }
 
     public Map<String, Object> getProperties() {
-        if (headers == null) {
-            headers = new HashMap<String, Object>();
+        if (properties == null) {
+            properties = new HashMap<String, Object>();
         }
-        return headers;
+        return properties;
     }
 
-    public void setHeaders(Map<String, Object> headers) {
-        this.headers = headers;
+    public void setProperties(Map<String, Object> properties) {
+        this.properties = properties;
     }
 
     public Message getIn() {



Mime
View raw message