Package org.apache.myfaces.resource
Class ContractResourceLoaderWrapper
- java.lang.Object
- 
- org.apache.myfaces.resource.ResourceLoader
- 
- org.apache.myfaces.resource.ContractResourceLoader
- 
- org.apache.myfaces.resource.ContractResourceLoaderWrapper
 
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<ContractResourceLoader>
 - Direct Known Subclasses:
- TempDirFileCacheContractResourceLoader
 
 public abstract class ContractResourceLoaderWrapper extends ContractResourceLoader implements FacesWrapper<ContractResourceLoader> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoaderResourceLoader.VersionComparator
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.myfaces.resource.ContractResourceLoaderVERSION_INVALID
 
- 
 - 
Constructor SummaryConstructors Constructor Description ContractResourceLoaderWrapper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName)StringgetLibraryVersion(String path)Return the max available version found (if exists) or return null if no version available.StringgetLibraryVersion(String path, String contractName)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)StringgetResourceVersion(String path, String contractName)protected Comparator<String>getVersionComparator()Iterator<String>iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)booleanlibraryExists(String libraryName)booleanlibraryExists(String libraryName, String contractName)booleanresourceExists(ResourceMeta resourceMeta)voidsetPrefix(String prefix)protected voidsetVersionComparator(Comparator<String> versionComparator)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jakarta.faces.FacesWrappergetWrapped
 
- 
 
- 
- 
- 
Method Detail- 
getResourceVersionpublic String getResourceVersion(String path, String contractName) - Specified by:
- getResourceVersionin class- ContractResourceLoader
 
 - 
getLibraryVersionpublic String getLibraryVersion(String path, String contractName) Description copied from class:ContractResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getLibraryVersionin class- ContractResourceLoader
 
 - 
createResourceMetapublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) - Specified by:
- createResourceMetain class- ContractResourceLoader
 
 - 
libraryExistspublic boolean libraryExists(String libraryName, String contractName) - Specified by:
- libraryExistsin class- ContractResourceLoader
 
 - 
getResourceURLpublic 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 class- ResourceLoader
 
 - 
getResourceInputStreampublic InputStream getResourceInputStream(ResourceMeta resourceMeta) - Specified by:
- getResourceInputStreamin class- ResourceLoader
 
 - 
libraryExistspublic boolean libraryExists(String libraryName) - Overrides:
- libraryExistsin class- ContractResourceLoader
 
 - 
createResourceMetapublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) - Overrides:
- createResourceMetain class- ContractResourceLoader
 
 - 
getLibraryVersionpublic String getLibraryVersion(String path) Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Overrides:
- getLibraryVersionin class- ContractResourceLoader
 
 - 
getResourceVersionpublic String getResourceVersion(String path) - Overrides:
- getResourceVersionin class- ContractResourceLoader
 
 - 
setPrefixpublic void setPrefix(String prefix) - Overrides:
- setPrefixin class- ResourceLoader
 
 - 
getPrefixpublic String getPrefix() - Overrides:
- getPrefixin class- ResourceLoader
 
 - 
setVersionComparatorprotected void setVersionComparator(Comparator<String> versionComparator) - Overrides:
- setVersionComparatorin class- ResourceLoader
 
 - 
getVersionComparatorprotected Comparator<String> getVersionComparator() - Overrides:
- getVersionComparatorin class- ResourceLoader
 
 - 
resourceExistspublic boolean resourceExists(ResourceMeta resourceMeta) - Overrides:
- resourceExistsin class- ResourceLoader
 
 - 
iteratorpublic Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
- iteratorin class- ResourceLoader
 
 
- 
 
-