public interface ResourceLoader
DeploymentDescriptorParser.
This allows DeploymentDescriptorParser to be used outside a servlet container,
but it still needs to work with a layout similar to the web application.
If this can be abstracted away better, that would be nice.
| 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.
|
URL getResource(String path) throws MalformedURLException
path - Desiganates an absolute path within an web application, such as:
'/WEB-INF/web.xml' or some such.MalformedURLExceptionURL getCatalogFile() throws MalformedURLException
ResourceLoader.MalformedURLExceptionCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.