com.fatwire.gst.foundation.mobile.mobiforge
Class MobiForgeDeviceDetector

java.lang.Object
  extended by com.fatwire.gst.foundation.mobile.mobiforge.MobiForgeDeviceDetector
All Implemented Interfaces:
DeviceDetector

public class MobiForgeDeviceDetector
extends Object
implements DeviceDetector

DeviceDecector making use of the MobiForce algorithm. This is a simple algorithm and takes care of most of the devices based on User-Agent header.

To override the User-Agent algorithm, you can add a parameter d with a value of mobile, tablet or desktop.

Since:
25 jun. 2012
Author:
Dolf Dijkstra

Field Summary
static String DEVICE_VAR
           
 
Constructor Summary
MobiForgeDeviceDetector()
           
 
Method Summary
protected  DeviceType detectDeviceType(javax.servlet.http.HttpServletRequest request)
           
 DeviceType detectDeviceType(COM.FutureTense.Interfaces.ICS ics)
           
protected  DeviceType detectDeviceType(String ua)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVICE_VAR

public static String DEVICE_VAR
Constructor Detail

MobiForgeDeviceDetector

public MobiForgeDeviceDetector()
Method Detail

detectDeviceType

public DeviceType detectDeviceType(COM.FutureTense.Interfaces.ICS ics)
Specified by:
detectDeviceType in interface DeviceDetector

detectDeviceType

protected DeviceType detectDeviceType(javax.servlet.http.HttpServletRequest request)

detectDeviceType

protected DeviceType detectDeviceType(String ua)


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.