net.sourceforge.wurfl.core.matchers
Class MatcherManager

java.lang.Object
  extended by net.sourceforge.wurfl.core.matchers.MatcherManager
All Implemented Interfaces:
ResourcePaths
Direct Known Subclasses:
ReloadableMatcherManager

public class MatcherManager
extends Object
implements ResourcePaths

This class is responsible to manage the matching process. It is a facade class of Matchers and Filters.

Version:
$Id: MatcherManager.java 934 2012-03-27 13:34:26Z fulvio.crivellaro $

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

chain

protected final MatcherChain chain
The matcher chain-of-responsibility used to match user-agents


model

protected WURFLModel model
The WURFL model


logger

protected final transient org.slf4j.Logger logger
The Filter chain used to classify devices

Constructor Detail

MatcherManager

public MatcherManager(WURFLModel model)
Parameters:
model -
Method Detail

init

protected void init()
Init method


reloadModel

public void reloadModel(WURFLModel model)

matchRequest

public DeviceInfo matchRequest(WURFLRequest request)
Match the request to obtain a device identifier.

Parameters:
request - The WURFLRequest to match.
Returns:
A valid device identifier, generic device at least.

filterDevices

protected final void filterDevices(Set<ModelDevice> devices)
Add devices to be collected.

Parameters:
devices - Set of ModelDevice to be collected by matchers.

getEngineTarget

public EngineTarget getEngineTarget()

setEngineTarget

public void setEngineTarget(EngineTarget target)


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.