Package org.apache.myfaces.resource
Class ExternalContextContractResourceLoader
java.lang.Object
org.apache.myfaces.resource.ResourceLoader
org.apache.myfaces.resource.ContractResourceLoader
org.apache.myfaces.resource.ExternalContextContractResourceLoader
- Author:
- lu4242
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoaderResourceLoader.VersionComparator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final PatternIt checks version like this: /1.js, /1_0.js, /1_0_0.js, /100_100.js Used on getResourceVersion to filter resourcesprotected static final PatternIt checks version like this: /1/, /1_0/, /1_0_0/, /100_100/ Used on getLibraryVersion to filter resource directoriesFields inherited from class org.apache.myfaces.resource.ContractResourceLoaderVERSION_INVALID
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) getLibraryVersion(String path, String contractName) Return the max available version found (if exists) or return null if no version available.getResourceInputStream(ResourceMeta resourceMeta) getResourcePaths(String contractName, String path) getResourceURL(ResourceMeta resourceMeta) Return the max available version found (if exists) or return null if no version available.getResourceVersion(String path, String contractName) iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) booleanlibraryExists(String libraryName, String contractName) Methods inherited from class org.apache.myfaces.resource.ContractResourceLoadercreateResourceMeta, getLibraryVersion, getResourceVersion, libraryExistsMethods inherited from class org.apache.myfaces.resource.ResourceLoadergetPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
- 
Field Details- 
VERSION_CHECKERIt checks version like this: /1/, /1_0/, /1_0_0/, /100_100/ Used on getLibraryVersion to filter resource directories
- 
RESOURCE_VERSION_CHECKERIt checks version like this: /1.js, /1_0.js, /1_0_0.js, /100_100.js Used on getResourceVersion to filter resources
 
- 
- 
Constructor Details- 
ExternalContextContractResourceLoader
 
- 
- 
Method Details- 
getResourcePaths
- 
getResourceVersion- Specified by:
- getResourceVersionin class- ContractResourceLoader
 
- 
getLibraryVersionDescription copied from class:ContractResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getLibraryVersionin class- ContractResourceLoader
 
- 
getResourceURLDescription copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getResourceURLin class- ResourceLoader
 
- 
getResourceInputStream- Specified by:
- getResourceInputStreamin class- ResourceLoader
 
- 
createResourceMetapublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) - Specified by:
- createResourceMetain class- ContractResourceLoader
 
- 
libraryExists- Specified by:
- libraryExistsin class- ContractResourceLoader
 
- 
iteratorpublic Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
- iteratorin class- ResourceLoader
 
 
-