lumis.portal.device
Class Device

Package class diagram package Device
java.lang.Object
  extended by lumis.portal.device.Device
All Implemented Interfaces:
IDevice, IPortalRequestContextEntry

public class Device
extends Object
implements IDevice

Represents the device informations

Since:
6.0.0

Field Summary
static String DEVICE_ENTRY_KEY
           
 
Method Summary
 Map<String,String> getCapabilities()
          Returns the device's capability map.
 String getCapability(String capability)
          Returns string representing the device's capability
 Object getProperty(String key)
          Returns a specific property of the context.
 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
 

Field Detail

DEVICE_ENTRY_KEY

public static final String DEVICE_ENTRY_KEY
See Also:
Constant Field Values
Method Detail

getUserAgent

public 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:
Exception

getCapability

public String getCapability(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 Map<String,String> getCapabilities()
Returns the device's capability map.

Specified by:
getCapabilities in interface IDevice
Returns:
the device's capability map.

getProperty

public Object getProperty(String key)
Returns a specific property of the context.

Specified by:
getProperty in interface IPortalRequestContextEntry
Parameters:
key - the name of the context's property.
Returns:
a property of the context that match with the key.
Since:
6.0.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.