info.magnolia.module.devicedetection.mobiledetect
Class MobileDetectDeviceCapability

java.lang.Object
  extended by info.magnolia.module.devicedetection.mobiledetect.MobileDetectDeviceCapability
All Implemented Interfaces:
DeviceCapability

@Singleton
public class MobileDetectDeviceCapability
extends Object
implements DeviceCapability

Detects the type of device that's requesting content. Device detection is done using MobileESP.

Version:
$Id$

Field Summary
 
Fields inherited from interface info.magnolia.module.devicedetection.DeviceCapability
FALSE, TRUE
 
Constructor Summary
MobileDetectDeviceCapability()
           
 
Method Summary
 DeviceInfo createDeviceInfo()
           
 DeviceInfo getDeviceInfo(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileDetectDeviceCapability

public MobileDetectDeviceCapability()
Method Detail

createDeviceInfo

public DeviceInfo createDeviceInfo()

getDeviceInfo

public DeviceInfo getDeviceInfo(javax.servlet.http.HttpServletRequest request)
Specified by:
getDeviceInfo in interface DeviceCapability
Parameters:
request - request send from the device to extract information from
Returns:
the DeviceInfo. In case a certain capability is not defined or the returned value could not be interpreted we'll not modify the corresponding attribute (it'll stay to the default value).


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.