Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.webapp.admin
Class TomcatTreeBuilder  view TomcatTreeBuilder download TomcatTreeBuilder.java

java.lang.Object
  extended byorg.apache.webapp.admin.TomcatTreeBuilder
All Implemented Interfaces:
TreeBuilder

public class TomcatTreeBuilder
extends java.lang.Object
implements TreeBuilder

Implementation of TreeBuilder interface for Tomcat Tree Controller to build plugin components into the tree

Version:
$Revision: 303390 $ $Date: 2004-10-18 02:37:56 -0400 (Mon, 18 Oct 2004) $

Field Summary
static java.lang.String CONNECTOR_TYPE
           
static java.lang.String CONTEXT_TYPE
           
static java.lang.String DEFAULT_DOMAIN
           
static java.lang.String ENGINE_TYPE
           
static java.lang.String FACTORY_TYPE
           
static java.lang.String HOST_TYPE
           
static java.lang.String LOADER_TYPE
           
private  java.util.Locale locale
           
static java.lang.String LOGGER_TYPE
           
static java.lang.String MANAGER_TYPE
           
private static javax.management.MBeanServer mBServer
           
static java.lang.String REALM_TYPE
           
private  org.apache.struts.util.MessageResources resources
           
private static java.lang.String SERVER_LABEL
           
static java.lang.String SERVER_TYPE
           
static java.lang.String SERVICE_TYPE
           
static java.lang.String URL_ENCODING
           
static java.lang.String VALVE_TYPE
           
static java.lang.String WILDCARD
           
 
Constructor Summary
TomcatTreeBuilder()
           
 
Method Summary
 void buildTree(TreeControl treeControl, ApplicationServlet servlet, javax.servlet.http.HttpServletRequest request)
           
 void getConnectors(TreeControlNode serviceNode, java.lang.String serviceName)
          Append nodes for all defined connectors for the specified service.
 void getContexts(TreeControlNode hostNode, java.lang.String hostName)
          Append nodes for all defined contexts for the specified host.
 void getHosts(TreeControlNode serviceNode, java.lang.String serviceName)
          Append nodes for all defined hosts for the specified service.
static javax.management.ObjectName getMBeanFactory()
           
 void getRealms(TreeControlNode containerNode, java.lang.String containerName)
          Append nodes for any defined realms for the specified container.
 void getResources(TreeControlNode containerNode, java.lang.String containerName)
          Append nodes for any define resources for the specified Context.
 void getServers(TreeControlNode rootNode)
          Append nodes for all defined servers.
 void getServices(TreeControlNode serverNode, java.lang.String serverName)
          Append nodes for all defined services for the specified server.
 void getValves(TreeControlNode containerNode, java.lang.String containerName)
          Append nodes for any defined valves for the specified container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_LABEL

private static final java.lang.String SERVER_LABEL
See Also:
Constant Field Values

DEFAULT_DOMAIN

public static final java.lang.String DEFAULT_DOMAIN
See Also:
Constant Field Values

SERVER_TYPE

public static final java.lang.String SERVER_TYPE
See Also:
Constant Field Values

FACTORY_TYPE

public static final java.lang.String FACTORY_TYPE
See Also:
Constant Field Values

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
See Also:
Constant Field Values

ENGINE_TYPE

public static final java.lang.String ENGINE_TYPE
See Also:
Constant Field Values

CONNECTOR_TYPE

public static final java.lang.String CONNECTOR_TYPE
See Also:
Constant Field Values

HOST_TYPE

public static final java.lang.String HOST_TYPE
See Also:
Constant Field Values

CONTEXT_TYPE

public static final java.lang.String CONTEXT_TYPE
See Also:
Constant Field Values

LOADER_TYPE

public static final java.lang.String LOADER_TYPE
See Also:
Constant Field Values

MANAGER_TYPE

public static final java.lang.String MANAGER_TYPE
See Also:
Constant Field Values

LOGGER_TYPE

public static final java.lang.String LOGGER_TYPE
See Also:
Constant Field Values

REALM_TYPE

public static final java.lang.String REALM_TYPE
See Also:
Constant Field Values

VALVE_TYPE

public static final java.lang.String VALVE_TYPE
See Also:
Constant Field Values

WILDCARD

public static final java.lang.String WILDCARD
See Also:
Constant Field Values

URL_ENCODING

public static final java.lang.String URL_ENCODING
See Also:
Constant Field Values

mBServer

private static javax.management.MBeanServer mBServer

resources

private org.apache.struts.util.MessageResources resources

locale

private java.util.Locale locale
Constructor Detail

TomcatTreeBuilder

public TomcatTreeBuilder()
Method Detail

buildTree

public void buildTree(TreeControl treeControl,
                      ApplicationServlet servlet,
                      javax.servlet.http.HttpServletRequest request)
Specified by:
buildTree in interface TreeBuilder

getMBeanFactory

public static javax.management.ObjectName getMBeanFactory()
                                                   throws javax.management.MalformedObjectNameException

getServers

public void getServers(TreeControlNode rootNode)
                throws java.lang.Exception
Append nodes for all defined servers.


getServices

public void getServices(TreeControlNode serverNode,
                        java.lang.String serverName)
                 throws java.lang.Exception
Append nodes for all defined services for the specified server.


getConnectors

public void getConnectors(TreeControlNode serviceNode,
                          java.lang.String serviceName)
                   throws java.lang.Exception
Append nodes for all defined connectors for the specified service.


getHosts

public void getHosts(TreeControlNode serviceNode,
                     java.lang.String serviceName)
              throws java.lang.Exception
Append nodes for all defined hosts for the specified service.


getContexts

public void getContexts(TreeControlNode hostNode,
                        java.lang.String hostName)
                 throws java.lang.Exception
Append nodes for all defined contexts for the specified host.


getRealms

public void getRealms(TreeControlNode containerNode,
                      java.lang.String containerName)
               throws java.lang.Exception
Append nodes for any defined realms for the specified container.


getResources

public void getResources(TreeControlNode containerNode,
                         java.lang.String containerName)
                  throws java.lang.Exception
Append nodes for any define resources for the specified Context.


getValves

public void getValves(TreeControlNode containerNode,
                      java.lang.String containerName)
               throws java.lang.Exception
Append nodes for any defined valves for the specified container.