Package lumis.portal.device
Class Device
- java.lang.Object
-
- lumis.portal.device.Device
-
-
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 capabilityjava.lang.String
getUserAgent()
Returns string representing the device's user agent
-
-
-
Field Detail
-
DEVICE_ENTRY_KEY
public static final java.lang.String DEVICE_ENTRY_KEY
- See Also:
- Constant Field Values
-
DEVICE_TYPE
public static final java.lang.String DEVICE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserAgent
public java.lang.String getUserAgent()
Returns string representing the device's user agent- Specified by:
getUserAgent
in interfaceIDevice
- 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 interfaceIDevice
- 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 interfaceIDevice
- Returns:
- the device's capability map.
-
-