*/
public void add(DispatchRule rule)
{
if (rule.isRequest()) {
if (_requestRewriteDispatch == null)
_requestRewriteDispatch = new RewriteDispatch(this);
_requestRewriteDispatch.addRule(rule);
}
if (rule.isForward()) {
if (_forwardRewriteDispatch == null)
_forwardRewriteDispatch = new RewriteDispatch(this);
_forwardRewriteDispatch.addRule(rule);
}
if (rule.isInclude()) {
if (_includeRewriteDispatch == null)
_includeRewriteDispatch = new RewriteDispatch(this);
_includeRewriteDispatch.addRule(rule);
}
}