net.sourceforge.wurfl.core.handlers.matchers
Class MatcherManager

java.lang.Object
  extended by net.sourceforge.wurfl.core.handlers.matchers.MatcherManager

public class MatcherManager
extends Object

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

Version:
$Id: MatcherManager.java 432 2010-05-06 12:12:53Z filippo.deluca $
Author:
Fantayeneh Asres Gizaw, Filippo De Luca

Constructor Summary
MatcherManager(WURFLModel model)
          Build a MatcherManager by model.
MatcherManager(WURFLModel model, FilterChain filterChain, MatcherChain matcherChain)
          Build a MatcherManager by model, matcher chain and filter chain.
 
Method Summary
protected  void addFilteredDevices(Set devices)
          Add devices to be collected.
 String matchRequest(WURFLRequest request)
          Match the request to obtain a device identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatcherManager

public MatcherManager(WURFLModel model,
                      FilterChain filterChain,
                      MatcherChain matcherChain)
Build a MatcherManager by model, matcher chain and filter chain.

Parameters:
model - The WURFLModel used to get devices from.
filterChain - The used FilterChain.
matcherChain - The used MatcherChain.

MatcherManager

public MatcherManager(WURFLModel model)
Build a MatcherManager by model.

Parameters:
model - The WURFLModel used to get devices from.
Method Detail

matchRequest

public String matchRequest(WURFLRequest request)
Match the request to obtain a device identifier. For more info look at Matcher#match(WURFLRequest).

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

addFilteredDevices

protected void addFilteredDevices(Set devices)
Add devices to be collected.

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


Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.