com.endeca.mobile.services.detection.impl
Class WURFLDeviceDetector
java.lang.Object
com.endeca.mobile.services.detection.impl.DefaultDeviceDetector
com.endeca.mobile.services.detection.impl.WURFLDeviceDetector
- All Implemented Interfaces:
- DeviceDetector
public class WURFLDeviceDetector
- extends DefaultDeviceDetector
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WURFLDeviceDetector
public WURFLDeviceDetector()
- Constructor for use with xml based configuration like Spring. If you use this constructor, you need to call
setWURFLHolder before using the DeviceDetector instance
WURFLDeviceDetector
public WURFLDeviceDetector(net.sourceforge.wurfl.core.WURFLHolder wurflHolder)
throws mobi.mtld.da.exception.JsonException,
java.io.IOException
- Throws:
mobi.mtld.da.exception.JsonException
java.io.IOException
lookupDevice
public DeviceInfo lookupDevice(java.lang.String userAgent)
- Specified by:
lookupDevice
in interface DeviceDetector
- Overrides:
lookupDevice
in class DefaultDeviceDetector
isMobile
public boolean isMobile(java.lang.String userAgent)
- Specified by:
isMobile
in interface DeviceDetector
- Overrides:
isMobile
in class DefaultDeviceDetector
getWURFLHolder
public net.sourceforge.wurfl.core.WURFLHolder getWURFLHolder()
setWURFLHolder
public void setWURFLHolder(net.sourceforge.wurfl.core.WURFLHolder wurflHolder)