Module org.omnifaces
Package org.omnifaces.resourcehandler
package org.omnifaces.resourcehandler
-
ClassDescriptionThis
Resourceimplementation can be used as a marker class to signal the customResourceHandlersuch asCombinedResourceHandlerthat the given resource actually returns a CDN URL, and offers a method to return the local URL which can be used as fallback in case the CDN request errors out.ThisResourceHandlerimplementation allows the developer to provide external (CDN) URLs instead of the default local URLs for Faces resources.ThisResourceimplementation holds all the necessary information about combined resources in order to properly serve combined resources on a single HTTP request.ThisResourceHandlerimplementation will remove all separate script and stylesheet resources which have thetargetattribute set to"head"from theUIViewRootand create a combined one for all scripts and another combined one for all stylesheets.This class is a wrapper which collects all combined resources and stores it in the cache.Use this builder to create an instance of combined resource info and put it in the cache if absent.ThisInputStreamimplementation takes care that all in the constructor given resources are been read in sequence.A defaultResourceHandlerimplementation which hooks on all threeDefaultResourceHandler.createResource(String),DefaultResourceHandler.createResource(String, String)andDefaultResourceHandler.createResource(String, String, String)methods.ThisResourceimplementation represents a cacheable dynamic resource which doesn't necessarily exist as a regular classpath resource.ThisResourceimplementation is used by theGraphicImagecomponent.ThisResourceHandlerimplementation deals withGraphicResourcerequests.Appends OmniFaces version to resources with library nameomnifaces.ThisResourceHandlergenerates themanifest.jsonand also an offline-awaresw.jsbased on anyWebAppManifestfound in the runtime classpath.ThisResourceimplementation remaps the given resource to the given request path.Convenience class to represent a resource identifier.ThisResourceHandlerimplementation will set theSourceMapresponse header with the correctly mapped request path to any discovered source map of any CSS and JS resource.ThisResourceHandlerimplementation allows the developer to map Faces resources on an URL pattern of/jakarta.faces.resource/*(basically, the value ofResourceHandler.RESOURCE_IDENTIFIER) without the need for an additionalFacesServletprefix or suffix URL pattern in the default produced resource URLs, such as/jakarta.faces.resource/faces/css/style.cssor/jakarta.faces.resource/css/style.css.xhtml.Automatically adds version parameter with query string namevto all resource URLs so that the browser cache will be busted whenever the version parameter changes.ThisResourceHandlerbasically turns any concrete non-Facelets file into a Faces view, so that you can use EL expressions and even Faces components in them.Please refer toPWAResourceHandlerfor usage instructions.Enumeration of categories, to be used inWebAppManifest.getCategories().Enumeration of text direction types, to be used inWebAppManifest.getDir().Enumeration of display modes, to be used inWebAppManifest.getDisplay().To be used inWebAppManifest.getIcons().Enumeration of orientation modes, to be used inWebAppManifest.getOrientation().Enumeration of related application platforms, to be used inWebAppManifest.RelatedApplication.getPlatform().To be used inWebAppManifest.getRelatedApplications()To be used inWebAppManifest.getScreenshots()AWebAppManifest.Screenshotform factorto be usedWebAppManifest.getShortcuts()To be used inWebAppManifest.ImageResource.getSizes().