ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1143487 - /webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java
Date Wed, 06 Jul 2011 16:22:40 GMT
Author: dkulp
Date: Wed Jul  6 16:22:40 2011
New Revision: 1143487

URL: http://svn.apache.org/viewvc?rev=1143487&view=rev
Log:
[NEETHI-12] Actually, check the entire element name, not just the
namespace

Modified:
    webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java

Modified: webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java?rev=1143487&r1=1143486&r2=1143487&view=diff
==============================================================================
--- webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java
(original)
+++ webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java
Wed Jul  6 16:22:40 2011
@@ -169,9 +169,9 @@ public class PolicyBuilder {
 
     private Policy getPolicyOperator(Object element) {
         QName qn = factory.getConverterRegistry().findQName(element);
-        String ns = qn.getNamespaceURI();
         
-        if (Constants.isPolicyNS(ns)) {
+        if (Constants.isPolicyElement(qn)) {
+            String ns = qn.getNamespaceURI();
             return (Policy) processOperationElement(element, new Policy(defaultPolicyRegistry,
ns));
         }
         throw new IllegalArgumentException(qn + " is not a <wsp:Policy> element.");




Mime
View raw message