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 java.lang.Object
implements IDevice

Represents the device informations

Since:
6.0.0

Field Summary
static java.lang.String DEVICE_ENTRY_KEY
           
 
Method Summary
 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.Object getProperty(java.lang.String key)
          Returns a specific property of the context.
 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
 

Field Detail

DEVICE_ENTRY_KEY

public static final java.lang.String DEVICE_ENTRY_KEY
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 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.

getProperty

public java.lang.Object getProperty(java.lang.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.1.0.111014 - Copyright © 2001-2007, Lumis. All Rights Reserved.