Package org.wso2.carbon.webapp.mgt
Class TomcatUtil
java.lang.Object
org.wso2.carbon.webapp.mgt.TomcatUtil
A set of utility methods for interacting with Embedded Tomcat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddWebappsDeployer(String webappsDir, TomcatGenericWebappsDeployer webappsDeployer) Add a TomcatGenericWebappsDeployerstatic booleancheck unpack wars propertystatic StringgetApplicationNameFromContext(String contextName) static Map<String, TomcatGenericWebappsDeployer> Retrieve the list of registered webapps deployers
-
Constructor Details
-
TomcatUtil
public TomcatUtil()
-
-
Method Details
-
checkUnpackWars
public static boolean checkUnpackWars()check unpack wars property- Returns:
- true if webapp unpacking enabled.
-
addWebappsDeployer
public static void addWebappsDeployer(String webappsDir, TomcatGenericWebappsDeployer webappsDeployer) Add a TomcatGenericWebappsDeployer- Parameters:
webappsDir- The directory in which the webapps are foundwebappsDeployer- The corresponding TomcatGenericWebappsDeployer
-
getWebappsDeployers
Retrieve the list of registered webapps deployers- Returns:
- an unmodifiable list of registered webapps deployers
-
getApplicationNameFromContext
-