servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r654847 - /servicemix/smx3/trunk/deployables/serviceengines/servicemix-camel/src/test/java/org/apache/servicemix/camel/MyEchoComponent.java
Date Fri, 09 May 2008 15:12:10 GMT
Author: gnodet
Date: Fri May  9 08:12:10 2008
New Revision: 654847

URL: http://svn.apache.org/viewvc?rev=654847&view=rev
Log:
SM-1343: add missing file

Added:
    servicemix/smx3/trunk/deployables/serviceengines/servicemix-camel/src/test/java/org/apache/servicemix/camel/MyEchoComponent.java

Added: servicemix/smx3/trunk/deployables/serviceengines/servicemix-camel/src/test/java/org/apache/servicemix/camel/MyEchoComponent.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/deployables/serviceengines/servicemix-camel/src/test/java/org/apache/servicemix/camel/MyEchoComponent.java?rev=654847&view=auto
==============================================================================
--- servicemix/smx3/trunk/deployables/serviceengines/servicemix-camel/src/test/java/org/apache/servicemix/camel/MyEchoComponent.java
(added)
+++ servicemix/smx3/trunk/deployables/serviceengines/servicemix-camel/src/test/java/org/apache/servicemix/camel/MyEchoComponent.java
Fri May  9 08:12:10 2008
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.camel;
+
+import javax.jbi.messaging.MessageExchange;
+import javax.jbi.messaging.MessagingException;
+import javax.jbi.messaging.NormalizedMessage;
+import javax.xml.namespace.QName;
+
+import org.apache.servicemix.components.util.EchoComponent;
+
+public class MyEchoComponent extends EchoComponent {
+
+
+    public MyEchoComponent() {
+    }
+
+    public MyEchoComponent(QName service, String endpoint) {
+        super(service, endpoint);
+    }
+
+    protected boolean transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage
out) throws MessagingException {
+        // Put the operation information back to the out message
+        if (exchange.getOperation() != null) {
+            out.setProperty("operation", exchange.getOperation());
+        }
+        return true;
+    }
+
+}



Mime
View raw message