net.sourceforge.wurfl.core.matchers
Class NecMatcher
java.lang.Object
net.sourceforge.wurfl.core.matchers.AbstractMatcher
net.sourceforge.wurfl.core.matchers.NecMatcher
- All Implemented Interfaces:
- Matcher, ResourcePaths
public final class NecMatcher
- extends AbstractMatcher
- Version:
- $Id: NecMatcher.java 934 2012-03-27 13:34:26Z fulvio.crivellaro $
NecMatcher
public NecMatcher(UserAgentNormalizer normalizer)
- Build AbstractMatcher by handler and collected devices by user-agent.
- Parameters:
normalizer -
canHandle
public boolean canHandle(WURFLRequest request)
- Checks UA starts with "NEC-" or "KGT"
lookForMatchingUserAgent
protected String lookForMatchingUserAgent(String userAgent)
- If UA starts with "NEC", apply default, else apply LD(2).
- Overrides:
lookForMatchingUserAgent in class AbstractMatcher
- Parameters:
userAgent - The user-agent to match against.
- Returns:
- The collected user-agent matching with given user-agent.
Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.