org.mmbase.util
Class ResourceLoader.PathURLStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.mmbase.util.ResourceLoader.PathURLStreamHandler
Direct Known Subclasses:
ResourceLoader.AbstractFileURLStreamHandler, ResourceLoader.ClassLoaderURLStreamHandler, 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, openConnection, 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
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException


MMBase build 1.9.0.20081107