Top Description Fields Constructors Methods
org.apache.catalina.startup

public Class ContextRuleSet

extends Object
implements RuleSet
Class Inheritance
All Implemented Interfaces
org.apache.tomcat.util.digester.RuleSet
Imports
org.apache.tomcat.util.digester.Digester, .RuleSet

RuleSet for processing the contents of a Context definition element.
Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
protected final boolean
create

Should the context be created.

protected final String
prefix

The matching pattern prefix to use for recognizing our elements.

Constructor Summary

AccessConstructor and Description
public
ContextRuleSet()

Construct an instance of this RuleSet with the default matching pattern prefix.

public
ContextRuleSet(String
Prefix for matching pattern rules (including the trailing slash character)
prefix
)

Construct an instance of this RuleSet with the specified matching pattern prefix.

public
ContextRuleSet(String
Prefix for matching pattern rules (including the trailing slash character)
prefix
,
boolean
true if the main context instance should be created
create
)

Construct an instance of this RuleSet with the specified matching pattern prefix.

Method Summary

Modifier and TypeMethod and Description
public void
addRuleInstances(Digester
Digester instance to which the new Rule instances should be added.
digester
)

Implements org.apache.tomcat.util.digester.RuleSet.addRuleInstances.

Add the set of Rule instances defined in this RuleSet to the specified Digester instance, associating them with our namespace URI (if any).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

createback to summary
protected final boolean create

Should the context be created.

prefixback to summary
protected final String prefix

The matching pattern prefix to use for recognizing our elements.

Constructor Detail

ContextRuleSetback to summary
public ContextRuleSet()

Construct an instance of this RuleSet with the default matching pattern prefix.

ContextRuleSetback to summary
public ContextRuleSet(String prefix)

Construct an instance of this RuleSet with the specified matching pattern prefix.

Parameters
prefix:String

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

ContextRuleSetback to summary
public ContextRuleSet(String prefix, boolean create)

Construct an instance of this RuleSet with the specified matching pattern prefix.

Parameters
prefix:String

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

create:boolean

true if the main context instance should be created

Method Detail

addRuleInstancesback to summary
public void addRuleInstances(Digester digester)

Implements org.apache.tomcat.util.digester.RuleSet.addRuleInstances.

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.

Parameters
digester:Digester

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

Annotations
@Override