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.


Method Index

 o getChildren()
 o getRule()
 o lookup(String)
Lookup a children rule node.
 o lookupRule(String)
Lookup a rule.

Methods

 o getRule
 public Rule getRule()
 o getChildren
 public Hashtable getChildren()
 o 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.
 o 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