Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB61A178F3 for ; Fri, 26 Sep 2014 07:10:32 +0000 (UTC) Received: (qmail 75503 invoked by uid 500); 26 Sep 2014 07:10:32 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 75336 invoked by uid 500); 26 Sep 2014 07:10:32 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 75003 invoked by uid 99); 26 Sep 2014 07:10:32 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 07:10:32 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 34A8991E976; Fri, 26 Sep 2014 07:10:32 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ningjiang@apache.org To: commits@camel.apache.org Date: Fri, 26 Sep 2014 07:10:38 -0000 Message-Id: <96f1b6f26789449fbc0a35eb69fa9657@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [8/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/b66cb6d2 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b66cb6d2 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b66cb6d2 Branch: refs/heads/camel-2.12.x Commit: b66cb6d2bd558f46dad77f700e9074d581ee534a Parents: ff40364 Author: Willem Jiang Authored: Fri Sep 26 11:29:36 2014 +0800 Committer: Willem Jiang Committed: Fri Sep 26 15:09:30 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/b66cb6d2/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}. + *

Get operation name from header and use it to lookup and return a + * {@link BindingOperationInfo}.

+ *

CxfProducer lookups the operation name lookup with below order, and it uses the first found one which is not null:

+ *
    + *
  • Using the in message header "operationName".
  • + *
  • Using the defaultOperationName option value from the CxfEndpoint.
  • + *
  • Using the first operation which is find from the CxfEndpoint Operations list.
  • + *
      */ private BindingOperationInfo getBindingOperationInfo(Exchange ex) { CxfEndpoint endpoint = (CxfEndpoint)this.getEndpoint();