Class PackerUtils

java.lang.Object
com.jalios.jcms.tools.PackerUtils

public final class PackerUtils extends Object
  • Field Details

    • conf

      public static PackerUtils conf
    • jsPackerEnabled

      public boolean jsPackerEnabled
    • cssPackerEnabled

      public boolean cssPackerEnabled
    • packerVersion

      public String packerVersion
  • Method Details

    • isJsPackerEnabled

      public static boolean isJsPackerEnabled()
      Check if the JS packer is enabled
      Returns:
      true if enabled, false otherwise
      Since:
      jcms-10.0.2 / JCMS-6923
    • isCssPackerEnabled

      public static boolean isCssPackerEnabled()
      Check if the CSS packer is enabled
      Returns:
      true if enabled, false otherwise
      Since:
      jcms-10.0.2 / JCMS-6923
    • getPackVersion

      public static String getPackVersion()
      Retrieve JS and CSS pack version used in packer URL for improved caching management.
      Returns:
      a version string to be used in JS and CSS packer URL parameter or null if none was specified.
      Since:
      jcms-10