com.sapportals.portal.useragent

Interface IUserAgent


Deprecated. Use the UserAgent in project uicore

public interface IUserAgent

The interface that represents the user agent string specified by an HTTP request header. An IUserAgent instance stores the type, version and platform of the user agent in the format: ua_type, ua_version, ua_platform.
An IUserAgent is constant; its value cannot be changed after it is created.


Method Summary
 Enumeration getAllKnownPlatforms()
          Deprecated. As of version EP 6.0.2.1; use IUserAgentService.getAllKnownPlatforms(Locale)
 Enumeration getAllKnownTypes()
          Deprecated. As of version EP 6.0.2.1; use IUserAgentService.getAllKnownTypes(Locale)
 int getMajorVersion()
          Deprecated. Gets the user agent major version.
 int getMinorVersion()
          Deprecated. Gets the user agent minor version.
 String getPlatform()
          Deprecated. Gets the user agent platform.
 String getType()
          Deprecated. Gets the user agent type.
 String getUserAgentString()
          Deprecated. Gets the user agent string.
 float getVersion()
          Deprecated. Gets the user agent version.
 String toString()
          Deprecated. Returns the user agent type, version and platform as a string representation.
 

Method Detail

getType

String getType()
Deprecated. 
Gets the user agent type. For example, Netscape.

Returns:
the user agent type

getVersion

float getVersion()
Deprecated. 
Gets the user agent version. For example, 1.23.

Returns:
the user agent version

getMajorVersion

int getMajorVersion()
Deprecated. 
Gets the user agent major version. For example, for version 1.23, returns 1.

Returns:
the user agent major version

getMinorVersion

int getMinorVersion()
Deprecated. 
Gets the user agent minor version. For example, for version 1.23, returns 23.

Returns:
the user agent minor version

getPlatform

String getPlatform()
Deprecated. 
Gets the user agent platform. For example, Linux or Win.

Returns:
the user agent platform

getUserAgentString

String getUserAgentString()
Deprecated. 
Gets the user agent string. For example, Mozilla/4.76 [en] (Windows NT 5.0; U).

Returns:
the user agent string

getAllKnownTypes

Enumeration getAllKnownTypes()
Deprecated. As of version EP 6.0.2.1; use IUserAgentService.getAllKnownTypes(Locale)

Gets an enumeration of all known user agent types as defined in IUserAgentConstants.

Returns:
enumeration of all known user agent types

getAllKnownPlatforms

Enumeration getAllKnownPlatforms()
Deprecated. As of version EP 6.0.2.1; use IUserAgentService.getAllKnownPlatforms(Locale)

Gets an enumeration of all known user agent platforms as defined in IUserAgentConstants.

Returns:
enumeration of all known user agent platforms

toString

String toString()
Deprecated. 
Returns the user agent type, version and platform as a string representation.

Overrides:
toString in class Object
Returns:
the user agent type, version and platform
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS [sap.com] tc/ep/useragent/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice