|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.handlers.classifiers.FilterChain
public class FilterChain
A Filter chain-of-responsibility.
This class implement the pattern chain-of-responsibility of Filters
| Constructor Summary | |
|---|---|
FilterChain()
|
|
| Method Summary | |
|---|---|
void |
add(Filter filter)
Add a Filter to the filters list. |
void |
filter(String userAgent,
String deviceID)
Iterate over the filters list to find a Filter can handle the
given user-agent. |
FilteredDevices |
getFilteredDevices(String userAgent)
Returns the FilteredDevices containing the given user-agent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterChain()
| Method Detail |
|---|
public void add(Filter filter)
Filter to the filters list.
filter - The Filter to add.
public void filter(String userAgent,
String deviceID)
Filter can handle the
given user-agent.
userAgent - The user-agent associated with given device's id.deviceID - The device's id to collect.public FilteredDevices getFilteredDevices(String userAgent)
FilteredDevices containing the given user-agent.
userAgent - The user-agent used to find FilteredDevices.
FilteredDevices instance containing given user-agent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||