net.sourceforge.wurfl.core.handlers.matchers
Class MotorolaMatcher
java.lang.Object
net.sourceforge.wurfl.core.handlers.matchers.AbstractMatcher
net.sourceforge.wurfl.core.handlers.matchers.MotorolaMatcher
- All Implemented Interfaces:
- Matcher
public class MotorolaMatcher
- extends AbstractMatcher
- Version:
- $Id: MotorolaMatcher.java 432 2010-05-06 12:12:53Z filippo.deluca $
- Author:
- Fantayeneh Asres Gizaw, Filippo De Luca
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MotorolaMatcher
public MotorolaMatcher(Handler handler)
lookForMatchingUserAgent
protected String lookForMatchingUserAgent(SortedSet userAgentsSet,
String userAgent)
- If UA don't starts with "Mot-","MOT-" or "Motorola" then apply LD(5)
otherwise apply default.
- Overrides:
lookForMatchingUserAgent in class AbstractMatcher
- Parameters:
userAgentsSet - A SortedSet of String containing user-agent string naturally
ordered.userAgent - The user-agent to match against.
- Returns:
- The collected user-agent matching with given user-agent.
applyCatchAllRecoveryMatch
protected String applyCatchAllRecoveryMatch(WURFLRequest request,
FilteredDevices filteredDevices)
- if UA contains "MIB/2.2" or "MIB/BER2.2", return "mot_mib22_generic"
otherwise return "generic".
- Overrides:
applyCatchAllRecoveryMatch in class AbstractMatcher
- Parameters:
request - The request to match.
- Returns:
- the matched device's id, at least "generic".
Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.