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- Author:
- Craig R. McClanahan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllow()
getDeny()
void
lifecycleEvent
(LifecycleEvent event) Process the START and STOP events for an associated Host.void
Set the regular expression used to test for user who deployment is allowed.void
setConfigClass
(String configClass) Set the Context configuration class name.void
setContextClass
(String contextClass) Set the Context implementation class name.void
Set the regular expression used to test for user who deployment is denied.void
setDirectoryName
(String directoryName) Set the directory name for user web applications.void
setHomeBase
(String homeBase) Set the base directory containing user home directories.void
setUserClass
(String userClass) Set the user database class name for this component.
-
Constructor Details
-
UserConfig
public UserConfig()
-
-
Method Details
-
getConfigClass
- Returns:
- the Context configuration class name.
-
setConfigClass
Set the Context configuration class name.- Parameters:
configClass
- The new Context configuration class name.
-
getContextClass
- Returns:
- the Context implementation class name.
-
setContextClass
Set the Context implementation class name.- Parameters:
contextClass
- The new Context implementation class name.
-
getDirectoryName
- Returns:
- the directory name for user web applications.
-
setDirectoryName
Set the directory name for user web applications.- Parameters:
directoryName
- The new directory name
-
getHomeBase
- Returns:
- the base directory containing user home directories.
-
setHomeBase
Set the base directory containing user home directories.- Parameters:
homeBase
- The new base directory
-
getUserClass
- Returns:
- the user database class name for this component.
-
setUserClass
Set the user database class name for this component.- Parameters:
userClass
- The user database class name
-
getAllow
- Returns:
- the regular expression used to test for user who deployment is 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 used to test for user who deployment is 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:
lifecycleEvent
in interfaceLifecycleListener
- Parameters:
event
- The lifecycle event that has occurred
-