Package lumis.portal.device
Class Device
- java.lang.Object
-
- lumis.portal.device.Device
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEVICE_ENTRY_KEY
static String
DEVICE_TYPE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getCapabilities()
Returns the device's capability map.String
getCapability(String capability)
Returns string representing the device's capabilityString
getUserAgent()
Returns string representing the device's user agent
-
-
-
Field Detail
-
DEVICE_ENTRY_KEY
public static final String DEVICE_ENTRY_KEY
- See Also:
- Constant Field Values
-
DEVICE_TYPE
public static final String DEVICE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserAgent
public String getUserAgent()
Returns string representing the device's user agent- Specified by:
getUserAgent
in interfaceIDevice
- Returns:
- string representing the device's user agent
- Throws:
Exception
-
getCapability
public String getCapability(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 Map<String,String> getCapabilities()
Returns the device's capability map.- Specified by:
getCapabilities
in interfaceIDevice
- Returns:
- the device's capability map.
-
-