Acme.Serve
Class Serve.PathTreeDictionary
java.lang.Object
Acme.Serve.Serve.PathTreeDictionary
- Enclosing class:
- Serve
public static class Serve.PathTreeDictionary
- extends java.lang.Object
Class PathTreeDictionary - this class allows to put path elements in format n1/n2/n2[/*.ext] and get match to a pattern and a unmatched tail
Method Summary |
void |
addSiblingNames(Acme.Serve.Serve.PathTreeDictionary.Node node,
java.util.Vector result,
java.lang.String path)
|
void |
addSiblingObjects(Acme.Serve.Serve.PathTreeDictionary.Node node,
java.util.Vector result)
|
java.util.Enumeration |
elements()
|
java.lang.Object[] |
get(java.lang.String path)
This function looks up in the directory to find the perfect match and remove matching part from path, so if you need to keep original path, save it
somewhere |
java.util.Enumeration |
keys()
|
void |
put(java.lang.String path,
java.lang.Object value)
|
java.lang.Object[] |
remove(java.lang.Object value)
|
java.lang.Object[] |
remove(Acme.Serve.Serve.PathTreeDictionary.Node node,
java.lang.Object value)
|
java.lang.Object[] |
remove(java.lang.String path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Serve.PathTreeDictionary
public Serve.PathTreeDictionary()
put
public void put(java.lang.String path,
java.lang.Object value)
remove
public java.lang.Object[] remove(java.lang.Object value)
remove
public java.lang.Object[] remove(java.lang.String path)
remove
public java.lang.Object[] remove(Acme.Serve.Serve.PathTreeDictionary.Node node,
java.lang.Object value)
get
public java.lang.Object[] get(java.lang.String path)
- This function looks up in the directory to find the perfect match and remove matching part from path, so if you need to keep original path, save it
somewhere
keys
public java.util.Enumeration keys()
addSiblingNames
public void addSiblingNames(Acme.Serve.Serve.PathTreeDictionary.Node node,
java.util.Vector result,
java.lang.String path)
elements
public java.util.Enumeration elements()
addSiblingObjects
public void addSiblingObjects(Acme.Serve.Serve.PathTreeDictionary.Node node,
java.util.Vector result)
Copyright © 2010. All Rights Reserved.