Package org.apache.webapp.admin

Examples of org.apache.webapp.admin.TreeControl


                    request.setAttribute("warning", "error.jndirealm");
                    return (mapping.findForward("Save Unsuccessful"));
                }
               
                // Add the new Realm to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    TreeControlNode parentNode = control.findNode(rform.getParentObjectName());
                    if (parentNode != null) {
                        String nodeLabel = rform.getNodeLabel();
                        String encodedName =
                            URLEncoder.encode(rObjectName);
                        TreeControlNode childNode =
View Full Code Here


        String values[] = new String[1];
        String operation = "removeLogger";
        try {

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");

            // Remove the specified loggers
            for (int i = 0; i < loggers.length; i++) {
                values[0] = loggers[i];
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(loggers[i]);
                    String domain = node.getDomain();
                    ObjectName fname = TomcatTreeBuilder.getMBeanFactory();
                    mBServer.invoke(fname, operation,
                                values, removeLoggerTypes);
                    if (node != null) {
View Full Code Here

                //eObjectName = (String)
                //    mBServer.invoke(fname, operation,
                //                    values, createStandardEngineTypes);

                // Add the new Service to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    String parentName = TomcatTreeBuilder.DEFAULT_DOMAIN +
                                            TomcatTreeBuilder.SERVER_TYPE;
                    TreeControlNode parentNode = control.findNode(parentName);
                    if (parentNode != null) {
                        String nodeLabel = resources.getMessage(locale,
                            "server.service.treeBuilder.subtreeNode") +" (" +
                            soname.getKeyProperty("serviceName") + ")";
                        String encodedName =
View Full Code Here

        String operation = "removeDefaultContext";

        try {

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");

            // Remove the specified default contexts
            for (int i = 0; i < defaultContexts.length; i++) {
                values[0] = defaultContexts[i];
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(defaultContexts[i]);
                    String domain = node.getDomain();
                    ObjectName fname = TomcatTreeBuilder.getMBeanFactory();
                    mBServer.invoke(fname, operation,
                                values, removeDefaultContextTypes);
                    if (node != null) {
View Full Code Here

            // Look up our MBeanFactory MBean
            ObjectName fname =
                new ObjectName(TomcatTreeBuilder.FACTORY_TYPE);

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");

            // Remove the specified valves
            for (int i = 0; i < valves.length; i++) {
                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

               
            vObjectName = (String)
                        mBServer.invoke(fname, operation, values, createStandardValveTypes);
           
            // 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

        String values[] = new String[1];
        String operation = "removeValve";
        try {

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");

            // Remove the specified valves
            for (int i = 0; i < valves.length; i++) {
                values[0] = valves[i];
                String domain = (new ObjectName(valves[i])).getDomain();
                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

               
            vObjectName = (String)
                        mBServer.invoke(fname, operation, values, createStandardValveTypes);
           
            // 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

            // Look up our MBeanFactory MBean
            ObjectName fname =
                new ObjectName(TomcatTreeBuilder.FACTORY_TYPE);

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");

            // Remove the specified default contexts
            for (int i = 0; i < defaultContexts.length; i++) {
                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

    public void addToTreeControlNode(ObjectName oname, String containerName,
                                    String parentName, MessageResources resources,
                                    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

TOP

Related Classes of org.apache.webapp.admin.TreeControl

Copyright © 2018 www.massapicom. 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.