cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dval...@apache.org
Subject svn commit: r991797 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java
Date Thu, 02 Sep 2010 03:41:17 GMT
Author: dvaleri
Date: Thu Sep  2 03:41:16 2010
New Revision: 991797

URL: http://svn.apache.org/viewvc?rev=991797&view=rev
Log:
[CXF-2968] Changed operation to use DOMUtils instead of SAAJ operation.

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java?rev=991797&r1=991796&r2=991797&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java
Thu Sep  2 03:41:16 2010
@@ -48,6 +48,7 @@ import org.apache.cxf.common.classloader
 import org.apache.cxf.common.util.StringUtils;
 import org.apache.cxf.endpoint.Endpoint;
 import org.apache.cxf.helpers.CastUtils;
+import org.apache.cxf.helpers.DOMUtils;
 import org.apache.cxf.helpers.MapNamespaceContext;
 import org.apache.cxf.resource.ResourceManager;
 import org.apache.cxf.service.model.EndpointInfo;
@@ -566,7 +567,7 @@ public class PolicyBasedWSS4JInIntercept
                 RequiredParts rp = (RequiredParts)ai.getAssertion();
                 ai.setAsserted(true);
                 for (Header h : rp.getHeaders()) {
-                    if (header == null || !header.getChildElements(h.getQName()).hasNext())
{
+                    if (header == null || DOMUtils.getFirstChildWithName(header, h.getQName())
== null) {
                         ai.setNotAsserted("No header element of name " + h.getQName() + "
found.");
                     }
                 }



Mime
View raw message