You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/09/26 09:10:32 UTC

[2/9] git commit: CAMEL-7863 Updated the java doc for the operation name lookup.

CAMEL-7863 Updated the java doc for the operation name lookup.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/613856a9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/613856a9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/613856a9

Branch: refs/heads/camel-2.14.x
Commit: 613856a97f52c69a9fea6d1305cf898c5c5ce23b
Parents: a21b68d
Author: Willem Jiang <wi...@gmail.com>
Authored: Fri Sep 26 11:29:36 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Fri Sep 26 15:06:21 2014 +0800

----------------------------------------------------------------------
 .../java/org/apache/camel/component/cxf/CxfProducer.java  | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/613856a9/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
index 28e9913..ea0e6d7 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
@@ -324,8 +324,14 @@ public class CxfProducer extends DefaultProducer implements AsyncProcessor {
     }
 
     /**
-     * Get operation name from header and use it to lookup and return a 
-     * {@link BindingOperationInfo}.
+     * <p>Get operation name from header and use it to lookup and return a 
+     * {@link BindingOperationInfo}.</p>
+     * <p>CxfProducer lookups the operation name lookup with below order, and it uses the first found one which is not null:</p>
+     *  <ul>
+     *    <li> Using the in message header "operationName". </li>
+     *    <li> Using the defaultOperationName option value from the CxfEndpoint. </li>
+     *    <li> Using the first operation which is find from the CxfEndpoint Operations list. </li>
+     *  <ul>
      */
     private BindingOperationInfo getBindingOperationInfo(Exchange ex) {
         CxfEndpoint endpoint = (CxfEndpoint)this.getEndpoint();