net.sourceforge.wurfl.core.matchers
Class GoogleTvMatcher

java.lang.Object
  extended by net.sourceforge.wurfl.core.matchers.AbstractMatcher
      extended by net.sourceforge.wurfl.core.matchers.AbstractSmartTVMatcher
          extended by net.sourceforge.wurfl.core.matchers.GoogleTvMatcher
All Implemented Interfaces:
Matcher, ResourcePaths

public final class GoogleTvMatcher
extends AbstractSmartTVMatcher

Version:
$Id: GoogleTvMatcher.java 784 2012-02-09 14:29:21Z 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
GoogleTvMatcher(UserAgentNormalizer normalizer)
          Build AbstractMatcher by handler and collected devices by user-agent.
 
Method Summary
protected  String applyRecoveryMatch(WURFLRequest request)
          if this matcher can handle the UA, this is the result for sure
 boolean canHandle(WURFLRequest request)
          Return if this matcher can handle given request.
 
Methods inherited from class net.sourceforge.wurfl.core.matchers.AbstractSmartTVMatcher
lookForMatchingUserAgent
 
Methods inherited from class net.sourceforge.wurfl.core.matchers.AbstractMatcher
applyCatchAllRecoveryMatch, applyConclusiveMatch, 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

GoogleTvMatcher

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

Parameters:
normalizer -
Method Detail

canHandle

public boolean canHandle(WURFLRequest request)
Description copied from interface: Matcher
Return if this matcher can handle given request.


applyRecoveryMatch

protected String applyRecoveryMatch(WURFLRequest request)
if this matcher can handle the UA, this is the result for sure

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.