|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.handlers.classifiers.BaseFilter
public class BaseFilter
Filter base implementation.
The Handler decides if this object can handle the given user-agent.
Stores the classified device in held FilteredDevices instance.
| Constructor Summary | |
|---|---|
BaseFilter(Handler handler)
Constructor by Handler and FilteredDevices. |
|
| Method Summary | |
|---|---|
boolean |
canHandle(String userAgent)
Use the Handler to know if is possible to handle the user-agent. |
void |
filter(String userAgent,
String deviceID)
Add the given device id and user-agent to collected devices. |
FilteredDevices |
getFilteredDevices()
Return the held FilteredDevices. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseFilter(Handler handler)
Handler and FilteredDevices.
handler - The handler used by this object.| Method Detail |
|---|
public boolean canHandle(String userAgent)
canHandle in interface FilteruserAgent - The user-agent to probr.
userAgent.
public void filter(String userAgent,
String deviceID)
filter in interface FilteruserAgent - The user-agent to classify.deviceID - The device identifier corresponding to given user-agent.public FilteredDevices getFilteredDevices()
FilteredDevices.
getFilteredDevices in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||