org.apache.myfaces.commons.resourcehandler.resource
Class ResourceLoaderWrapper
java.lang.Object
org.apache.myfaces.commons.resourcehandler.resource.ResourceLoader
org.apache.myfaces.commons.resourcehandler.resource.ResourceLoaderWrapper
- All Implemented Interfaces:
- javax.faces.FacesWrapper<ResourceLoader>
- Direct Known Subclasses:
- ExtendedResourceLoaderWrapper, GZIPResourceLoader
public abstract class ResourceLoaderWrapper
- extends ResourceLoader
- implements javax.faces.FacesWrapper<ResourceLoader>
- Author:
- Leonardo Uribe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.FacesWrapper |
getWrapped |
ResourceLoaderWrapper
public ResourceLoaderWrapper()
getResourceVersion
public java.lang.String getResourceVersion(java.lang.String path)
- Specified by:
getResourceVersion
in class ResourceLoader
getLibraryVersion
public java.lang.String getLibraryVersion(java.lang.String path)
- Description copied from class:
ResourceLoader
- Return the max available version found (if exists) or
return null if no version available.
- Specified by:
getLibraryVersion
in class ResourceLoader
getResourceURL
public java.net.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 class ResourceLoader
getResourceInputStream
public java.io.InputStream getResourceInputStream(ResourceMeta resourceMeta)
- Specified by:
getResourceInputStream
in class ResourceLoader
createResourceMeta
public ResourceMeta createResourceMeta(java.lang.String prefix,
java.lang.String libraryName,
java.lang.String libraryVersion,
java.lang.String resourceName,
java.lang.String resourceVersion)
- Specified by:
createResourceMeta
in class ResourceLoader
libraryExists
public boolean libraryExists(java.lang.String libraryName)
- Specified by:
libraryExists
in class ResourceLoader
getPrefix
public java.lang.String getPrefix()
- Overrides:
getPrefix
in class ResourceLoader
setPrefix
public void setPrefix(java.lang.String prefix)
- Overrides:
setPrefix
in class ResourceLoader
resourceExists
public boolean resourceExists(ResourceMeta resourceMeta)
- Overrides:
resourceExists
in class ResourceLoader
getVersionComparator
protected java.util.Comparator<java.lang.String> getVersionComparator()
- Overrides:
getVersionComparator
in class ResourceLoader
setVersionComparator
protected void setVersionComparator(java.util.Comparator<java.lang.String> versionComparator)
- Overrides:
setVersionComparator
in class ResourceLoader
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.