Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 26494 invoked from network); 16 Dec 2010 21:23:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Dec 2010 21:23:46 -0000 Received: (qmail 29372 invoked by uid 500); 16 Dec 2010 21:23:46 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 29285 invoked by uid 500); 16 Dec 2010 21:23:46 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 29275 invoked by uid 99); 16 Dec 2010 21:23:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 21:23:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 21:23:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CE9E82388A43; Thu, 16 Dec 2010 21:23:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1050165 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/MustUnderstandInterceptor.java Date: Thu, 16 Dec 2010 21:23:25 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101216212325.CE9E82388A43@eris.apache.org> Author: dkulp Date: Thu Dec 16 21:23:25 2010 New Revision: 1050165 URL: http://svn.apache.org/viewvc?rev=1050165&view=rev Log: Slight optimization. Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/MustUnderstandInterceptor.java Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/MustUnderstandInterceptor.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/MustUnderstandInterceptor.java?rev=1050165&r1=1050164&r2=1050165&view=diff ============================================================================== --- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/MustUnderstandInterceptor.java (original) +++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/MustUnderstandInterceptor.java Thu Dec 16 21:23:25 2010 @@ -87,6 +87,7 @@ public class MustUnderstandInterceptor e soapVersion.getMustUnderstand()); if (!isRequestor(soapMessage)) { soapMessage.put(MustUnderstandInterceptor.FAULT, soapFault); + soapMessage.getInterceptorChain().add(ending); } else { throw soapFault; } @@ -94,9 +95,6 @@ public class MustUnderstandInterceptor e if (!ultimateReceiverHeaders.isEmpty() && !isRequestor(soapMessage)) { checkUltimateReceiverHeaders(ultimateReceiverHeaders, mustUnderstandQNames, soapMessage); } - if (!isRequestor(soapMessage)) { - soapMessage.getInterceptorChain().add(ending); - } } private void checkUltimateReceiverHeaders(Set
ultimateReceiverHeaders,