org.apache.myfaces.resource
Class ExternalContextContractResourceLoader
java.lang.Object
org.apache.myfaces.shared.resource.ResourceLoader
org.apache.myfaces.shared.resource.ContractResourceLoader
org.apache.myfaces.resource.ExternalContextContractResourceLoader
public class ExternalContextContractResourceLoader
- extends ContractResourceLoader
- Author:
- lu4242
Field Summary |
protected static Pattern |
RESOURCE_VERSION_CHECKER
It checks version like this: /1.js, /1_0.js, /1_0_0.js, /100_100.js
Used on getResourceVersion to filter resources |
protected static Pattern |
VERSION_CHECKER
It checks version like this: /1/, /1_0/, /1_0_0/, /100_100/
Used on getLibraryVersion to filter resource directories |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION_CHECKER
protected static final Pattern VERSION_CHECKER
- It checks version like this: /1/, /1_0/, /1_0_0/, /100_100/
Used on getLibraryVersion to filter resource directories
RESOURCE_VERSION_CHECKER
protected static final Pattern RESOURCE_VERSION_CHECKER
- It checks version like this: /1.js, /1_0.js, /1_0_0.js, /100_100.js
Used on getResourceVersion to filter resources
ExternalContextContractResourceLoader
public ExternalContextContractResourceLoader(String prefix)
getResourcePaths
protected Set<String> getResourcePaths(String contractName,
String path)
getResourceVersion
public String getResourceVersion(String path,
String contractName)
- Specified by:
getResourceVersion
in class ContractResourceLoader
getLibraryVersion
public String getLibraryVersion(String path,
String contractName)
- Specified by:
getLibraryVersion
in class ContractResourceLoader
getResourceURL
public URL getResourceURL(ResourceMeta resourceMeta)
- Specified by:
getResourceURL
in class ResourceLoader
getResourceInputStream
public InputStream getResourceInputStream(ResourceMeta resourceMeta)
- Specified by:
getResourceInputStream
in class ResourceLoader
createResourceMeta
public ResourceMeta createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion,
String contractName)
- Specified by:
createResourceMeta
in class ContractResourceLoader
libraryExists
public boolean libraryExists(String libraryName,
String contractName)
- Specified by:
libraryExists
in class ContractResourceLoader
Copyright © 2014 The Apache Software Foundation. All rights reserved.