Class TomcatUtil

java.lang.Object
org.wso2.carbon.webapp.mgt.TomcatUtil

public class TomcatUtil extends Object
A set of utility methods for interacting with Embedded Tomcat
  • 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 found
      webappsDeployer - The corresponding TomcatGenericWebappsDeployer
    • getWebappsDeployers

      public static Map<String,TomcatGenericWebappsDeployer> getWebappsDeployers()
      Retrieve the list of registered webapps deployers
      Returns:
      an unmodifiable list of registered webapps deployers
    • getApplicationNameFromContext

      public static String getApplicationNameFromContext(String contextName)