net.sourceforge.wurfl.core.request.normalizer.generic
Class BabelFishNormalizer
java.lang.Object
net.sourceforge.wurfl.core.request.normalizer.generic.BabelFishNormalizer
- All Implemented Interfaces:
- UserAgentNormalizer
public class BabelFishNormalizer
- extends Object
- implements UserAgentNormalizer
Yahoo Babelfish normalizer.
Strips out the "via babelfish.yahoo.com" from the user-agent.
- Version:
- $Id: BabelFishNormalizer.java 432 2010-05-06 12:12:53Z filippo.deluca $
- Author:
- Fantayeneh Asres Gizaw, Filippo De Luca
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BabelFishNormalizer
public BabelFishNormalizer()
normalize
public String normalize(String userAgent)
- Replace the "via babelfish.yahoo.com" with "".
- Specified by:
normalize in interface UserAgentNormalizer
- Parameters:
userAgent - String contains user-agent to normalize.
- Returns:
- String contains normalized user-agent.
Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.