org.mmbase.util
Class ResourceLoader.ServletResourceURLStreamHandler

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

protected static class ResourceLoader.ServletResourceURLStreamHandler
extends ResourceLoader.PathURLStreamHandler

URLStreamHandler based on the servletContext object of ResourceLoader


Field Summary
 
Fields inherited from class org.mmbase.util.ResourceLoader.PathURLStreamHandler
parent, weight
 
Constructor Summary
ResourceLoader.ServletResourceURLStreamHandler(ResourceLoader parent, String r)
           
 
Method Summary
 ResourceLoader.ServletResourceURLStreamHandler 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)
           
 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, getResources, 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.ServletResourceURLStreamHandler

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

createSubHandler

public ResourceLoader.ServletResourceURLStreamHandler 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

openConnection

public 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