svn commit: r698544 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: builder/ProcessorBuilder.java model/ProcessorType.java model/RemoveOutHeaderType.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r698544 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: builder/ProcessorBuilder.java model/ProcessorType.java model/RemoveOutHeaderType.java

janstey-3
Author: janstey
Date: Wed Sep 24 05:39:35 2008
New Revision: 698544

URL: http://svn.apache.org/viewvc?rev=698544&view=rev
Log:
CAMEL-932 - Remove removeOutHeader from the Java/Spring DSLs.


Removed:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RemoveOutHeaderType.java
Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java?rev=698544&r1=698543&r2=698544&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java Wed Sep 24 05:39:35 2008
@@ -170,25 +170,6 @@
     }
 
     /**
-     * Removes the header on the OUT message
-     */
-    public static Processor removeOutHeader(final String name) {
-        return new Processor() {
-            public void process(Exchange exchange) {
-                Message out = exchange.getOut(false);
-                if (out != null) {
-                    out.removeHeader(name);
-                }
-            }
-
-            @Override
-            public String toString() {
-                return "removeOutHeader(" + name +  ")";
-            }
-        };
-    }
-
-    /**
      * Removes the header on the FAULT message
      */
     public static Processor removeFaultHeader(final String name) {

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java?rev=698544&r1=698543&r2=698544&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java Wed Sep 24 05:39:35 2008
@@ -1318,15 +1318,6 @@
     }
 
     /**
-     * Adds a processor which removes the header on the OUT message
-     */
-    public Type removeOutHeader(String name) {
-        RemoveOutHeaderType answer = new RemoveOutHeaderType(name);
-        addOutput(answer);
-        return (Type) this;        
-    }
-
-    /**
      * Adds a processor which removes the header on the FAULT message
      */
     public Type removeFaultHeader(String name) {