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:35 UTC
[5/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/55c5c4b4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/55c5c4b4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/55c5c4b4
Branch: refs/heads/camel-2.13.x
Commit: 55c5c4b4d26b97a4f61d660a0951e617dc9fdb68
Parents: 94c748c
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:07:02 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/55c5c4b4/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();