|
||||||||||
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.automata.AutomataMatchingUriTemplateRules<R>
public class AutomataMatchingUriTemplateRules<R>
UriRules implementation based on a TRIE/Finite Automata. This class has been made abstract because it needs to fixed in terms of supporting the UriRules interface and matching using more general regular expressions.
Constructor Summary | |
---|---|
AutomataMatchingUriTemplateRules(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 AutomataMatchingUriTemplateRules(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 |