|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.handlers.matchers.MatcherChain
public class MatcherChain
The Matcher chain-of-responsibility.
This class implements the chain-of-responsibility pattern for the user-agent
Matcher. It is best practice the latest matcher can handle
everything and at least must returns generic
| Constructor Summary | |
|---|---|
MatcherChain()
|
|
| Method Summary | |
|---|---|
void |
add(Matcher matcher)
Add a matcher to the chain. |
List |
getMatchers()
Return the list containing the user-agent matchers. |
String |
match(WURFLRequest request,
FilteredDevices filteredDevices)
Perform matching across Matcher chains. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatcherChain()
| Method Detail |
|---|
public void add(Matcher matcher)
matcher - The Matcher to add.public List getMatchers()
List of Matchers.
public String match(WURFLRequest request,
FilteredDevices filteredDevices)
Matcher chains.
request - The WURFLRequest to match.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||