Class PhotonAppSettings

java.lang.Object
com.helger.photon.app.PhotonAppSettings

@ThreadSafe public final class PhotonAppSettings extends Object
Global photon-app settings. It contains the following settings:
  • The converter from URI to URL
  • To merge all CSS together or not to merge them
  • To merge all JS together or not to merge them
  • The name of the resource bundle servlet
Author:
Philip Helger
  • Field Details

    • DEFAULT_RESOURCE_BUNDLE_SERVLET_NAME

      public static final String DEFAULT_RESOURCE_BUNDLE_SERVLET_NAME
      See Also:
  • Method Details

    • getURIToURLConverter

      @Nonnull public static IWebURIToURLConverter getURIToURLConverter()
    • setURIToURLConverter

      public static void setURIToURLConverter(@Nonnull IWebURIToURLConverter aURIToURLConverter)
    • getCSSPath

      @Nonnull public static com.helger.commons.url.ISimpleURL getCSSPath(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.html.resource.css.ICSSPathProvider aCSS, boolean bRegular)
    • getJSPath

      @Nonnull public static com.helger.commons.url.ISimpleURL getJSPath(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.html.resource.js.IJSPathProvider aJS, boolean bRegular)
    • isMergeCSSResources

      public static boolean isMergeCSSResources()
      Returns:
      true to merge CSS resources if possible or false to include each CSS separately.
    • setMergeCSSResources

      public static void setMergeCSSResources(boolean bMergeCSSResources)
    • isMergeJSResources

      public static boolean isMergeJSResources()
      Returns:
      true to merge JS resources if possible or false to include each JS separately.
    • setMergeJSResources

      public static void setMergeJSResources(boolean bMergeJSResources)
    • getResourceBundleServletName

      @Nonnull @Nonempty public static String getResourceBundleServletName()
      Returns:
      The name of the resource bundle servlet without a leading nor a trailing slash. Neither null nor empty.
    • setResourceBundleServletName

      public static void setResourceBundleServletName(@Nonnull @Nonempty String sResourceBundleServletName)