Uses of Class
com.sun.faces.application.resource.ResourceInfo
-
Uses of ResourceInfo in com.sun.faces.application.resource
Modifier and TypeClassDescriptionclass
ClientResourceInfo
is a simple wrapper class for information pertinent to building a complete resource path using a Library.class
Modifier and TypeMethodDescriptionResourceCache.add
(ResourceInfo info, List<String> contracts) Add theResourceInfo
to the internal cache.ClasspathResourceHelper.findResource
(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) FaceletWebappResourceHelper.findResource
(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) abstract ResourceInfo
ResourceHelper.findResource
(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) Search for the specified resource based in the library/localePrefix/resourceName combination in an implementation dependent manner.ResourceManager.findResource
(String libraryName, String resourceName, String contentType, boolean isViewResource, FacesContext ctx) ResourceManager.findResource
(String libraryName, String resourceName, String contentType, FacesContext ctx) WebappResourceHelper.findResource
(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) ResourceManager.findViewResource
(String resourceName, String contentType, FacesContext facesContext) Modifier and TypeMethodDescriptionResourceCache.add
(ResourceInfo info, List<String> contracts) Add theResourceInfo
to the internal cache.void
ResourceInfo.copy
(ResourceInfo other) ResourceHelper.getInputStream
(ResourceInfo toStream, FacesContext ctx) If the resource is compressable, return an InputStream to read the compressed content, otherwise, callResourceHelper.getNonCompressedInputStream(ResourceInfo, jakarta.faces.context.FacesContext)
to return the content of the original resource.long
ResourceHelper.getLastModified
(ResourceInfo resource, FacesContext ctx) The default implementation of this method will call through toResourceHelper.getURL(ResourceInfo, jakarta.faces.context.FacesContext)
and leverage the URL to obtain the date information of the resource and return the value ofURLConnection.getLastModified()
protected InputStream
ClasspathResourceHelper.getNonCompressedInputStream
(ResourceInfo resource, FacesContext ctx) protected InputStream
FaceletWebappResourceHelper.getNonCompressedInputStream
(ResourceInfo info, FacesContext ctx) protected abstract InputStream
ResourceHelper.getNonCompressedInputStream
(ResourceInfo info, FacesContext ctx) If aResourceInfo
is not compressable,ResourceHelper.getInputStream(ResourceInfo, jakarta.faces.context.FacesContext)
will call this method to return a stream to the actual resource.protected InputStream
WebappResourceHelper.getNonCompressedInputStream
(ResourceInfo resource, FacesContext ctx) ClasspathResourceHelper.getURL
(ResourceInfo resource, FacesContext ctx) FaceletWebappResourceHelper.getURL
(ResourceInfo resource, FacesContext ctx) abstract URL
ResourceHelper.getURL
(ResourceInfo resource, FacesContext ctx) WebappResourceHelper.getURL
(ResourceInfo resource, FacesContext ctx) ModifierConstructorDescriptionResourceImpl
(ResourceInfo resourceInfo, String contentType, long initialTime, long maxAge) Creates a new instance of ResourceBaseResourceInfo
(ResourceInfo other, boolean copyLocalePrefix)