/**
- * Path where context descriptors should be deployed.
- */
- protected File configBase = null;
-
-
- /**
* The Context container associated with our web application.
*/
protected Context context = null;
/**
* The associated host.
*/
- protected Host host = null;
+ protected Host installedHost = null;
/**
this.wrapper = wrapper;
if (wrapper == null) {
context = null;
- host = null;
+ installedHost = null;
engine = null;
} else {
context = (Context) wrapper.getParent();
- host = (Host) context.getParent();
- engine = (Engine) host.getParent();
+ installedHost = (Host) context.getParent();
+ engine = (Engine) installedHost.getParent();
}
// Retrieve the MBean server
}
// Prevent removing our own host
- if (engine.findChild(name) == host) {
+ if (engine.findChild(name) == installedHost) {
writer.println
(sm.getString("hostManagerServlet.cannotRemoveOwnHost", name));
return;
}
// Prevent starting our own host
- if (engine.findChild(name) == host) {
+ if (engine.findChild(name) == installedHost) {
writer.println
(sm.getString("hostManagerServlet.cannotStartOwnHost", name));
return;
}
// Prevent starting our own host
- if (engine.findChild(name) == host) {
+ if (engine.findChild(name) == installedHost) {
writer.println
(sm.getString("hostManagerServlet.cannotStopOwnHost", name));
return;
if (engine != null) {
configBase = new File(configBase, engine.getName());
}
- if (host != null) {
+ if (installedHost != null) {
configBase = new File(configBase, hostName);
}
configBase.mkdirs();