net.sourceforge.wurfl.core.matchers
Class NecMatcher

java.lang.Object
  extended by net.sourceforge.wurfl.core.matchers.AbstractMatcher
      extended by 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 $

Field Summary
 
Fields inherited from class net.sourceforge.wurfl.core.matchers.AbstractMatcher
DEBUG, detected, inspectionManager, isDebugEnabled, logger, undetected
 
Fields inherited from interface net.sourceforge.wurfl.core.resource.ResourcePaths
CATCH_ALL_RECOVERY_FILE, WURFL_CONFIG_FILE
 
Constructor Summary
NecMatcher(UserAgentNormalizer normalizer)
          Build AbstractMatcher by handler and collected devices by user-agent.
 
Method Summary
 boolean canHandle(WURFLRequest request)
          Checks UA starts with "NEC-" or "KGT"
protected  String lookForMatchingUserAgent(String userAgent)
          If UA starts with "NEC", apply default, else apply LD(2).
 
Methods inherited from class net.sourceforge.wurfl.core.matchers.AbstractMatcher
applyCatchAllRecoveryMatch, applyConclusiveMatch, applyRecoveryMatch, getFilter, getName, match, normalize, setFilter, setInspectionManager, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NecMatcher

public NecMatcher(UserAgentNormalizer normalizer)
Build AbstractMatcher by handler and collected devices by user-agent.

Parameters:
normalizer -
Method Detail

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.