public abstract static class ResourceLoader.PathURLStreamHandler extends URLStreamHandler implements Comparable<ResourceLoader.PathURLStreamHandler>
| Modifier and Type | Field and Description |
|---|---|
protected ResourceLoader |
parent |
protected int |
weight |
| Modifier | Constructor and Description |
|---|---|
protected |
PathURLStreamHandler(ResourceLoader p) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ResourceLoader.PathURLStreamHandler o) |
protected abstract ResourceLoader.PathURLStreamHandler |
createSubHandler(ResourceLoader parent) |
protected abstract String |
getName(URL u)
When a URL has been created, in
openConnection(String), this method can make a 'name' of it again. |
protected abstract Set<String> |
getPaths(Set<String> results,
Pattern pattern,
boolean recursive,
boolean directories) |
Integer |
getResourceNode(String name) |
protected Enumeration<URL> |
getResources(String name)
Returns a List of URL's with the same name.
|
abstract URLConnection |
openConnection(String name)
We need an openConnection by name only, and public.
|
protected URLConnection |
openConnection(URL u) |
void |
setWeight(int w) |
String |
toString() |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalFormprotected final ResourceLoader parent
protected int weight
protected PathURLStreamHandler(ResourceLoader p)
protected abstract ResourceLoader.PathURLStreamHandler createSubHandler(ResourceLoader parent)
public abstract URLConnection openConnection(String name)
protected abstract String getName(URL u)
openConnection(String), this method can make a 'name' of it again.protected Enumeration<URL> getResources(String name) throws IOException
IOExceptionprotected URLConnection openConnection(URL u) throws IOException
openConnection in class URLStreamHandlerIOExceptionprotected abstract Set<String> getPaths(Set<String> results, Pattern pattern, boolean recursive, boolean directories)
public void setWeight(int w)
public int compareTo(ResourceLoader.PathURLStreamHandler o)
compareTo in interface Comparable<ResourceLoader.PathURLStreamHandler>MMBase2 Utils 2.0.0 - 2019-08-08T23:20