|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.lang.SerializableObject
|
+--com.jdc.http.user.Browser
Browser contains all available information regarding the user's web browser. This browser information is typically obtained by executing the JavaScript code in EnvironmentSensing.js (include script file).
| Field Summary | |
static String |
GECKO
|
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Browser()
Constructs a new Browser object. |
|
Browser(String appName)
Constructs a new Browser object with the specified name property. |
|
Browser(String appName,
String appVersion)
Constructs a new Browser object with the specified name and version properties. |
|
Browser(String appName,
String appVersion,
String userAgent)
Constructs a new Browser object with the specified name, version, and user agent properties. |
|
| Method Summary | |
boolean |
areCookiesEnabled()
Returns the status of browser cookies. |
String |
getAppName()
Returns the browser name property. |
String |
getAppVersion()
Returns the browser version property. |
String |
getName()
Returns the browser name. |
BrowserPage |
getPage()
Returns the browser page. |
String |
getUserAgent()
Returns the browser user agent property. |
float |
getVersion()
Returns the browser version. |
boolean |
isBrowser(String browser)
Returns true if the browser is the specified browser. |
boolean |
isGecko()
Returns true if the browser is Gecko. |
boolean |
isInternetExplorer()
Returns true if the browser is Microsoft Internet Explorer. |
boolean |
isMozilla()
Returns true if the browser is Mozilla. |
boolean |
isNetscapeNavigator()
Returns true if the browser is Netscape Navigator. |
boolean |
isOpera()
Returns true if the browser is Opera. |
void |
setAppName(String appName)
Sets the browser name property obtained from the JavaScript: appName = navigator.appName; |
void |
setAppVersion(String appVersion)
Sets the browser version property obtained from the JavaScript: appVersion = navigator.appVersion; |
void |
setCookiesEnabled(String areCookiesEnabled)
Sets the status for browser cookies. |
void |
setUserAgent(String userAgent)
Sets the browser user agent property obtained from the JavaScript: userAgent = navigator.userAgent; |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String GECKO
| Constructor Detail |
public Browser()
public Browser(String appName)
public Browser(String appName,
String appVersion)
public Browser(String appName,
String appVersion,
String userAgent)
| Method Detail |
public boolean areCookiesEnabled()
True if browser cookies are enabled.
False if browser cookies are disabled.public String getAppName()
public String getAppVersion()
public String getName()
public BrowserPage getPage()
public String getUserAgent()
public float getVersion()
public boolean isBrowser(String browser)
public boolean isGecko()
public boolean isInternetExplorer()
public boolean isMozilla()
public boolean isNetscapeNavigator()
public boolean isOpera()
public void setAppName(String appName)
appName - The browser name property.public void setAppVersion(String appVersion)
appVersion - The browser version property.public void setCookiesEnabled(String areCookiesEnabled)
public void setUserAgent(String userAgent)
userAgent - The browser user agent property.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||