com.sap.portal.mdm.connectivity

Class DeviceInfo

java.lang.Object
  extended by com.sap.portal.mdm.connectivity.DeviceInfo

public class DeviceInfo
extends Object

Contains mobile device information such as device type and user agent.


Constructor Summary
DeviceInfo(String userAgent, com.sap.portal.ds.objects.DeviceType deviceType)
          Contains mobile device information such as device type and user agent
 
Method Summary
 com.sap.portal.ds.objects.DeviceType getDeviceType()
          Returns the device type
 String getUserAgent()
          Returns the user agent of the device
 void setDeviceType(com.sap.portal.ds.objects.DeviceType deviceType)
          Sets the device type
 void setUserAgent(String userAgent)
          Sets the user agent of the device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceInfo

public DeviceInfo(String userAgent,
                  com.sap.portal.ds.objects.DeviceType deviceType)
Contains mobile device information such as device type and user agent

Parameters:
userAgent - the user agent received from Device
deviceType - the device type defined by the DeviceType enumeration
Method Detail

getUserAgent

public String getUserAgent()
Returns the user agent of the device

Returns:
userAgent the user agent of device

setUserAgent

public void setUserAgent(String userAgent)
Sets the user agent of the device

Parameters:
userAgent - the user agent received from the device

getDeviceType

public com.sap.portal.ds.objects.DeviceType getDeviceType()
Returns the device type

Returns:
deviceType the device type defined by the DeviceType enumeration

setDeviceType

public void setDeviceType(com.sap.portal.ds.objects.DeviceType deviceType)
Sets the device type

Parameters:
deviceType - the device type defined by the DeviceType enumeration


Copyright 2013 SAP AG Complete Copyright Notice