Package com.sun.xml.ws.transport.http
Interface ResourceLoader
-
- All Known Implementing Classes:
TCPResourceLoader
public interface ResourceLoader
Used to locate resources forDeploymentDescriptorParser
.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.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URL
getCatalogFile()
Gets the catalog XML file that should be consulted when loading resources from thisResourceLoader
.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.
-
-
-
Method Detail
-
getResource
URL getResource(String path) throws MalformedURLException
Returns the actual location of the resource from the 'path' that represents a virtual locaion of a file inside a web application.- Parameters:
path
- Desiganates an absolute path within an web application, such as: '/WEB-INF/web.xml' or some such.- Returns:
- the actual location, if found, or null if not found.
- Throws:
MalformedURLException
-
getCatalogFile
URL getCatalogFile() throws MalformedURLException
Gets the catalog XML file that should be consulted when loading resources from thisResourceLoader
.- Throws:
MalformedURLException
-
-