that configures Contexts (web
applications) for all defined "users" who have a web application in a
directory with the specified name in their home directories. The context
path of each deployed application will be set to
| Method from org.apache.catalina.startup.UserConfig Detail: |
public String getConfigClass() {
// ------------------------------------------------------------- Properties
return (this.configClass);
}
Return the Context configuration class name. |
public String getContextClass() {
return (this.contextClass);
}
Return the Context implementation class name. |
public String getDirectoryName() {
return (this.directoryName);
}
Return the directory name for user web applications. |
public String getHomeBase() {
return (this.homeBase);
}
Return the base directory containing user home directories. |
public String getUserClass() {
return (this.userClass);
}
Return the user database class name for this component. |
public void lifecycleEvent(LifecycleEvent event) {
// Identify the host we are associated with
try {
host = (Host) event.getLifecycle();
} catch (ClassCastException e) {
log.error(sm.getString("hostConfig.cce", event.getLifecycle()), e);
return;
}
// Process the event that has occurred
if (event.getType().equals(Lifecycle.START_EVENT))
start();
else if (event.getType().equals(Lifecycle.STOP_EVENT))
stop();
}
Process the START event for an associated Host. |
public void setConfigClass(String configClass) {
this.configClass = configClass;
}
Set the Context configuration class name. |
public void setContextClass(String contextClass) {
this.contextClass = contextClass;
}
Set the Context implementation class name. |
public void setDirectoryName(String directoryName) {
this.directoryName = directoryName;
}
Set the directory name for user web applications. |
public void setHomeBase(String homeBase) {
this.homeBase = homeBase;
}
Set the base directory containing user home directories. |
public void setUserClass(String userClass) {
this.userClass = userClass;
}
Set the user database class name for this component. |