Package lumis.portal.device
Class WurflDeviceManager
- java.lang.Object
-
- lumis.portal.device.WurflDeviceManager
-
- All Implemented Interfaces:
IDeviceManager
public class WurflDeviceManager extends Object implements IDeviceManager
Manages Device informations- Since:
- 6.0.0
- Version:
- $Revision: 18849 $ $Date: 2016-05-09 16:30:15 -0300 (Mon, 09 May 2016) $
-
-
Constructor Summary
Constructors Constructor Description WurflDeviceManager()
Constructor that initialize the Wrufl holder based on deviceDetectionNode defined on lumisportalconfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDevice
discoverDevice(String userAgent)
Returns one Device according with the lumUserAgent informed on parameter.IDevice
discoverDevice(HttpServletRequest request)
Detects the device from the request and returns its capabilities.
-
-
-
Method Detail
-
discoverDevice
public IDevice discoverDevice(HttpServletRequest request)
Detects the device from the request and returns its capabilities.- Specified by:
discoverDevice
in interfaceIDeviceManager
- Parameters:
request
- the http request.- Returns:
- the device informations.
-
discoverDevice
public IDevice discoverDevice(String userAgent)
Description copied from interface:IDeviceManager
Returns one Device according with the lumUserAgent informed on parameter.- Specified by:
discoverDevice
in interfaceIDeviceManager
- Parameters:
userAgent
- the user agent of the device.- Returns:
- the device informations.
-
-