net.sourceforge.wurfl.core.handlers.matchers
Class NokiaMatcher
java.lang.Object
net.sourceforge.wurfl.core.handlers.matchers.AbstractMatcher
net.sourceforge.wurfl.core.handlers.matchers.NokiaMatcher
- All Implemented Interfaces:
- Matcher
public class NokiaMatcher
- extends AbstractMatcher
- Version:
- $Id: NokiaMatcher.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 |
NokiaMatcher
public NokiaMatcher(Handler handler)
lookForMatchingUserAgent
protected String lookForMatchingUserAgent(SortedSet userAgentsSet,
String userAgent)
- Apply RIS with FS (First Slash) after Nokia String as a threshold.
- 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.
applyRecoveryMatch
protected String applyRecoveryMatch(WURFLRequest request,
FilteredDevices filteredDevices)
- Search for "Series60" and "Series80". Return "nokia_generic_series60" and
"nokia_generic_series80" respectively in case of success
- Overrides:
applyRecoveryMatch in class AbstractMatcher
- Parameters:
request - The request to match.
- Returns:
- The device identifier matched from request, at least returns
generic.
Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.