com.sapportals.portal.prt.component
Class ClientType

java.lang.Object
  |
  +--com.sapportals.portal.prt.util.Stringable
        |
        +--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 java.lang.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 java.lang.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(java.lang.String type)
          Deprecated. Defaut type of a client is unknown
ClientType(java.lang.String type, java.lang.String userAgent)
          Deprecated. Constructor with userAgent
 
Method Summary
 java.lang.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
 java.lang.String getAbbriviation()
          Deprecated. returns a common abbriviation for this client type like "nn4", "ie5" etc.
 int getBrowserType()
          Deprecated. returns int browser type
 java.lang.String getBrowserTypeStr()
          Deprecated. returns String browser type as string
 java.lang.String getHttpUserAgent()
          Deprecated. returns String original string of useragent of browser type
 int getMajorVersion()
          Deprecated. returns int major version of browser type. for example if useragent specifies version 5.01b getMajorVersion returns 5
 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
 int getPlatform()
          Deprecated. returns int integer value of platform
 java.lang.String getPlatformStr()
          Deprecated. returns String string representation of platform
 float getVersion()
          Deprecated. returns float floating point version of browser type for example 5.01
 java.lang.String getVersionStr()
          Deprecated. returns String full version of browser type for example 5.01b
 java.lang.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 java.lang.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. 

MSIE

public static final int MSIE
Deprecated. 

NETSCAPE

public static final int NETSCAPE
Deprecated. 

MOZILLA

public static final int MOZILLA
Deprecated. 

OPERA

public static final int OPERA
Deprecated. 

NOKIA

public static final int NOKIA
Deprecated. 

UP

public static final int UP
Deprecated. 

ERICSSON

public static final int ERICSSON
Deprecated. 

MSPIE

public static final int MSPIE
Deprecated. 

PALM

public static final int PALM
Deprecated. 

PlatformString

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

NT_PLATFORM

public static final int NT_PLATFORM
Deprecated. 

WIN_PLATFORM

public static final int WIN_PLATFORM
Deprecated. 

MAC_PLATFORM

public static final int MAC_PLATFORM
Deprecated. 

LINUX_PLATFORM

public static final int LINUX_PLATFORM
Deprecated. 

WAP_PLATFORM

public static final int WAP_PLATFORM
Deprecated. 

PDA_PLATFORM

public static final int PDA_PLATFORM
Deprecated. 
Constructor Detail

ClientType

public ClientType(java.lang.String type)
Deprecated. 
Defaut type of a client is unknown
Parameters:
type -  

ClientType

public ClientType(java.lang.String type,
                  java.lang.String userAgent)
Deprecated. 
Constructor with userAgent
Parameters:
type -  
userAgent -  
Method Detail

getAbbriviation

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

getBrowserType

public int getBrowserType()
Deprecated. 
returns int browser type

getBrowserTypeStr

public java.lang.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 java.lang.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 java.lang.String getPlatformStr()
Deprecated. 
returns String string representation of platform

browserFamily

public java.lang.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 java.lang.String getHttpUserAgent()
Deprecated. 
returns String original string of useragent of browser type

printContent

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