Package org.apache.webapp.admin

Examples of org.apache.webapp.admin.TreeControl.findNode()


                ObjectName fname = TomcatTreeBuilder.getMBeanFactory();
                mBServer.invoke(fname, operation,
                                values, removeValveTypes);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(valves[i]);
                    if (node != null) {
                        node.remove();
                    } else {
                        getServlet().log("Missing TreeControlNode for " +
                                         valves[i]);
View Full Code Here


           
            // Add the new Valve to our tree control node
            TreeControl control = (TreeControl)
            session.getAttribute("treeControlTest");
            if (control != null) {
                TreeControlNode parentNode = control.findNode(parentNodeName);
                if (parentNode != null) {
                    String nodeLabel =
                    "Valve for " + parentNode.getLabel();
                    String encodedName =
                    URLEncoder.encode(vObjectName,TomcatTreeBuilder.URL_ENCODING);
View Full Code Here

            for (int i = 0; i < hosts.length; i++) {
                values[0] = hosts[i];
                getServlet().log("remove host " + hosts[i]);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(hosts[i]);
                    String domain = node.getDomain();
                    ObjectName fname = TomcatTreeBuilder.getMBeanFactory();
                    mBServer.invoke(fname, operation,
                                values, removeHostTypes);
                    if (node != null) {
View Full Code Here

                // Add the new Host to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    String parentName = serviceName;
                    TreeControlNode parentNode = control.findNode(parentName);
                    if (parentNode != null) {
                        String nodeLabel =
                            resources.getMessage(locale, "server.service.treeBuilder.host") +
                            " (" + hform.getHostName() + ")";
                        String encodedName =
View Full Code Here

                values[0] = defaultContexts[i];
                mBServer.invoke(fname, operation,
                                values, removeDefaultContextTypes);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(defaultContexts[i]);
                    if (node != null) {
                        node.remove();
                    } else {
                        getServlet().log("Missing TreeControlNode for " +
                                         defaultContexts[i]);
View Full Code Here

                                    HttpSession session)
        throws Exception {
                             
        TreeControl control = (TreeControl) session.getAttribute("treeControlTest");
        if (control != null) {
            TreeControlNode parentNode = control.findNode(parentName);
            if (parentNode != null) {
                String nodeLabel = "DefaultContext";
                String encodedName = URLEncoder.encode(oname.toString());
                TreeControlNode childNode =
                    new TreeControlNode(oname.toString(),
View Full Code Here

                values[0] = valves[i];
                mBServer.invoke(fname, operation,
                                values, removeValveTypes);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(valves[i]);
                    if (node != null) {
                        node.remove();
                    } else {
                        getServlet().log("Missing TreeControlNode for " +
                                         valves[i]);
View Full Code Here

                values[0] = hosts[i];
                mBServer.invoke(fname, operation,
                                values, removeHostTypes);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(hosts[i]);
                    if (node != null) {
                        node.remove();
                    } else {
                        getServlet().log("Missing TreeControlNode for " +
                                         hosts[i]);
View Full Code Here

           
            // Add the new Valve to our tree control node
            TreeControl control = (TreeControl)
            session.getAttribute("treeControlTest");
            if (control != null) {
                TreeControlNode parentNode = control.findNode(parentNodeName);
                if (parentNode != null) {
                    String nodeLabel =
                    "Valve for " + parentNode.getLabel();
                    String encodedName =
                    URLEncoder.encode(vObjectName);
View Full Code Here

                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    String parentName =
                          TomcatTreeBuilder.SERVICE_TYPE + ",name=" + serviceName;
                    TreeControlNode parentNode = control.findNode(parentName);
                    if (parentNode != null) {
                        String nodeLabel =
                            "Host (" + hform.getHostName() + ")";
                        String encodedName =
                            URLEncoder.encode(hObjectName);
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.