R
- the type of rule.public interface UriRules<R>
The precedence of the rules and the type of patterns is specified by an implementation of this interface.
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<R> |
match(java.lang.CharSequence path,
UriMatchResultContext resultContext)
Match a URI path to the collection of rules and iterate over
the matching rules.
|
java.util.Iterator<R> match(java.lang.CharSequence path, UriMatchResultContext resultContext)
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 © 2016 Oracle Corporation. All Rights Reserved.