Class Device

  • All Implemented Interfaces:
    IDevice

    public class Device
    extends java.lang.Object
    implements IDevice
    Represents the device informations
    Since:
    6.0.0
    Version:
    $Revision: 19846 $ $Date: 2017-01-30 14:43:33 -0200 (Mon, 30 Jan 2017) $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEVICE_ENTRY_KEY  
      static java.lang.String DEVICE_TYPE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getCapabilities()
      Returns the device's capability map.
      java.lang.String getCapability​(java.lang.String capability)
      Returns string representing the device's capability
      java.lang.String getUserAgent()
      Returns string representing the device's user agent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getUserAgent

        public java.lang.String getUserAgent()
        Returns string representing the device's user agent
        Specified by:
        getUserAgent in interface IDevice
        Returns:
        string representing the device's user agent
        Throws:
        java.lang.Exception
      • getCapability

        public java.lang.String getCapability​(java.lang.String capability)
        Returns string representing the device's capability
        Specified by:
        getCapability in interface IDevice
        Parameters:
        capability - to be looked up
        Returns:
        string representing the device's capability
      • getCapabilities

        public java.util.Map<java.lang.String,​java.lang.String> getCapabilities()
        Returns the device's capability map.
        Specified by:
        getCapabilities in interface IDevice
        Returns:
        the device's capability map.