Module org.omnifaces
Package org.omnifaces.resourcehandler
-
Class Summary Class Description CDNResource ThisResourceimplementation 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.CDNResourceHandler ThisResourceHandlerimplementation allows the developer to provide external (CDN) URLs instead of the default local URLs for Faces resources.CombinedResource ThisResourceimplementation holds all the necessary information about combined resources in order to properly serve combined resources on a single HTTP request.CombinedResourceHandler 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.CombinedResourceInfo This class is a wrapper which collects all combined resources and stores it in the cache.CombinedResourceInfo.Builder Use this builder to create an instance of combined resource info and put it in the cache if absent.CombinedResourceInputStream ThisInputStreamimplementation takes care that all in the constructor given resources are been read in sequence.DefaultResourceHandler A defaultResourceHandlerimplementation which hooks on all threeDefaultResourceHandler.createResource(String),DefaultResourceHandler.createResource(String, String)andDefaultResourceHandler.createResource(String, String, String)methods.DynamicResource ThisResourceimplementation represents a cacheable dynamic resource which doesn't necessarily exist as a regular classpath resource.GraphicResource ThisResourceimplementation is used by theGraphicImagecomponent.GraphicResourceHandler ThisResourceHandlerimplementation deals withGraphicResourcerequests.OmniVersionResourceHandler Appends OmniFaces version to resources with library nameomnifaces.PWAResourceHandler ThisResourceHandlergenerates themanifest.jsonand also an offline-awaresw.jsbased on anyWebAppManifestfound in the runtime classpath.RemappedResource ThisResourceimplementation remaps the given resource to the given request path.ResourceIdentifier Convenience class to represent a resource identifier.SourceMapResourceHandler ThisResourceHandlerimplementation will set theSourceMapresponse header with the correctly mapped request path to any discovered source map of any CSS and JS resource.UnmappedResourceHandler 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.VersionedResourceHandler Automatically adds version parameter with query string namevto all resource URLs so, in production mode they will be cached forever (or as configured in web.xml), but will not be stale when a new version of the app is deployed.ViewResourceHandler ThisResourceHandlerbasically turns any concrete non-Facelets file into a Faces view, so that you can use EL expressions and even Faces components in them.WebAppManifest Please refer toPWAResourceHandlerfor usage instructions.WebAppManifest.ImageResource To be used inWebAppManifest.getIcons().WebAppManifest.RelatedApplication To be used inWebAppManifest.getRelatedApplications()WebAppManifest.Size To be used inWebAppManifest.ImageResource.getSizes(). -
Enum Summary Enum Description WebAppManifest.Category Enumeration of categories, to be used inWebAppManifest.getCategories().WebAppManifest.Dir Enumeration of text direction types, to be used inWebAppManifest.getDir().WebAppManifest.Display Enumeration of display modes, to be used inWebAppManifest.getDisplay().WebAppManifest.Orientation Enumeration of orientation modes, to be used inWebAppManifest.getOrientation().WebAppManifest.Platform Enumeration of related application platforms, to be used inWebAppManifest.RelatedApplication.getPlatform().