All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.www.protocol.http.proxy.RuleNode
java.lang.Object
|
+----org.w3c.www.protocol.http.proxy.RuleNode
- public class RuleNode
- extends Object
A RuleNode instance keeps track of one token within the lfh of a rule.
This data structure is usually known as a hash-trie, check
one of the Knuth books for more infos.
-
getChildren()
-
-
getRule()
-
-
lookup(String)
- Lookup a children rule node.
-
lookupRule(String)
- Lookup a rule.
getRule
public Rule getRule()
getChildren
public Hashtable getChildren()
lookupRule
public Rule lookupRule(String host)
- Lookup a rule.
Given a fully qualified host name, parse it into its components, and
starting from this rule node, lookup for a matching rule.
The most precise rule is always returned.
- Returns:
- The best matching rule, as a Rule instance, or
null if no matching rule was found.
lookup
public RuleNode lookup(String tok)
- Lookup a children rule node.
- Parameters:
- tok - The token for the child that is to be looked up.
- Returns:
- A RuleNode instance, if found, null
otherwise.
All Packages Class Hierarchy This Package Previous Next Index