public class ExtendedWidgetResourceLoader extends SimpleHybrisWidgetResourceLoader
APPLICATION_THEME_CSS, CACHED_MERGED_CSS, CNGPRELOAD, CNGPRELOAD_CSS, COCKPITNG_RESOURCELOADER_CACHE_EXPIRATION, COCKPITNG_WIDGET_RESOURCE_LOADER_CACHE_CONTROL, CSS_CACHE_ENABLED, CSS_LEGACY_IE_IMPORT, IE_CSS_SPLIT_CACHE, JS_DEPENDENCY_VARIABLE, MAX_LEGACY_IE_IMPORT_FILES, MAX_LEGACY_IE_IMPORT_FILES_LEVEL_1, MAX_LEGACY_IE_IMPORT_FILES_NESTING_LEVEL| Constructor and Description |
|---|
ExtendedWidgetResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createCssFileImportString(String path)
Creates CSS import path ready to add to CSS stylesheet
|
String |
getAdjustedUrl(AbstractCockpitComponentDefinition def,
String filename) |
protected List<String> |
getCssFilesAsStrings(String mainSlotId,
javax.servlet.http.HttpServletRequest request)
Returns all css resources that should be preloaded as strings.
|
String |
getCssPathForDefinition(AbstractCockpitComponentDefinition def) |
static String |
getIdWithoutPackage(AbstractCockpitComponentDefinition definition) |
boolean |
isFileExistingInJar(String pathArg) |
appendResponse, clearCssCache, createHtmlDateFormat, doGet, doGetInternal, getApplicationContext, getCockpitProperties, getFallbackResourceLoader, getResourceAsStream, getResourceAsStreamFromJar, getResourceAsStreamFromJar, getResourceAsStreamFromJar, getWidgetLibUtils, getWidgetResourceReader, hasResourceInJar, init, isCssCached, isSplitForLegacyIeEnabled, processRequestURI, processResponseHeader, reset, splitImportsForLegacyIe, writeCachedCssChunkForLegacyIe, writeMergedWidgetCssdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected List<String> getCssFilesAsStrings(String mainSlotId, javax.servlet.http.HttpServletRequest request)
SimpleHybrisWidgetResourceLoadergetCssFilesAsStrings in class SimpleHybrisWidgetResourceLoadermainSlotId - the widgets mainSlot idrequest - the request passed to SimpleHybrisWidgetResourceLoader.doGet(HttpServletRequest, HttpServletResponse)protected String createCssFileImportString(String path)
path - of the CSS stylesheetIllegalArgumentException - when path is null or emptypublic String getCssPathForDefinition(AbstractCockpitComponentDefinition def)
public static String getIdWithoutPackage(AbstractCockpitComponentDefinition definition)
public boolean isFileExistingInJar(String pathArg)
public String getAdjustedUrl(AbstractCockpitComponentDefinition def, String filename)
Copyright © 2018. All rights reserved.