FileDocCategorySizeDatePackage
MemoryRuleSet.javaAPI DocApache Tomcat 6.0.143813Fri Jul 20 04:20:34 BST 2007org.apache.catalina.realm

MemoryRuleSet

public class MemoryRuleSet extends org.apache.tomcat.util.digester.RuleSetBase

RuleSet for recognizing the users defined in the XML file processed by MemoryRealm.

author
Craig R. McClanahan
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
protected String
prefix
The matching pattern prefix to use for recognizing our elements.
Constructors Summary
public MemoryRuleSet()
Construct an instance of this RuleSet with the default matching pattern prefix.



    // ------------------------------------------------------------ Constructor


                     
      

        this("tomcat-users/");

    
public MemoryRuleSet(String prefix)
Construct an instance of this RuleSet with the specified matching pattern prefix.

param
prefix Prefix for matching pattern rules (including the trailing slash character)


        super();
        this.namespaceURI = null;
        this.prefix = prefix;

    
Methods Summary
public voidaddRuleInstances(org.apache.tomcat.util.digester.Digester digester)

Add the set of Rule instances defined in this RuleSet to the specified Digester instance, associating them with our namespace URI (if any). This method should only be called by a Digester instance.

param
digester Digester instance to which the new Rule instances should be added.


        digester.addRule(prefix + "user", new MemoryUserRule());