net.sourceforge.wurfl.core.handlers.matchers
Class BotMatcher

java.lang.Object
  extended by net.sourceforge.wurfl.core.handlers.matchers.AbstractMatcher
      extended by net.sourceforge.wurfl.core.handlers.matchers.BotMatcher
All Implemented Interfaces:
Matcher

public class BotMatcher
extends AbstractMatcher

This is a matcher for BOTs

Version:
$id$
Author:
Fantayeneh Asres Gizaw, Filippo De Luca

Field Summary
 
Fields inherited from class net.sourceforge.wurfl.core.handlers.matchers.AbstractMatcher
detected, logger, undetected
 
Constructor Summary
BotMatcher(Handler handler)
           
 
Method Summary
protected  String applyRecoveryMatch(WURFLRequest request, FilteredDevices filteredDevices)
          Match the given request using the recovery matching strategy.
protected  String lookForMatchingUserAgent(SortedSet userAgentsSet, String userAgent)
          Match the given user-agent to collected user-agents.
 
Methods inherited from class net.sourceforge.wurfl.core.handlers.matchers.AbstractMatcher
applyCatchAllRecoveryMatch, applyConclusiveMatch, canHandle, match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BotMatcher

public BotMatcher(Handler handler)
Method Detail

lookForMatchingUserAgent

protected String lookForMatchingUserAgent(SortedSet userAgentsSet,
                                          String userAgent)
Description copied from class: AbstractMatcher
Match the given user-agent to collected user-agents.

Apply RIS(FS) to default.

Overrides:
lookForMatchingUserAgent in class AbstractMatcher
Parameters:
userAgentsSet - A SortedSet of String containing user-agent string naturally ordered.
userAgent - The user-agent to match against.
Returns:
The collected user-agent matching with given user-agent.

applyRecoveryMatch

protected String applyRecoveryMatch(WURFLRequest request,
                                    FilteredDevices filteredDevices)
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 © 2008-2010 WURFL-Pro srl. All Rights Reserved.