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 934 2012-03-27 13:34:26Z fulvio.crivellaro $
| 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 © 2012 ScientiaMobile Inc.. All Rights Reserved.