net.sourceforge.wurfl.core.request.normalizer.specific
Class SafariNormalizer

java.lang.Object
  extended by net.sourceforge.wurfl.core.request.normalizer.specific.SafariNormalizer
All Implemented Interfaces:
UserAgentNormalizer

public class SafariNormalizer
extends Object
implements UserAgentNormalizer

Version:
$Id: SafariNormalizer.java 432 2010-05-06 12:12:53Z filippo.deluca $
Author:
Fantayeneh Asres Gizaw, Filippo De Luca, Tommaso Teofili

Constructor Summary
SafariNormalizer()
           
 
Method Summary
 String normalize(String userAgent)
          Return the safari user agent stripping out - all the chararcters between U; and Safari/xxx e.g Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; fr) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18 becomes Mozilla/5.0 (Macintosh Safari/525
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafariNormalizer

public SafariNormalizer()
Method Detail

normalize

public String normalize(String userAgent)
Return the safari user agent stripping out - all the chararcters between U; and Safari/xxx e.g Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; fr) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18 becomes Mozilla/5.0 (Macintosh Safari/525

Specified by:
normalize in interface UserAgentNormalizer
Parameters:
string - $userAgent
Returns:
string


Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.