Package org.apache.myfaces.resource
Class ResourceLoaderWrapper
- java.lang.Object
-
- org.apache.myfaces.resource.ResourceLoader
-
- org.apache.myfaces.resource.ResourceLoaderWrapper
-
- All Implemented Interfaces:
FacesWrapper<ResourceLoader>
- Direct Known Subclasses:
FacesJSResourceLoader,TempDirFileCacheResourceLoader
public abstract class ResourceLoaderWrapper extends ResourceLoader implements FacesWrapper<ResourceLoader>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoader
ResourceLoader.VersionComparator
-
-
Field Summary
-
Fields inherited from class org.apache.myfaces.resource.ResourceLoader
VERSION_INVALID
-
-
Constructor Summary
Constructors Constructor Description ResourceLoaderWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)StringgetLibraryVersion(String path)Return the max available version found (if exists) or return null if no version available.StringgetPrefix()InputStreamgetResourceInputStream(ResourceMeta resourceMeta)URLgetResourceURL(ResourceMeta resourceMeta)Return the max available version found (if exists) or return null if no version available.StringgetResourceVersion(String path)protected Comparator<String>getVersionComparator()Iterator<String>iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)booleanlibraryExists(String libraryName)booleanresourceExists(ResourceMeta resourceMeta)voidsetPrefix(String prefix)protected voidsetVersionComparator(Comparator<String> versionComparator)-
Methods inherited from class org.apache.myfaces.resource.ResourceLoader
createResourceMeta
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.faces.FacesWrapper
getWrapped
-
-
-
-
Method Detail
-
getResourceVersion
public String getResourceVersion(String path)
- Specified by:
getResourceVersionin classResourceLoader
-
getLibraryVersion
public String getLibraryVersion(String path)
Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getLibraryVersionin classResourceLoader
-
getResourceURL
public URL getResourceURL(ResourceMeta resourceMeta)
Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getResourceURLin classResourceLoader
-
getResourceInputStream
public InputStream getResourceInputStream(ResourceMeta resourceMeta)
- Specified by:
getResourceInputStreamin classResourceLoader
-
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)
- Specified by:
createResourceMetain classResourceLoader
-
libraryExists
public boolean libraryExists(String libraryName)
- Specified by:
libraryExistsin classResourceLoader
-
getPrefix
public String getPrefix()
- Overrides:
getPrefixin classResourceLoader
-
setPrefix
public void setPrefix(String prefix)
- Overrides:
setPrefixin classResourceLoader
-
resourceExists
public boolean resourceExists(ResourceMeta resourceMeta)
- Overrides:
resourceExistsin classResourceLoader
-
getVersionComparator
protected Comparator<String> getVersionComparator()
- Overrides:
getVersionComparatorin classResourceLoader
-
setVersionComparator
protected void setVersionComparator(Comparator<String> versionComparator)
- Overrides:
setVersionComparatorin classResourceLoader
-
iterator
public Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
- Overrides:
iteratorin classResourceLoader
-
-