Package org.apache.stratos.lb.common.conf.structure

Examples of org.apache.stratos.lb.common.conf.structure.Node.removeChildNode()


                              for (Node currentSerNode : domainsNode.getChildNodes()) {
                                      String prop = Constants.SUB_DOMAIN_ELEMENT;
                                if(serNode.getName().equals(currentSerNode.getName()) &&
                                    serNode.getProperty(prop).equals(currentSerNode.getProperty(prop))){
                                  // if domain and sub domain, are not unique, we shouldn't append, but override
                                  domainsNode.removeChildNode(currentSerNode.getName());
                                  break;
                                }
                                    }
                             
                              domainsNode.appendChild(serNode);
View Full Code Here


                    for (Node currentSerNode : domainsNode.getChildNodes()) {
                        String prop = Constants.SUB_DOMAIN_ELEMENT;
                        if(serNode.getName().equals(currentSerNode.getName()) &&
                                serNode.getProperty(prop).equals(currentSerNode.getProperty(prop))){
                            // if domain and sub domain, are matching, we should remove the node.
                            domainsNode.removeChildNode(currentSerNode.getName());
                            if(domainsNode.getChildNodes().size() == 0){
                                // if no cluster definitions remain, we shouldn't keep the node
                                currentNodeToBeRemoved = aNode;
                            }
                            break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.