MCPcopy Create free account
hub / github.com/apache/tomcat / removeRealm

Method removeRealm

java/org/apache/catalina/mbeans/MBeanFactory.java:809–817  ·  view source on GitHub ↗

Remove an existing Realm. @param name MBean Name of the component to remove @exception Exception if a component cannot be removed

(String name)

Source from the content-addressed store, hash-verified

807 * @exception Exception if a component cannot be removed
808 */
809 public void removeRealm(String name) throws Exception {
810
811 ObjectName oname = new ObjectName(name);
812 // Acquire a reference to the component to be removed
813 Container container = getParentContainerFromChild(oname);
814 if (container != null) {
815 container.setRealm(null);
816 }
817 }
818
819
820 /**

Callers

nothing calls this directly

Calls 2

setRealmMethod · 0.95

Tested by

no test coverage detected