cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sea...@apache.org
Subject svn commit: r731615 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/spring/HttpConduitBeanDefinitionParser.java
Date Mon, 05 Jan 2009 16:44:58 GMT
Author: seanoc
Date: Mon Jan  5 08:44:58 2009
New Revision: 731615

URL: http://svn.apache.org/viewvc?rev=731615&view=rev
Log:
removed ref to NodeList

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/spring/HttpConduitBeanDefinitionParser.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/spring/HttpConduitBeanDefinitionParser.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/spring/HttpConduitBeanDefinitionParser.java?rev=731615&r1=731614&r2=731615&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/spring/HttpConduitBeanDefinitionParser.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/spring/HttpConduitBeanDefinitionParser.java
Mon Jan  5 08:44:58 2009
@@ -26,7 +26,6 @@
 
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
 
 import org.apache.cxf.common.classloader.ClassLoaderUtils;
 import org.apache.cxf.configuration.jsse.spring.TLSClientParametersConfig;
@@ -74,7 +73,25 @@
     private void mapSpecificElements(
         Element               parent, 
         BeanDefinitionBuilder bean
-    ) {
+    ) { 
+        Node n = parent.getFirstChild();
+        while (n != null) {
+            if (Node.ELEMENT_NODE != n.getNodeType() 
+                || !HTTP_NS.equals(n.getNamespaceURI())) {
+                continue;
+            }
+            String elementName = n.getLocalName();
+            // Schema should require that no more than one each of these exist.
+            if ("trustDecider".equals(elementName)) {                
+                mapBeanOrClassElement((Element)n, bean, MessageTrustDecider.class);
+            } else if ("basicAuthSupplier".equals(elementName)) {
+                mapBeanOrClassElement((Element)n, bean, HttpBasicAuthSupplier.class);
+            } else if ("tlsClientParameters".equals(elementName)) {
+                mapTLSClientParameters((Element)n, bean);
+            } 
+        }
+        
+        /*
         NodeList nl = parent.getChildNodes();
         for (int i = 0; i < nl.getLength(); i++) {
             Node n = nl.item(i);
@@ -92,6 +109,7 @@
                 mapTLSClientParameters((Element)n, bean);
             }
         }
+        */
 
     }
     



Mime
View raw message