com.sapportals.portal.useragent
Interface IUserAgent


public interface IUserAgent

Version:
$Revision: #1 $.

Method Summary
 java.util.Enumeration getAllKnownPlatforms()
          Deprecated. as of Version EP 6.0.2.1; this method is replaced by IUserAgentService.getAllKnownPlatforms(Locale)
 java.util.Enumeration getAllKnownTypes()
          Deprecated. as of Version EP 6.0.2.1; this method is replaced by IUserAgentService.getAllKnownTypes(Locale)
 int getMajorVersion()
          Returns the major version of this IUserAgent object
 int getMinorVersion()
          Returns the minor version of this IUserAgent object The minor version is the fraction of version multiplied with 100
 java.lang.String getPlatform()
          Returns the platform of this IUserAgent object
 java.lang.String getType()
          Returns the type of this IUserAgent object
 java.lang.String getUserAgentString()
          Returns the original User Agent String of this IUserAgent object
 float getVersion()
          Returns the version of this IUserAgent object
 java.lang.String toString()
          Returns the information of the user agent in a human readable representation.
 

Method Detail

getType

public java.lang.String getType()
Returns the type of this IUserAgent object
Returns:
the type of this User Agent (e.g. "Netscape")

getVersion

public float getVersion()
Returns the version of this IUserAgent object
Returns:
the version of this User Agent (e.g. 1.23f, for version = 1.23)

getMajorVersion

public int getMajorVersion()
Returns the major version of this IUserAgent object
Returns:
the major version of this User Agent (e.g. 1, for version = 1.23)

getMinorVersion

public int getMinorVersion()
Returns the minor version of this IUserAgent object The minor version is the fraction of version multiplied with 100
Returns:
the minor version of this User Agent (e.g. 23, for version = 1.23)

getPlatform

public java.lang.String getPlatform()
Returns the platform of this IUserAgent object
Returns:
the platform of this User Agent (e.g. "Linux" or "Win")

getUserAgentString

public java.lang.String getUserAgentString()
Returns the original User Agent String of this IUserAgent object
Returns:
the original User Agent String of this User Agent (e.g. "Mozilla/4.76 [en] (Windows NT 5.0; U)");

getAllKnownTypes

public java.util.Enumeration getAllKnownTypes()
Deprecated. as of Version EP 6.0.2.1; this method is replaced by IUserAgentService.getAllKnownTypes(Locale)

Returns an enumeration of all known User Agent types as defined in IUserAgentConstants
Returns:
enumeration of Strings of all known User Agent types
See Also:
getAllKnownPlatforms(), IUserAgentConstants

getAllKnownPlatforms

public java.util.Enumeration getAllKnownPlatforms()
Deprecated. as of Version EP 6.0.2.1; this method is replaced by IUserAgentService.getAllKnownPlatforms(Locale)

Returns an enumeration of all known User Agent platforms as defined in IUserAgentConstants
Returns:
enumeration of Strings of all known User Agent types
See Also:
getAllKnownPlatforms(), IUserAgentConstants

toString

public java.lang.String toString()
Returns the information of the user agent in a human readable representation.
Overrides:
toString in class java.lang.Object
Returns:
type, version and platform of this user agent in a triplet form: "( {UA_type}, {UA_version}, {UA_platform} )"