cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
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 GMT
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<Header> ultimateReceiverHeaders,



Mime
View raw message