Package org.apache.axis2.classloader
Class UrlResourceFinder
java.lang.Object
org.apache.axis2.classloader.UrlResourceFinder
- All Implemented Interfaces:
ResourceFinder
- Version:
- $Rev: 704201 $ $Date: 2008-10-14 00:22:25 +0530 (Tue, 14 Oct 2008) $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidAdds an array of urls to the end of this class loader.protected voidAdds a list of urls to the end of this class loader.protected Fileprotected ResourceLocationcreateResourceLocation(URL codeSource, File cacheFile) voiddestroy()findResource(String resourceName) Find the resource by name and return URL of it if found.findResources(String resourceName) Find all resources with given name and return enumeration of their URLs.getResource(String resourceName) Get the resource by name and, if found, open connection to it and return thehandleof it.URL[]getUrls()
-
Constructor Details
-
UrlResourceFinder
public UrlResourceFinder() -
UrlResourceFinder
-
-
Method Details
-
destroy
public void destroy() -
getResource
Description copied from interface:ResourceFinderGet the resource by name and, if found, open connection to it and return thehandleof it.- Specified by:
getResourcein interfaceResourceFinder- Parameters:
resourceName- the resource name- Returns:
- resource handle or null if resource was not found
-
findResource
Description copied from interface:ResourceFinderFind the resource by name and return URL of it if found.- Specified by:
findResourcein interfaceResourceFinder- Parameters:
resourceName- the resource name- Returns:
- resource URL or null if resource was not found
-
findResources
Description copied from interface:ResourceFinderFind all resources with given name and return enumeration of their URLs.- Specified by:
findResourcesin interfaceResourceFinder- Parameters:
resourceName- the resource name- Returns:
- enumeration of resource URLs (possibly empty).
-
addUrl
-
getUrls
-
addUrls
Adds an array of urls to the end of this class loader.- Parameters:
urls- the URLs to add
-
addUrls
Adds a list of urls to the end of this class loader.- Parameters:
urls- the URLs to add
-
cacheUrl
- Throws:
IOException
-
createResourceLocation
protected ResourceLocation createResourceLocation(URL codeSource, File cacheFile) throws IOException - Throws:
IOException
-