com.sapportals.portal.prt.component

Class ClientType

java.lang.Object
  extended by com.sapportals.portal.prt.util.Stringable
      extended by com.sapportals.portal.prt.component.ClientType

Deprecated. Note: this class is no longer used. The provided information may also not be relevant. Please see {#link IUserAgent}

public class ClientType
extends Stringable

The ClientType identifies the type of the client that has sent the request.

It could be one of the following: html, wml, xml, .. A better classification is in progress

See Also:
PortalComponentContentType

Field Summary
static int ERICSSON
          Deprecated.  
static ClientType HTML
          Deprecated.  
static int LINUX_PLATFORM
          Deprecated.  
static int MAC_PLATFORM
          Deprecated.  
static int MOZILLA
          Deprecated.  
static int MSIE
          Deprecated.  
static int MSPIE
          Deprecated.  
static int NETSCAPE
          Deprecated.  
static int NOKIA
          Deprecated.  
static int NT_PLATFORM
          Deprecated.  
static int OPERA
          Deprecated.  
static int OTHER
          Deprecated.  
static int OTHER_PLATFORM
          Deprecated.  
static int PALM
          Deprecated.  
static int PDA_PLATFORM
          Deprecated.  
static String[] PlatformString
          Deprecated. platform distinction ** following minimal platforms are of interest If you change or add additional platform types, make sure you change PlatformString AND add a static final int Value representing the index of that string
static ClientType TEXT
          Deprecated.  
static String[] TypeString
          Deprecated. ClientType constants ** distinct browser types If you change or add additional browser types, make sure you change TypeString AND add a static final int Value representing the index of that string
static int UP
          Deprecated.  
static ClientType URL
          Deprecated.  
static int WAP_PLATFORM
          Deprecated.  
static int WIN_PLATFORM
          Deprecated.  
static ClientType WML
          Deprecated.  
static ClientType XML
          Deprecated.  
 
Constructor Summary
ClientType(String type)
          Deprecated. Defaut type of a client is unknown
ClientType(String type, String userAgent)
          Deprecated. Constructor with userAgent
 
Method Summary
 String browserFamily()
          Deprecated. browserFamily returns a string which is composed of three parts browser type, version and platform the three different parts are separated by "/" for example Mozilla/4.75/Win returns String
 String getAbbriviation()
          Deprecated. returns a common abbriviation for this client type like "nn4", "ie5" etc.
 int getBrowserType()
          Deprecated. returns int browser type
 String getBrowserTypeStr()
          Deprecated. returns String browser type as string
 String getHttpUserAgent()
          Deprecated. returns String original string of useragent of browser type
 int getMajorVersion()
          Deprecated. returns int major version of browser type.
 int getMinorVersion()
          Deprecated. returns int minor version of browser type.
 int getPlatform()
          Deprecated. returns int integer value of platform
 String getPlatformStr()
          Deprecated. returns String string representation of platform
 float getVersion()
          Deprecated. returns float floating point version of browser type for example 5.01
 String getVersionStr()
          Deprecated. returns String full version of browser type for example 5.01b
 String printContent()
          Deprecated. Returns String representation of ClientType for test purposes only returns String
 
Methods inherited from class com.sapportals.portal.prt.util.Stringable
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HTML

public static final ClientType HTML
Deprecated. 

WML

public static final ClientType WML
Deprecated. 

XML

public static final ClientType XML
Deprecated. 

TEXT

public static final ClientType TEXT
Deprecated. 

URL

public static final ClientType URL
Deprecated. 

TypeString

public static final String[] TypeString
Deprecated. 
ClientType constants ** distinct browser types If you change or add additional browser types, make sure you change TypeString AND add a static final int Value representing the index of that string


OTHER

public static final int OTHER
Deprecated. 
See Also:
Constant Field Values

MSIE

public static final int MSIE
Deprecated. 
See Also:
Constant Field Values

NETSCAPE

public static final int NETSCAPE
Deprecated. 
See Also:
Constant Field Values

MOZILLA

public static final int MOZILLA
Deprecated. 
See Also:
Constant Field Values

OPERA

public static final int OPERA
Deprecated. 
See Also:
Constant Field Values

NOKIA

public static final int NOKIA
Deprecated. 
See Also:
Constant Field Values

UP

public static final int UP
Deprecated. 
See Also:
Constant Field Values

ERICSSON

public static final int ERICSSON
Deprecated. 
See Also:
Constant Field Values

MSPIE

public static final int MSPIE
Deprecated. 
See Also:
Constant Field Values

PALM

public static final int PALM
Deprecated. 
See Also:
Constant Field Values

PlatformString

public static final String[] PlatformString
Deprecated. 
platform distinction ** following minimal platforms are of interest If you change or add additional platform types, make sure you change PlatformString AND add a static final int Value representing the index of that string


OTHER_PLATFORM

public static final int OTHER_PLATFORM
Deprecated. 
See Also:
Constant Field Values

NT_PLATFORM

public static final int NT_PLATFORM
Deprecated. 
See Also:
Constant Field Values

WIN_PLATFORM

public static final int WIN_PLATFORM
Deprecated. 
See Also:
Constant Field Values

MAC_PLATFORM

public static final int MAC_PLATFORM
Deprecated. 
See Also:
Constant Field Values

LINUX_PLATFORM

public static final int LINUX_PLATFORM
Deprecated. 
See Also:
Constant Field Values

WAP_PLATFORM

public static final int WAP_PLATFORM
Deprecated. 
See Also:
Constant Field Values

PDA_PLATFORM

public static final int PDA_PLATFORM
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ClientType

public ClientType(String type)
Deprecated. 
Defaut type of a client is unknown

Parameters:
type -

ClientType

public ClientType(String type,
                  String userAgent)
Deprecated. 
Constructor with userAgent

Parameters:
type -
userAgent -
Method Detail

getAbbriviation

public String getAbbriviation()
Deprecated. 
returns a common abbriviation for this client type like "nn4", "ie5" etc.

Returns:
String common abbriviation of this client including type and major version

getBrowserType

public int getBrowserType()
Deprecated. 
returns int browser type


getBrowserTypeStr

public String getBrowserTypeStr()
Deprecated. 
returns String browser type as string


getVersion

public float getVersion()
Deprecated. 
returns float floating point version of browser type for example 5.01


getVersionStr

public String getVersionStr()
Deprecated. 
returns String full version of browser type for example 5.01b


getMajorVersion

public int getMajorVersion()
Deprecated. 
returns int major version of browser type. for example if useragent specifies version 5.01b getMajorVersion returns 5


getMinorVersion

public int getMinorVersion()
Deprecated. 
returns int minor version of browser type. fullVersion can contain following string: "3.03Gold" from Mozilla/3.03Gold (Win95; I) return value is 3 or "5.0b2" from Mozilla/4.0 (compatible; MSIE 5.0b2; Windows NT) return value is 0 therefore use m_version (float) to determine minor version


getPlatform

public int getPlatform()
Deprecated. 
returns int integer value of platform


getPlatformStr

public String getPlatformStr()
Deprecated. 
returns String string representation of platform


browserFamily

public String browserFamily()
Deprecated. 
browserFamily returns a string which is composed of three parts browser type, version and platform the three different parts are separated by "/" for example Mozilla/4.75/Win returns String


getHttpUserAgent

public String getHttpUserAgent()
Deprecated. 
returns String original string of useragent of browser type


printContent

public String printContent()
Deprecated. 
Returns String representation of ClientType for test purposes only returns String

Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT


Copyright 2011 SAP AG Complete Copyright Notice