org.apache.myfaces.resource
Class RootExternalContextResourceLoader

java.lang.Object
  extended by org.apache.myfaces.shared.resource.ResourceLoader
      extended by org.apache.myfaces.resource.RootExternalContextResourceLoader

public class RootExternalContextResourceLoader
extends ResourceLoader

A resource loader implementation which loads resources from the webapp root. It uses the methods on ExternalContext for handle resources.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.myfaces.shared.resource.ResourceLoader
ResourceLoader.VersionComparator
 
Field Summary
 
Fields inherited from class org.apache.myfaces.shared.resource.ResourceLoader
VERSION_INVALID
 
Constructor Summary
RootExternalContextResourceLoader()
           
 
Method Summary
 ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)
           
 String getLibraryVersion(String path)
           
 InputStream getResourceInputStream(ResourceMeta resourceMeta)
           
protected  Set<String> getResourcePaths(String path)
           
 URL getResourceURL(ResourceMeta resourceMeta)
           
 URL getResourceURL(String resourceId)
           
 String getResourceVersion(String path)
           
 boolean libraryExists(String libraryName)
           
 
Methods inherited from class org.apache.myfaces.shared.resource.ResourceLoader
createResourceMeta, getPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootExternalContextResourceLoader

public RootExternalContextResourceLoader()
Method Detail

getResourcePaths

protected Set<String> getResourcePaths(String path)

getResourceVersion

public String getResourceVersion(String path)
Specified by:
getResourceVersion in class ResourceLoader

getLibraryVersion

public String getLibraryVersion(String path)
Specified by:
getLibraryVersion in class ResourceLoader

getResourceURL

public URL getResourceURL(String resourceId)

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)
Specified by:
createResourceMeta in class ResourceLoader

libraryExists

public boolean libraryExists(String libraryName)
Specified by:
libraryExists in class ResourceLoader


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.