org.mmbase.util
Class ResourceLoader.PathURLStreamHandler

java.lang.Object
  extended byjava.net.URLStreamHandler
      extended byorg.mmbase.util.ResourceLoader.PathURLStreamHandler
Direct Known Subclasses:
ResourceLoader.ClassLoaderURLStreamHandler, ResourceLoader.FileURLStreamHandler, ResourceLoader.NodeURLStreamHandler, ResourceLoader.ServletResourceURLStreamHandler
Enclosing class:
ResourceLoader

protected abstract class ResourceLoader.PathURLStreamHandler
extends URLStreamHandler

Extension URLStreamHandler, used for the 'sub' Handlers, entries of 'roots' in ResourceLoader are of this type.


Constructor Summary
protected ResourceLoader.PathURLStreamHandler()
           
 
Method Summary
protected abstract  String getName(URL u)
          When a URL has been created, in openConnection(String), this method can make a 'name' of it again.
abstract  URLConnection openConnection(String name)
          We need an openConnection by name only, and public.
protected  URLConnection openConnection(URL u)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader.PathURLStreamHandler

protected ResourceLoader.PathURLStreamHandler()
Method Detail

openConnection

public abstract URLConnection openConnection(String name)
We need an openConnection by name only, and public.


getName

protected abstract String getName(URL u)
When a URL has been created, in openConnection(String), this method can make a 'name' of it again.


openConnection

protected URLConnection openConnection(URL u)
                                throws IOException
Throws:
IOException


MMBase build 1.8.1.20060716