Package com.helger.photon.app
Class PhotonAppSettings
java.lang.Object
com.helger.photon.app.PhotonAppSettings
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic com.helger.commons.url.ISimpleURLgetCSSPath(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, com.helger.html.resource.css.ICSSPathProvider aCSS, boolean bRegular) static com.helger.commons.url.ISimpleURLgetJSPath(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, com.helger.html.resource.js.IJSPathProvider aJS, boolean bRegular) static Stringstatic IWebURIToURLConverterstatic booleanstatic booleanstatic voidsetMergeCSSResources(boolean bMergeCSSResources) static voidsetMergeJSResources(boolean bMergeJSResources) static voidsetResourceBundleServletName(String sResourceBundleServletName) static voidsetURIToURLConverter(IWebURIToURLConverter aURIToURLConverter)
-
Field Details
-
DEFAULT_RESOURCE_BUNDLE_SERVLET_NAME
- See Also:
-
-
Method Details
-
getURIToURLConverter
-
setURIToURLConverter
-
getCSSPath
-
getJSPath
-
isMergeCSSResources
public static boolean isMergeCSSResources()- Returns:
trueto merge CSS resources if possible orfalseto include each CSS separately.
-
setMergeCSSResources
public static void setMergeCSSResources(boolean bMergeCSSResources) -
isMergeJSResources
public static boolean isMergeJSResources()- Returns:
trueto merge JS resources if possible orfalseto include each JS separately.
-
setMergeJSResources
public static void setMergeJSResources(boolean bMergeJSResources) -
getResourceBundleServletName
- Returns:
- The name of the resource bundle servlet without a leading nor a
trailing slash. Neither
nullnor empty.
-
setResourceBundleServletName
-