|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.server.impl.uri.rules.SequentialMatchingPatterns<R>
public final class SequentialMatchingPatterns<R>
Rules associated with instances of {@link UriPattern) and matched in order. Zero or more matches may occur.
Constructor Summary | |
---|---|
SequentialMatchingPatterns(java.util.List<PatternRulePair<R>> rules)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequentialMatchingPatterns(java.util.List<PatternRulePair<R>> rules)
Method Detail |
---|
public java.util.Iterator<R> match(java.lang.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |