Class UserConfig
java.lang.Object
org.apache.catalina.startup.UserConfig
- All Implemented Interfaces:
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-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllow()Returns the regular expression that defines allowed users.Returns the Context configuration class name.Returns the Context implementation class name.getDeny()Returns the regular expression that defines denied users.Returns the directory name for user web applications.Returns the base directory containing user home directories.Returns the user database class name.voidlifecycleEvent(LifecycleEvent event) Process the START and STOP events for an associated Host.voidSet the regular expression used to test for user who deployment is allowed.voidsetConfigClass(String configClass) Sets the Context configuration class name.voidsetContextClass(String contextClass) Sets the Context implementation class name.voidSet the regular expression used to test for user who deployment is denied.voidsetDirectoryName(String directoryName) Sets the directory name for user web applications.voidsetHomeBase(String homeBase) Sets the base directory containing user home directories.voidsetUserClass(String userClass) Sets the user database class name.
-
Constructor Details
-
UserConfig
public UserConfig()Constructs a new UserConfig.
-
-
Method Details
-
getConfigClass
Returns the Context configuration class name.- Returns:
- the Context configuration class name
-
setConfigClass
Sets the Context configuration class name.- Parameters:
configClass- The new Context configuration class name
-
getContextClass
Returns the Context implementation class name.- Returns:
- the Context implementation class name
-
setContextClass
Sets the Context implementation class name.- Parameters:
contextClass- The new Context implementation class name
-
getDirectoryName
Returns the directory name for user web applications.- Returns:
- the directory name
-
setDirectoryName
Sets the directory name for user web applications.- Parameters:
directoryName- The new directory name
-
getHomeBase
Returns the base directory containing user home directories.- Returns:
- the base directory
-
setHomeBase
Sets the base directory containing user home directories.- Parameters:
homeBase- The new base directory
-
getUserClass
Returns the user database class name.- Returns:
- the user database class name
-
setUserClass
Sets the user database class name.- Parameters:
userClass- The user database class name
-
getAllow
Returns the regular expression that defines allowed users.- Returns:
- the allow pattern, or null if all users are allowed
-
setAllow
Set the regular expression used to test for user who deployment is allowed.- Parameters:
allow- The new allow expression
-
getDeny
Returns the regular expression that defines denied users.- Returns:
- the deny pattern, or null if no users are denied
-
setDeny
Set the regular expression used to test for user who deployment is denied.- Parameters:
deny- The new deny expression
-
lifecycleEvent
Process the START and STOP events for an associated Host.- Specified by:
lifecycleEventin interfaceLifecycleListener- Parameters:
event- The lifecycle event that has occurred
-