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

      • WurflDeviceManager

        public WurflDeviceManager()
        Constructor that initialize the Wrufl holder based on deviceDetectionNode defined on lumisportalconfig.
        Since:
        6.0.0
    • Method Detail

      • discoverDevice

        public IDevice discoverDevice​(HttpServletRequest request)
        Detects the device from the request and returns its capabilities.
        Specified by:
        discoverDevice in interface IDeviceManager
        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 interface IDeviceManager
        Parameters:
        userAgent - the user agent of the device.
        Returns:
        the device informations.