com.endeca.mobile.services.detection.impl
Class WURFLDeviceDetector

java.lang.Object
  extended by com.endeca.mobile.services.detection.impl.DefaultDeviceDetector
      extended by com.endeca.mobile.services.detection.impl.WURFLDeviceDetector
All Implemented Interfaces:
DeviceDetector

public class WURFLDeviceDetector
extends DefaultDeviceDetector


Constructor Summary
WURFLDeviceDetector()
          Constructor for use with xml based configuration like Spring.
WURFLDeviceDetector(net.sourceforge.wurfl.core.WURFLHolder wurflHolder)
           
 
Method Summary
 net.sourceforge.wurfl.core.WURFLHolder getWURFLHolder()
           
 boolean isMobile(java.lang.String userAgent)
           
 DeviceInfo lookupDevice(java.lang.String userAgent)
           
 void setWURFLHolder(net.sourceforge.wurfl.core.WURFLHolder wurflHolder)
           
 
Methods inherited from class com.endeca.mobile.services.detection.impl.DefaultDeviceDetector
getExcludeUrls, getIncludeUrls, isTablet, redirectURL, redirectURL, setExcludeUrls, setIncludeUrls
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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)