org.mmbase.util
Class ResourceLoader.ClassLoaderURLStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.mmbase.util.ResourceLoader.PathURLStreamHandler
          extended by org.mmbase.util.ResourceLoader.ClassLoaderURLStreamHandler
All Implemented Interfaces:
Comparable<ResourceLoader.PathURLStreamHandler>
Enclosing class:
ResourceLoader

protected static class ResourceLoader.ClassLoaderURLStreamHandler
extends ResourceLoader.PathURLStreamHandler


Field Summary
 
Fields inherited from class org.mmbase.util.ResourceLoader.PathURLStreamHandler
parent, weight
 
Constructor Summary
ResourceLoader.ClassLoaderURLStreamHandler(ResourceLoader parent, String r)
           
 
Method Summary
 ResourceLoader.ClassLoaderURLStreamHandler createSubHandler(ResourceLoader parent)
           
protected  String getName(URL u)
          When a URL has been created, in ResourceLoader.PathURLStreamHandler.openConnection(String), this method can make a 'name' of it again.
 Set<String> getPaths(Set<String> results, Pattern pattern, boolean recursive, boolean directories)
           
(package private)  Enumeration<URL> getResources(String name)
          Returns a List of URL's with the same name.
protected  SortedSet<URL> getSortedResources(String name)
           
 URLConnection openConnection(String name)
          We need an openConnection by name only, and public.
 String toString()
           
 
Methods inherited from class org.mmbase.util.ResourceLoader.PathURLStreamHandler
compareTo, getResourceNode, openConnection, setWeight
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceLoader.ClassLoaderURLStreamHandler

ResourceLoader.ClassLoaderURLStreamHandler(ResourceLoader parent,
                                           String r)
Method Detail

createSubHandler

public ResourceLoader.ClassLoaderURLStreamHandler createSubHandler(ResourceLoader parent)
Specified by:
createSubHandler in class ResourceLoader.PathURLStreamHandler

getName

protected String getName(URL u)
Description copied from class: ResourceLoader.PathURLStreamHandler
When a URL has been created, in ResourceLoader.PathURLStreamHandler.openConnection(String), this method can make a 'name' of it again.

Specified by:
getName in class ResourceLoader.PathURLStreamHandler

getSortedResources

protected SortedSet<URL> getSortedResources(String name)
                                     throws IOException
Throws:
IOException
Since:
MMBase-1.9.1

getResources

Enumeration<URL> getResources(String name)
                        throws IOException
Description copied from class: ResourceLoader.PathURLStreamHandler
Returns a List of URL's with the same name. Defaults to one URL.

Overrides:
getResources in class ResourceLoader.PathURLStreamHandler
Throws:
IOException

openConnection

public final URLConnection openConnection(String name)
Description copied from class: ResourceLoader.PathURLStreamHandler
We need an openConnection by name only, and public.

Specified by:
openConnection in class ResourceLoader.PathURLStreamHandler

getPaths

public Set<String> getPaths(Set<String> results,
                            Pattern pattern,
                            boolean recursive,
                            boolean directories)
Specified by:
getPaths in class ResourceLoader.PathURLStreamHandler

toString

public String toString()
Overrides:
toString in class ResourceLoader.PathURLStreamHandler


MMBase 2.0-SNAPSHOT - null