|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.portal.prt.util.Stringable
|
+--com.sapportals.portal.prt.component.ClientType
{#link IUserAgent}
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
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 |
public static final ClientType HTML
public static final ClientType WML
public static final ClientType XML
public static final ClientType TEXT
public static final ClientType URL
public static final java.lang.String[] TypeString
public static final int OTHER
public static final int MSIE
public static final int NETSCAPE
public static final int MOZILLA
public static final int OPERA
public static final int NOKIA
public static final int UP
public static final int ERICSSON
public static final int MSPIE
public static final int PALM
public static final java.lang.String[] PlatformString
public static final int OTHER_PLATFORM
public static final int NT_PLATFORM
public static final int WIN_PLATFORM
public static final int MAC_PLATFORM
public static final int LINUX_PLATFORM
public static final int WAP_PLATFORM
public static final int PDA_PLATFORM
| Constructor Detail |
public ClientType(java.lang.String type)
type -
public ClientType(java.lang.String type,
java.lang.String userAgent)
type - userAgent - | Method Detail |
public java.lang.String getAbbriviation()
public int getBrowserType()
public java.lang.String getBrowserTypeStr()
public float getVersion()
public java.lang.String getVersionStr()
public int getMajorVersion()
public int getMinorVersion()
public int getPlatform()
public java.lang.String getPlatformStr()
public java.lang.String browserFamily()
public java.lang.String getHttpUserAgent()
public java.lang.String printContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||