@NotThreadSafe public final class PhotonHTMLHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
META_GENERATOR_VALUE |
| Modifier and Type | Method and Description |
|---|---|
static void |
createHTMLResponse(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
com.helger.servlet.response.UnifiedResponse aUnifiedResponse,
IHTMLProvider aHTMLProvider) |
static com.helger.html.hc.IHCNode |
getCSSNode(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
com.helger.html.resource.css.ICSSPathProvider aCSS,
boolean bRegular) |
static com.helger.html.hc.IHCNode |
getJSNode(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
com.helger.html.resource.js.IJSPathProvider aJS,
boolean bRegular) |
static com.helger.commons.mime.IMimeType |
getMimeType(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
Get the HTML MIME type to use
|
static void |
mergeExternalCSSAndJSNodes(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
com.helger.html.hc.html.metadata.HCHead aHead,
boolean bMergeCSS,
boolean bMergeJS,
IWebSiteResourceBundleProvider aWSRBMgr)
Merge external CSS and JS contents to a single resource for improved
browser performance.
|
public static final String META_GENERATOR_VALUE
@Nonnull public static com.helger.commons.mime.IMimeType getMimeType(@Nullable com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
aRequestScope - The request scope. May be null-null.@Nonnull public static com.helger.html.hc.IHCNode getCSSNode(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.html.resource.css.ICSSPathProvider aCSS, boolean bRegular)
@Nonnull public static com.helger.html.hc.IHCNode getJSNode(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.html.resource.js.IJSPathProvider aJS, boolean bRegular)
public static void createHTMLResponse(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.servlet.response.UnifiedResponse aUnifiedResponse, @Nonnull IHTMLProvider aHTMLProvider)
public static void mergeExternalCSSAndJSNodes(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.html.hc.html.metadata.HCHead aHead, boolean bMergeCSS, boolean bMergeJS, @Nonnull IWebSiteResourceBundleProvider aWSRBMgr)
aRequestScope - Current request scope. Never null.aHead - The HTML head object. Never null.bMergeCSS - true to aggregate CSS entries.bMergeJS - true to aggregate JS entries.aWSRBMgr - The resource bundle provider. May not be null.Copyright © 2014–2023 Philip Helger. All rights reserved.