|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.kernel.classloader.UrlResourceFinder
public class UrlResourceFinder
Constructor Summary | |
---|---|
UrlResourceFinder()
|
|
UrlResourceFinder(URL[] urls)
|
Method Summary | |
---|---|
void |
addUrl(URL url)
|
protected void |
addUrls(List<URL> urls)
Adds a list of urls to the end of this class loader. |
protected void |
addUrls(URL[] urls)
Adds an array of urls to the end of this class loader. |
protected File |
cacheUrl(URL url)
|
protected ResourceLocation |
createResourceLocation(URL codeSource,
File cacheFile)
|
void |
destroy()
|
URL |
findResource(String resourceName)
Find the resource by name and return URL of it if found. |
Enumeration |
findResources(String resourceName)
Find all resources with given name and return enumeration of their URLs. |
ResourceHandle |
getResource(String resourceName)
Get the resource by name and, if found, open connection to it and return the handle of it. |
URL[] |
getUrls()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlResourceFinder()
public UrlResourceFinder(URL[] urls)
Method Detail |
---|
public void destroy()
public ResourceHandle getResource(String resourceName)
ResourceFinder
handle
of it.
getResource
in interface ResourceFinder
resourceName
- the resource name
public URL findResource(String resourceName)
ResourceFinder
findResource
in interface ResourceFinder
resourceName
- the resource name
public Enumeration findResources(String resourceName)
ResourceFinder
findResources
in interface ResourceFinder
resourceName
- the resource name
public void addUrl(URL url)
public URL[] getUrls()
protected void addUrls(URL[] urls)
urls
- the URLs to addprotected void addUrls(List<URL> urls)
urls
- the URLs to addprotected File cacheUrl(URL url) throws IOException
IOException
protected ResourceLocation createResourceLocation(URL codeSource, File cacheFile) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |