MCPcopy Index your code
hub / github.com/apache/tomcat / getValveNames

Method getValveNames

java/org/apache/catalina/core/StandardHost.java:806–819  ·  view source on GitHub ↗

Returns the MBean Names of the Valves associated with this Host. @return the MBean Names of the Valves @exception Exception if an MBean cannot be created or registered

()

Source from the content-addressed store, hash-verified

804 * @exception Exception if an MBean cannot be created or registered
805 */
806 public String[] getValveNames() throws Exception {
807 Valve[] valves = this.getPipeline().getValves();
808 String[] mbeanNames = new String[valves.length];
809 for (int i = 0; i < valves.length; i++) {
810 if (valves[i] instanceof JmxEnabled) {
811 ObjectName oname = ((JmxEnabled) valves[i]).getObjectName();
812 if (oname != null) {
813 mbeanNames[i] = oname.toString();
814 }
815 }
816 }
817
818 return mbeanNames;
819 }
820
821 /**
822 * Returns the array of aliases for this host.

Callers

nothing calls this directly

Calls 4

getValvesMethod · 0.65
getPipelineMethod · 0.65
getObjectNameMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected