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 ResourceMeta
createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)
ResourceMeta
createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName)
String
getLibraryVersion(String path)
Return the max available version found (if exists) or return null if no version available.String
getLibraryVersion(String path, String contractName)
Return the max available version found (if exists) or return null if no version available.String
getPrefix()
InputStream
getResourceInputStream(ResourceMeta resourceMeta)
URL
getResourceURL(ResourceMeta resourceMeta)
Return the max available version found (if exists) or return null if no version available.String
getResourceVersion(String path)
String
getResourceVersion(String path, String contractName)
protected Comparator<String>
getVersionComparator()
Iterator<String>
iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
boolean
libraryExists(String libraryName)
boolean
libraryExists(String libraryName, String contractName)
boolean
resourceExists(ResourceMeta resourceMeta)
void
setPrefix(String prefix)
protected void
setVersionComparator(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:
getResourceVersion
in classContractResourceLoader
-
getLibraryVersion
public String getLibraryVersion(String path, String contractName)
Description copied from class:ContractResourceLoader
Return the max available version found (if exists) or return null if no version available.- Specified by:
getLibraryVersion
in classContractResourceLoader
-
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName)
- Specified by:
createResourceMeta
in classContractResourceLoader
-
libraryExists
public boolean libraryExists(String libraryName, String contractName)
- Specified by:
libraryExists
in classContractResourceLoader
-
getResourceURL
public URL getResourceURL(ResourceMeta resourceMeta)
Description copied from class:ResourceLoader
Return the max available version found (if exists) or return null if no version available.- Specified by:
getResourceURL
in classResourceLoader
-
getResourceInputStream
public InputStream getResourceInputStream(ResourceMeta resourceMeta)
- Specified by:
getResourceInputStream
in classResourceLoader
-
libraryExists
public boolean libraryExists(String libraryName)
- Overrides:
libraryExists
in classContractResourceLoader
-
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)
- Overrides:
createResourceMeta
in classContractResourceLoader
-
getLibraryVersion
public String getLibraryVersion(String path)
Description copied from class:ResourceLoader
Return the max available version found (if exists) or return null if no version available.- Overrides:
getLibraryVersion
in classContractResourceLoader
-
getResourceVersion
public String getResourceVersion(String path)
- Overrides:
getResourceVersion
in classContractResourceLoader
-
setPrefix
public void setPrefix(String prefix)
- Overrides:
setPrefix
in classResourceLoader
-
getPrefix
public String getPrefix()
- Overrides:
getPrefix
in classResourceLoader
-
setVersionComparator
protected void setVersionComparator(Comparator<String> versionComparator)
- Overrides:
setVersionComparator
in classResourceLoader
-
getVersionComparator
protected Comparator<String> getVersionComparator()
- Overrides:
getVersionComparator
in classResourceLoader
-
resourceExists
public boolean resourceExists(ResourceMeta resourceMeta)
- Overrides:
resourceExists
in classResourceLoader
-
iterator
public Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
- Overrides:
iterator
in classResourceLoader
-
-