Module org.omnifaces
Package org.omnifaces.resourcehandler
-
Class Summary Class Description CDNResource ThisResource
implementation can be used as a marker class to signal the customResourceHandler
such asCombinedResourceHandler
that 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 ThisResourceHandler
implementation allows the developer to provide external (CDN) URLs instead of the default local URLs for Faces resources.CombinedResource ThisResource
implementation holds all the necessary information about combined resources in order to properly serve combined resources on a single HTTP request.CombinedResourceHandler ThisResourceHandler
implementation will remove all separate script and stylesheet resources which have thetarget
attribute set to"head"
from theUIViewRoot
and 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 ThisInputStream
implementation takes care that all in the constructor given resources are been read in sequence.DefaultResourceHandler A defaultResourceHandler
implementation which hooks on all threeDefaultResourceHandler.createResource(String)
,DefaultResourceHandler.createResource(String, String)
andDefaultResourceHandler.createResource(String, String, String)
methods.DynamicResource ThisResource
implementation represents a cacheable dynamic resource which doesn't necessarily exist as a regular classpath resource.GraphicResource ThisResource
implementation is used by theGraphicImage
component.GraphicResourceHandler ThisResourceHandler
implementation deals withGraphicResource
requests.OmniVersionResourceHandler Appends OmniFaces version to resources with library nameomnifaces
.PWAResourceHandler ThisResourceHandler
generates themanifest.json
and also an offline-awaresw.js
based on anyWebAppManifest
found in the runtime classpath.RemappedResource ThisResource
implementation remaps the given resource to the given request path.ResourceIdentifier Convenience class to represent a resource identifier.SourceMapResourceHandler ThisResourceHandler
implementation will set theSourceMap
response header with the correctly mapped request path to any discovered source map of any CSS and JS resource.UnmappedResourceHandler ThisResourceHandler
implementation 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 additionalFacesServlet
prefix or suffix URL pattern in the default produced resource URLs, such as/jakarta.faces.resource/faces/css/style.css
or/jakarta.faces.resource/css/style.css.xhtml
.VersionedResourceHandler Automatically adds version parameter with query string namev
to 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 ThisResourceHandler
basically 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 toPWAResourceHandler
for 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()
.