net.sourceforge.wurfl.core.matchers
Class NokiaMatcher
java.lang.Object
net.sourceforge.wurfl.core.matchers.AbstractMatcher
net.sourceforge.wurfl.core.matchers.NokiaMatcher
- All Implemented Interfaces:
- Matcher, ResourcePaths
public final class NokiaMatcher
- extends AbstractMatcher
- Version:
- $Id: NokiaMatcher.java 934 2012-03-27 13:34:26Z fulvio.crivellaro $
NokiaMatcher
public NokiaMatcher(UserAgentNormalizer normalizer)
- Build AbstractMatcher by handler and collected devices by user-agent.
- Parameters:
normalizer -
canHandle
public boolean canHandle(WURFLRequest request)
- Checks UA contains "Nokia".
lookForMatchingUserAgent
protected String lookForMatchingUserAgent(String userAgent)
- Description copied from class:
AbstractMatcher
- Match the given user-agent to collected user-agents.
Apply RIS(FS) to default(first slash).
- Overrides:
lookForMatchingUserAgent in class AbstractMatcher
- Parameters:
userAgent - The user-agent to match against.
- Returns:
- The collected user-agent matching with given user-agent.
applyRecoveryMatch
protected String applyRecoveryMatch(WURFLRequest request)
- Search for "Series60" and "Series80" and "MeeGo". Return "nokia_generic_series60" and
"nokia_generic_series80" and "nokia_generic_meego" 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 © 2012 ScientiaMobile Inc.. All Rights Reserved.