|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.transport.httpspi.servlet.ServletResourceLoader
public final class ServletResourceLoader
ResourceLoader
backed by ServletContext
.
Constructor Summary | |
---|---|
ServletResourceLoader(javax.servlet.ServletContext context)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletResourceLoader(javax.servlet.ServletContext context)
Method Detail |
---|
public java.net.URL getResource(java.lang.String path) throws java.net.MalformedURLException
ResourceLoader
getResource
in interface ResourceLoader
path
- Desiganates an absolute path within an web application, such as:
'/WEB-INF/web.xml' or some such.
java.net.MalformedURLException
public java.net.URL getCatalogFile() throws java.net.MalformedURLException
ResourceLoader
ResourceLoader
.
getCatalogFile
in interface ResourceLoader
java.net.MalformedURLException
public java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
ResourceLoader
getResourcePaths
in interface ResourceLoader
ServletContext.getResourcePaths(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |