Package lumis.portal.device
Class DummyDeviceManager
- java.lang.Object
-
- lumis.portal.device.DummyDeviceManager
-
- All Implemented Interfaces:
IDeviceManager
public class DummyDeviceManager extends Object implements IDeviceManager
A device manager implementation that does not performs any detection, always returning a dummy device that has no capability.- Since:
- 6.2.0
- Version:
- $Revision: 19846 $ $Date: 2017-01-30 14:43:33 -0200 (Mon, 30 Jan 2017) $
-
-
Constructor Summary
Constructors Constructor Description DummyDeviceManager()
-
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)
Description copied from interface:IDeviceManager
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.
-
-