net.sourceforge.wurfl.core.matchers
Class OperaMatcher

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

public final class OperaMatcher
extends AbstractMatcher

Version:
$Id: OperaMatcher.java 934 2012-03-27 13:34:26Z fulvio.crivellaro $

Field Summary
static Pattern OPERA_VERSION_PATTERN
           
static Pattern OPERA_VERSION_PATTERN_GT10
           
 
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
OperaMatcher(UserAgentNormalizer normalizer)
          Build AbstractMatcher by handler and collected devices by user-agent.
 
Method Summary
protected  String applyRecoveryMatch(WURFLRequest request)
          Match the given request using the recovery matching strategy.
 boolean canHandle(WURFLRequest request)
          Checks given UA contains "Opera".
protected  String lookForMatchingUserAgent(String userAgent)
          Match the given user-agent to collected user-agents.
 
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
 

Field Detail

OPERA_VERSION_PATTERN

public static final Pattern OPERA_VERSION_PATTERN

OPERA_VERSION_PATTERN_GT10

public static final Pattern OPERA_VERSION_PATTERN_GT10
Constructor Detail

OperaMatcher

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

Parameters:
normalizer -
Method Detail

canHandle

public boolean canHandle(WURFLRequest request)
Checks given UA contains "Opera".


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)
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.