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.ResourceLoader
ResourceLoader.VersionComparator
-
-
Field Summary
-
Fields inherited from class org.apache.myfaces.resource.ContractResourceLoader
VERSION_INVALID
-
-
Constructor Summary
Constructors Constructor Description ContractResourceLoaderWrapper()
-
Method Summary
All 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.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, String contractName)
- Specified by:
getResourceVersionin classContractResourceLoader
-
getLibraryVersion
public 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 classContractResourceLoader
-
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName)
- Specified by:
createResourceMetain classContractResourceLoader
-
libraryExists
public boolean libraryExists(String libraryName, String contractName)
- Specified by:
libraryExistsin classContractResourceLoader
-
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
-
libraryExists
public boolean libraryExists(String libraryName)
- Overrides:
libraryExistsin classContractResourceLoader
-
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)
- Overrides:
createResourceMetain classContractResourceLoader
-
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.- Overrides:
getLibraryVersionin classContractResourceLoader
-
getResourceVersion
public String getResourceVersion(String path)
- Overrides:
getResourceVersionin classContractResourceLoader
-
setPrefix
public void setPrefix(String prefix)
- Overrides:
setPrefixin classResourceLoader
-
getPrefix
public String getPrefix()
- Overrides:
getPrefixin classResourceLoader
-
setVersionComparator
protected void setVersionComparator(Comparator<String> versionComparator)
- Overrides:
setVersionComparatorin classResourceLoader
-
getVersionComparator
protected Comparator<String> getVersionComparator()
- Overrides:
getVersionComparatorin classResourceLoader
-
resourceExists
public boolean resourceExists(ResourceMeta resourceMeta)
- Overrides:
resourceExistsin classResourceLoader
-
iterator
public Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
- Overrides:
iteratorin classResourceLoader
-
-