Class SpincastCssYuiCompressorConfigDefault

java.lang.Object
org.spincast.plugins.cssyuicompressor.config.SpincastCssYuiCompressorConfigDefault
All Implemented Interfaces:
SpincastCssYuiCompressorConfig

public class SpincastCssYuiCompressorConfigDefault extends Object implements SpincastCssYuiCompressorConfig
  • Constructor Details

    • SpincastCssYuiCompressorConfigDefault

      @Inject public SpincastCssYuiCompressorConfigDefault(org.spincast.core.config.SpincastConfig spincastConfig)
  • Method Details

    • getSpincastConfig

      protected org.spincast.core.config.SpincastConfig getSpincastConfig()
    • getCssBundlePebbleFunctionName

      public String getCssBundlePebbleFunctionName()
      Description copied from interface: SpincastCssYuiCompressorConfig
      The name of the provided Pebble function to bundle multiple .css files.

      Defaults to "cssBundle".

      Specified by:
      getCssBundlePebbleFunctionName in interface SpincastCssYuiCompressorConfig
    • getCssBundlesUrlPath

      public String getCssBundlesUrlPath()
      Description copied from interface: SpincastCssYuiCompressorConfig
      The relative url path to serve css files bundled using the Pebble "cssBundle()" function.

      Defaults to "/spincast/plugins/cssyuicompressor/cssbundles".

      Specified by:
      getCssBundlesUrlPath in interface SpincastCssYuiCompressorConfig
    • getCssBundlesDir

      public File getCssBundlesDir()
      Description copied from interface: SpincastCssYuiCompressorConfig
      The directory where the generated css bundles will be saved by the Pebble "cssBundle()" function.

      Defaults to "[WRITABLE_DIR]/spincast/plugins/cssyuicompressor/cssBundles". where "[WRITABLE_DIR]" is SpincastConfig.getWritableRootDir().

      Specified by:
      getCssBundlesDir in interface SpincastCssYuiCompressorConfig
    • isCssBundlesIgnoreSslCertificateErrors

      public boolean isCssBundlesIgnoreSslCertificateErrors()
      Description copied from interface: SpincastCssYuiCompressorConfig
      When creating a CSS bundle using the Pebble "cssBundle()" function, should we ignore SSL certificate errors such as errors for self-signed certificates when performing the requests to retrieve the CSS files?

      By default, return true if SpincastConfig.isDevelopmentMode() or SpincastConfig.isTestingMode() are true.

      Specified by:
      isCssBundlesIgnoreSslCertificateErrors in interface SpincastCssYuiCompressorConfig
    • isCssBundlesDisabled

      public boolean isCssBundlesDisabled()
      Description copied from interface: SpincastCssYuiCompressorConfig
      Is bundling disabled?

      This is useful during development when you want changes to the CSS files to be reflected and not be cached.

      By default, return true if SpincastConfig.isDevelopmentMode() is true.

      Specified by:
      isCssBundlesDisabled in interface SpincastCssYuiCompressorConfig