Constructor and Description |
---|
SequentialMatchingPatterns(List<PatternRulePair<R>> rules) |
Modifier and Type | Method and Description |
---|---|
Iterator<R> |
match(CharSequence path,
UriMatchResultContext resultContext)
Match a URI path to the collection of rules and iterate over
the matching rules.
|
public SequentialMatchingPatterns(List<PatternRulePair<R>> rules)
public Iterator<R> match(CharSequence path, UriMatchResultContext resultContext)
UriRules
match
in interface UriRules<R>
path
- the URI path to be matchedresultContext
- the context to store the match result.
The result will be set each time Iterator.next()
is called
according to the pattern associated with the returned rule.
The matching groups in the result are stored in the same order as
the pattern's capturing groups.Copyright © 2013 Oracle Corporation. All rights reserved.