jasp.webcom
Class BrowserType

java.lang.Object
  |
  +--jasp.webcom.BrowserType

public class BrowserType
extends java.lang.Object

Creates a BrowserType object that determines the capabilities, type, and version of each browser that accesses your Web site.


Constructor Summary
BrowserType()
          Creates a BrowserType object that provides your scripts with a description of the capabilities of the client's Web browser.
 
Method Summary
 boolean ActiveControls()
          Gets a value indicating whether the client browser supports ActiveX controls
 boolean Aol()
          Gets a value indicating whether the client is an America Online (AOL) browser.
 boolean BackGroundSounds()
          Gets a value indicating whether the client browser supports background sounds.
 boolean Beta()
          Gets a value indicating whether the browser is a beta release.
 java.lang.String Browser()
          Gets the browser string (if any) that was transmitted in the User-Agent header.
 boolean Cdf()
          Gets a value indicating whether the client browser supports Channel Definition Format (CDF) for webcasting.
 boolean Cookies()
          Gets a value indicating whether the client browser supports cookies.
 boolean Crawler()
          Gets a value indicating whether the client browser is a Web crawler search engine.
 java.lang.String EcmaScriptVersion()
          Gets the version number of ECMA script that the client browser supports.
 boolean Frames()
          Gets a value indicating whether the client browser supports HTML frames.
 java.lang.String getDynamicProp(java.lang.String name)
          Gets the dynamic properties of Browser.
 int getMajorVer()
          Gets the major version number of the client browser.
 int getMinorVer()
          Gets the minor (that is, decimal) version number of the client browser.
 boolean Javaapplets()
          Gets a value indicating whether the client browser supports Java applets.
 boolean Javascript()
          Gets a value indicating whether the client browser supports JavaScript.
 java.lang.String Platform()
          Gets the name of the platform that the client uses.
 boolean Tables()
          Gets a value indicating whether the client browser supports HTML tables.
 boolean Vbscript()
          Gets a value indicating whether the client browser supports VBScript.
 java.lang.String Version()
          Gets the full (integer and decimal) version number of the client browser.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserType

public BrowserType()
Creates a BrowserType object that provides your scripts with a description of the capabilities of the client's Web browser.
Method Detail

Vbscript

public boolean Vbscript()
Gets a value indicating whether the client browser supports VBScript.
Returns:
true if the browser client supports VBScript; otherwise, false. The default is false.

Version

public java.lang.String Version()
Gets the full (integer and decimal) version number of the client browser.
Returns:
The full version number of the browser (for example, 5.0).

Tables

public boolean Tables()
Gets a value indicating whether the client browser supports HTML tables.
Returns:
true if the browser client supports tables; otherwise, false. The default is false.

Javascript

public boolean Javascript()
Gets a value indicating whether the client browser supports JavaScript.
Returns:
true if browser client supports JavaScript; otherwise, false. The default is false.

Javaapplets

public boolean Javaapplets()
Gets a value indicating whether the client browser supports Java applets.
Returns:
true if the browser client supports Java applets; otherwise, false. The default is false.

Frames

public boolean Frames()
Gets a value indicating whether the client browser supports HTML frames.
Returns:
true if the browser client supports frames; otherwise, false. The default is false.

Cookies

public boolean Cookies()
Gets a value indicating whether the client browser supports cookies.
Returns:
true if the browser client supports cookies; otherwise, false. The default is false.

Cdf

public boolean Cdf()
Gets a value indicating whether the client browser supports Channel Definition Format (CDF) for webcasting.
Returns:
true if the browser client supports CDF; otherwise, false. The default is false.

Crawler

public boolean Crawler()
Gets a value indicating whether the client browser is a Web crawler search engine.
Returns:
true if the browser client is a search engine; otherwise, false. The default is false.

Browser

public java.lang.String Browser()
Gets the browser string (if any) that was transmitted in the User-Agent header.
Returns:
The browser type (for example ("IE").

Beta

public boolean Beta()
Gets a value indicating whether the browser is a beta release.
Returns:
true if the browser client is a beta version; otherwise, false. The default is false.

ActiveControls

public boolean ActiveControls()
Gets a value indicating whether the client browser supports ActiveX controls
Returns:
true if the browser client supports ActiveX controls; otherwise, false. The default is false.

BackGroundSounds

public boolean BackGroundSounds()
Gets a value indicating whether the client browser supports background sounds.
Returns:
true if the browser client supports background sounds; otherwise, false. The default is false.

Platform

public java.lang.String Platform()
Gets the name of the platform that the client uses.
Returns:
The operating system that the client uses (for example, WinNT).

getMajorVer

public int getMajorVer()
Gets the major version number of the client browser.
Returns:
The major version number of the browser (for example, 5).

getDynamicProp

public java.lang.String getDynamicProp(java.lang.String name)
Gets the dynamic properties of Browser.

Aol

public boolean Aol()
Gets a value indicating whether the client is an America Online (AOL) browser.

getMinorVer

public int getMinorVer()
Gets the minor (that is, decimal) version number of the client browser.
Returns:
The minor version number of the browser (for example, .01).

EcmaScriptVersion

public java.lang.String EcmaScriptVersion()
Gets the version number of ECMA script that the client browser supports.
Returns:
The version number of ECMA script that the client browser supports.