Methods Summary |
---|
public void | addAlias(java.lang.String alias)Add an alias name that should be mapped to this Host
StandardHost host = (StandardHost) this.resource;
host.addAlias(alias);
|
public java.lang.String[] | findAliases()Return the set of alias names for this Host
StandardHost host = (StandardHost) this.resource;
return host.findAliases();
|
public java.lang.String[] | getValves()Return the MBean Names of the Valves assoicated with this Host
Registry registry = MBeanUtils.createRegistry();
StandardHost host = (StandardHost) this.resource;
String mname = MBeanUtils.createManagedName(host);
ManagedBean managed = registry.findManagedBean(mname);
String domain = null;
if (managed != null) {
domain = managed.getDomain();
}
if (domain == null)
domain = mserver.getDefaultDomain();
Valve [] valves = host.getValves();
String [] mbeanNames = new String[valves.length];
for (int i = 0; i < valves.length; i++) {
mbeanNames[i] =
MBeanUtils.createObjectName(domain, valves[i]).toString();
}
return mbeanNames;
|
public void | removeAlias(java.lang.String alias)Return the specified alias name from the aliases for this Host
StandardHost host = (StandardHost) this.resource;
host.removeAlias(alias);
|