org.mmbase.util
Class ResourceLoader.ClassLoaderURLStreamHandler
java.lang.Object
java.net.URLStreamHandler
org.mmbase.util.ResourceLoader.PathURLStreamHandler
org.mmbase.util.ResourceLoader.ClassLoaderURLStreamHandler
- All Implemented Interfaces:
- Comparable<ResourceLoader.PathURLStreamHandler>
- Enclosing class:
- ResourceLoader
protected static class ResourceLoader.ClassLoaderURLStreamHandler
- extends ResourceLoader.PathURLStreamHandler
| Methods inherited from class java.net.URLStreamHandler |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm |
ResourceLoader.ClassLoaderURLStreamHandler
ResourceLoader.ClassLoaderURLStreamHandler(ResourceLoader parent,
String r)
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