233234235236237238239240241242243
if (size <= index) return next; DispatchRule firstRule = _ruleList.get(index); uri = firstRule.rewriteUri(uri, queryString); // scan unless the URI is rewritten, then force recursion int tail = index + 1; for (; tail < size; tail++) { DispatchRule uriRule = _ruleList.get(tail);
240241242243244245246247248249250
// scan unless the URI is rewritten, then force recursion int tail = index + 1; for (; tail < size; tail++) { DispatchRule uriRule = _ruleList.get(tail); String newUri = uriRule.rewriteUri(uri, queryString); if (newUri != uri) { next = mapChain(tail, type, uri, queryString, chain); break; }
226227228229230231232233234235236
if (_ruleList.size() <= index) return chain; DispatchRule rule = _ruleList.get(index); uri = rule.rewriteUri(uri, queryString); FilterChain next = mapChain(index + 1, uri, queryString, chain); return rule.map(uri, queryString, next, chain); }