|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.classloader.UrlResourceFinder
public class UrlResourceFinder
| Constructor Summary | |
|---|---|
UrlResourceFinder()
|
|
UrlResourceFinder(java.net.URL[] urls)
|
|
| Method Summary | |
|---|---|
void |
addUrl(java.net.URL url)
|
protected void |
addUrls(java.util.List<java.net.URL> urls)
Adds a list of urls to the end of this class loader. |
protected void |
addUrls(java.net.URL[] urls)
Adds an array of urls to the end of this class loader. |
protected java.io.File |
cacheUrl(java.net.URL url)
|
protected ResourceLocation |
createResourceLocation(java.net.URL codeSource,
java.io.File cacheFile)
|
void |
destroy()
|
java.net.URL |
findResource(java.lang.String resourceName)
Find the resource by name and return URL of it if found. |
java.util.Enumeration |
findResources(java.lang.String resourceName)
Find all resources with given name and return enumeration of their URLs. |
ResourceHandle |
getResource(java.lang.String resourceName)
Get the resource by name and, if found, open connection to it and return the handle of it. |
java.net.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(java.net.URL[] urls)
| Method Detail |
|---|
public void destroy()
public ResourceHandle getResource(java.lang.String resourceName)
ResourceFinderhandle of it.
getResource in interface ResourceFinderresourceName - the resource name
public java.net.URL findResource(java.lang.String resourceName)
ResourceFinder
findResource in interface ResourceFinderresourceName - the resource name
public java.util.Enumeration findResources(java.lang.String resourceName)
ResourceFinder
findResources in interface ResourceFinderresourceName - the resource name
public void addUrl(java.net.URL url)
public java.net.URL[] getUrls()
protected void addUrls(java.net.URL[] urls)
urls - the URLs to addprotected void addUrls(java.util.List<java.net.URL> urls)
urls - the URLs to add
protected java.io.File cacheUrl(java.net.URL url)
throws java.io.IOException
java.io.IOException
protected ResourceLocation createResourceLocation(java.net.URL codeSource,
java.io.File cacheFile)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||