net.sourceforge.wurfl.core.matchers
Class AppleMatcher
java.lang.Object
net.sourceforge.wurfl.core.matchers.AbstractMatcher
net.sourceforge.wurfl.core.matchers.AppleMatcher
- All Implemented Interfaces:
- Matcher, ResourcePaths
public final class AppleMatcher
- extends AbstractMatcher
- Version:
- $Id: AppleMatcher.java 934 2012-03-27 13:34:26Z fulvio.crivellaro $
AppleMatcher
public AppleMatcher(UserAgentNormalizer normalizer)
- Parameters:
normalizer -
canHandle
public boolean canHandle(WURFLRequest request)
- Checks given UA starts with "Mozilla/5" and contains "iPhone" or "iPod" or "iPad"
lookForMatchingUserAgent
protected String lookForMatchingUserAgent(String userAgent)
- Apply RIS(First Semicolon).
- 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)
- Description copied from class:
AbstractMatcher
- Match the given request using the recovery matching strategy.
- 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.