org.mmbase.util.xml
Class URIResolver.Entry

java.lang.Object
  extended by org.mmbase.util.xml.URIResolver.Entry
All Implemented Interfaces:
Serializable
Enclosing class:
URIResolver

static class URIResolver.Entry
extends Object
implements Serializable

Objects of this type connect a prefix (must normally end in :) with a File (which must be a Directory). A List of this type (EntryList) can be fed to the constructor of URIResolver.


Constructor Summary
URIResolver.Entry(String p, ClassLoader cl)
           
URIResolver.Entry(String p, URL u)
           
 
Method Summary
 boolean equals(Object o)
           
(package private)  URL getDir()
           
(package private)  URL getPath(String href)
          Uses this entry to resolve a href
(package private)  String getPrefix()
           
(package private)  int getPrefixLength()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URIResolver.Entry

URIResolver.Entry(String p,
                  URL u)

URIResolver.Entry

URIResolver.Entry(String p,
                  ClassLoader cl)
Method Detail

getPrefix

String getPrefix()

getDir

URL getDir()

getPath

URL getPath(String href)
      throws MalformedURLException
Uses this entry to resolve a href

Throws:
MalformedURLException
Since:
MMBase-1.8.2

getPrefixLength

int getPrefixLength()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


MMBase 2.0-SNAPSHOT - null