public final class FileSystemResourceLoader extends Object implements ResourceLoader
ResourceLoader
that deals with the expanded image of a war file
on a file system.Constructor and Description |
---|
FileSystemResourceLoader(File root) |
Modifier and Type | Method and Description |
---|---|
URL |
getCatalogFile()
Gets the catalog XML file that should be consulted when
loading resources from this
ResourceLoader . |
URL |
getResource(String path)
Returns the actual location of the resource from the 'path'
that represents a virtual locaion of a file inside a web application.
|
Set<String> |
getResourcePaths(String path)
Returns the list of files in the given directory.
|
public FileSystemResourceLoader(File root)
public URL getResource(String path) throws MalformedURLException
ResourceLoader
getResource
in interface ResourceLoader
path
- Desiganates an absolute path within an web application, such as:
'/WEB-INF/web.xml' or some such.MalformedURLException
public URL getCatalogFile() throws MalformedURLException
ResourceLoader
ResourceLoader
.getCatalogFile
in interface ResourceLoader
MalformedURLException
public Set<String> getResourcePaths(String path)
ResourceLoader
getResourcePaths
in interface ResourceLoader
ServletContext.getResourcePaths(String)
Copyright © 2015 Oracle Corporation. All rights reserved.