Package org.apache.catalina.startup
Class UserConfig
- java.lang.Object
- 
- org.apache.catalina.startup.UserConfig
 
- 
- All Implemented Interfaces:
- LifecycleListener
 
 public final class UserConfig extends java.lang.Object implements LifecycleListener Startup event listener for a Host 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~xxxxx, where xxxxx is the username of the owning user for that web application- Author:
- Craig R. McClanahan
 
- 
- 
Constructor SummaryConstructors Constructor Description UserConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAllow()java.lang.StringgetConfigClass()java.lang.StringgetContextClass()java.lang.StringgetDeny()java.lang.StringgetDirectoryName()java.lang.StringgetHomeBase()java.lang.StringgetUserClass()voidlifecycleEvent(LifecycleEvent event)Process the START event for an associated Host.voidsetAllow(java.lang.String allow)Set the regular expression used to test for user who deployment is allowed.voidsetConfigClass(java.lang.String configClass)Set the Context configuration class name.voidsetContextClass(java.lang.String contextClass)Set the Context implementation class name.voidsetDeny(java.lang.String deny)Set the regular expression used to test for user who deployment is denied.voidsetDirectoryName(java.lang.String directoryName)Set the directory name for user web applications.voidsetHomeBase(java.lang.String homeBase)Set the base directory containing user home directories.voidsetUserClass(java.lang.String userClass)Set the user database class name for this component.
 
- 
- 
- 
Method Detail- 
getConfigClasspublic java.lang.String getConfigClass() - Returns:
- the Context configuration class name.
 
 - 
setConfigClasspublic void setConfigClass(java.lang.String configClass) Set the Context configuration class name.- Parameters:
- configClass- The new Context configuration class name.
 
 - 
getContextClasspublic java.lang.String getContextClass() - Returns:
- the Context implementation class name.
 
 - 
setContextClasspublic void setContextClass(java.lang.String contextClass) Set the Context implementation class name.- Parameters:
- contextClass- The new Context implementation class name.
 
 - 
getDirectoryNamepublic java.lang.String getDirectoryName() - Returns:
- the directory name for user web applications.
 
 - 
setDirectoryNamepublic void setDirectoryName(java.lang.String directoryName) Set the directory name for user web applications.- Parameters:
- directoryName- The new directory name
 
 - 
getHomeBasepublic java.lang.String getHomeBase() - Returns:
- the base directory containing user home directories.
 
 - 
setHomeBasepublic void setHomeBase(java.lang.String homeBase) Set the base directory containing user home directories.- Parameters:
- homeBase- The new base directory
 
 - 
getUserClasspublic java.lang.String getUserClass() - Returns:
- the user database class name for this component.
 
 - 
setUserClasspublic void setUserClass(java.lang.String userClass) Set the user database class name for this component.- Parameters:
- userClass- The user database class name
 
 - 
getAllowpublic java.lang.String getAllow() - Returns:
- the regular expression used to test for user who deployment is allowed.
 
 - 
setAllowpublic void setAllow(java.lang.String allow) Set the regular expression used to test for user who deployment is allowed.- Parameters:
- allow- The new allow expression
 
 - 
getDenypublic java.lang.String getDeny() - Returns:
- the regular expression used to test for user who deployment is denied.
 
 - 
setDenypublic void setDeny(java.lang.String deny) Set the regular expression used to test for user who deployment is denied.- Parameters:
- deny- The new deny expression
 
 - 
lifecycleEventpublic void lifecycleEvent(LifecycleEvent event) Process the START event for an associated Host.- Specified by:
- lifecycleEventin interface- LifecycleListener
- Parameters:
- event- The lifecycle event that has occurred
 
 
- 
 
-