|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.matchers.MatcherManager
public class MatcherManager
This class is responsible to manage the matching process. It is a facade
class of Matchers and Filters.
| Field Summary | |
|---|---|
protected MatcherChain |
chain
The matcher chain-of-responsibility used to match user-agents |
protected org.slf4j.Logger |
logger
The Filter chain used to classify devices |
protected WURFLModel |
model
The WURFL model |
| Fields inherited from interface net.sourceforge.wurfl.core.resource.ResourcePaths |
|---|
CATCH_ALL_RECOVERY_FILE, WURFL_CONFIG_FILE |
| Constructor Summary | |
|---|---|
MatcherManager(WURFLModel model)
|
|
| Method Summary | |
|---|---|
protected void |
filterDevices(Set<ModelDevice> devices)
Add devices to be collected. |
EngineTarget |
getEngineTarget()
|
protected void |
init()
Init method |
DeviceInfo |
matchRequest(WURFLRequest request)
Match the request to obtain a device identifier. |
void |
reloadModel(WURFLModel model)
|
void |
setEngineTarget(EngineTarget target)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final MatcherChain chain
protected WURFLModel model
protected final transient org.slf4j.Logger logger
| Constructor Detail |
|---|
public MatcherManager(WURFLModel model)
model - | Method Detail |
|---|
protected void init()
public void reloadModel(WURFLModel model)
public DeviceInfo matchRequest(WURFLRequest request)
request - The WURFLRequest to match.
generic device at least.protected final void filterDevices(Set<ModelDevice> devices)
devices - Set of ModelDevice to be collected by matchers.public EngineTarget getEngineTarget()
public void setEngineTarget(EngineTarget target)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||