info.magnolia.module.devicedetection.mobiledetect
Class MobileDetectDeviceCapability
java.lang.Object
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$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MobileDetectDeviceCapability
public MobileDetectDeviceCapability()
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.