|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceLoader
Used to locate resources for 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.
Method Summary | |
---|---|
java.net.URL |
getCatalogFile()
Gets the catalog XML file that should be consulted when loading resources from this ResourceLoader . |
java.net.URL |
getResource(java.lang.String path)
Returns the actual location of the resource from the 'path' that represents a virtual locaion of a file inside a web application. |
java.util.Set<java.lang.String> |
getResourcePaths(java.lang.String path)
Returns the list of files in the given directory. |
Method Detail |
---|
java.net.URL getResource(java.lang.String path) throws java.net.MalformedURLException
path
- Desiganates an absolute path within an web application, such as:
'/WEB-INF/web.xml' or some such.
java.net.MalformedURLException
java.net.URL getCatalogFile() throws java.net.MalformedURLException
ResourceLoader
.
java.net.MalformedURLException
java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
ServletContext.getResourcePaths(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |