Class UrlResourceFinder

java.lang.Object
org.apache.axis2.classloader.UrlResourceFinder
All Implemented Interfaces:
ResourceFinder

public class UrlResourceFinder extends Object implements ResourceFinder
Version:
$Rev: 704201 $ $Date: 2008-10-14 00:22:25 +0530 (Tue, 14 Oct 2008) $
  • Constructor Details

    • UrlResourceFinder

      public UrlResourceFinder()
    • UrlResourceFinder

      public UrlResourceFinder(URL[] urls)
  • Method Details

    • destroy

      public void destroy()
    • getResource

      public ResourceHandle getResource(String resourceName)
      Description copied from interface: ResourceFinder
      Get the resource by name and, if found, open connection to it and return the handle of it.
      Specified by:
      getResource in interface ResourceFinder
      Parameters:
      resourceName - the resource name
      Returns:
      resource handle or null if resource was not found
    • findResource

      public URL findResource(String resourceName)
      Description copied from interface: ResourceFinder
      Find the resource by name and return URL of it if found.
      Specified by:
      findResource in interface ResourceFinder
      Parameters:
      resourceName - the resource name
      Returns:
      resource URL or null if resource was not found
    • findResources

      public Enumeration findResources(String resourceName)
      Description copied from interface: ResourceFinder
      Find all resources with given name and return enumeration of their URLs.
      Specified by:
      findResources in interface ResourceFinder
      Parameters:
      resourceName - the resource name
      Returns:
      enumeration of resource URLs (possibly empty).
    • addUrl

      public void addUrl(URL url)
    • getUrls

      public URL[] getUrls()
    • addUrls

      protected void addUrls(URL[] urls)
      Adds an array of urls to the end of this class loader.
      Parameters:
      urls - the URLs to add
    • addUrls

      protected void addUrls(List<URL> urls)
      Adds a list of urls to the end of this class loader.
      Parameters:
      urls - the URLs to add
    • cacheUrl

      protected File cacheUrl(URL url) throws IOException
      Throws:
      IOException
    • createResourceLocation

      protected ResourceLocation createResourceLocation(URL codeSource, File cacheFile) throws IOException
      Throws:
      IOException