Prep for removing Pipeline interface from ContainerBase
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 4 Feb 2010 21:53:06 +0000 (21:53 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 4 Feb 2010 21:53:06 +0000 (21:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@906675 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardHost.java
java/org/apache/catalina/mbeans/MBeanFactory.java

index 5194a79..aaa8689 100644 (file)
@@ -781,7 +781,7 @@ public class StandardHost
      public String [] getValveNames()
          throws Exception
     {
-         Valve [] valves = this.getValves();
+         Valve [] valves = this.getPipeline().getValves();
          String [] mbeanNames = new String[valves.length];
          for (int i = 0; i < valves.length; i++) {
              if( valves[i] == null ) continue;
index d7da2da..9e8922b 100644 (file)
@@ -957,7 +957,7 @@ public class MBeanFactory extends BaseModelMBean {
         // Acquire a reference to the component to be removed
         ObjectName oname = new ObjectName(name);
         ContainerBase container = getParentContainerFromChild(oname);
-        Valve[] valves = container.getValves();
+        Valve[] valves = container.getPipeline().getValves();
         for (int i = 0; i < valves.length; i++) {
             ObjectName voname = ((ValveBase) valves[i]).getObjectName();
             if (voname.equals(oname)) {