public interface BrowserInfo
Interface for accessing the various properties and capabilities of the visiting browser. Implements Serializable so a servlet/JSP can place an instance of this class in an HttpSession and have the server persist it to disk.
All these properties are available with BrowserHawk Standard Edition except WinInstallerMinVer which requires BrowserHawk Enterprise Edition.
| Method Summary | |
|---|---|
java.lang.String |
applyRules(java.lang.String ruleset)
Applies the given set of rules and returns a String determined by the rules, or the empty string if no rule matches. |
java.lang.Object |
clone()
Support BrowserInfo cloning |
java.lang.Object |
get(java.lang.String propertyName)
Returns the value of the property whose name is specified as a String. |
boolean |
getActiveXControls()
Returns whether the browser supports ActiveX controls |
boolean |
getAOL()
Returns whether the visitor is accessing your site through an America Online branded browser (on the AOL network) |
double |
getAOLVersion()
Returns the AOL version number being used. |
int |
getAuthenticodeUpdate()
Returns the version of Authenticode which the browser supports. |
boolean |
getBackgroundSounds()
Returns whether the browser supports playing background sounds. |
java.lang.String |
getBDDDate()
Returns the date (as a String) for when the BDD data file was built, for example "5/1/2002 5:46:11 PM". |
java.lang.String |
getBDDVersion()
Returns the version of the BDD data file, for example "5.03a". |
boolean |
getBeta()
Returns whether the browser is a beta version. |
java.lang.String |
getBrowser()
Returns the common name associated with the browser such as "Netscape" and "IE" |
boolean |
getCDF()
Returns whether the browser supports Channel Definition Format for "subscribing" to web content with optional auto-updates. |
int |
getCharHeightAvail()
Returns the number of characters you can fit down the screen of wireless devices without breaks. |
int |
getCharWidthAvail()
Provides the amount of characters you can fit across the screen of wireless devices without breaks. |
boolean |
getCompressGZip()
Returns whether the browser accepts compressed content in GZip format. |
java.lang.String |
getContainerBrowser()
Returns the browser, if any, that surrounds the browsing environment. |
java.lang.String |
getContainerFullversion()
Returns the full version of the browser, if any, that surrounds the browsing environment. |
double |
getContainerVersion()
Returns the version of the browser, if any, that surrounds the browsing environment. |
boolean |
getCookies()
Returns whether the browser supports the ability to accept cookies |
java.lang.String |
getCountry()
Returns the 2-letter country code for the client. |
boolean |
getCrawler()
Returns whether the browser is actually a crawler, spider, or other agent used to index a site for searchable content |
boolean |
getDHTML()
Returns whether the browser supports DHTML script. |
boolean |
getEmailCrawler()
Returns whether the visiting agent is a crawler designed to scan your site for the purpose of collecting email addresses listed on your site's pages. |
java.lang.String |
getFileUpload()
Returns "Yes", "Maybe", or "No" to indicate whether the browser supports the ability to have a user upload a file to your server from their browser (whether the browser supports RFC 1867) |
boolean |
getFontColor()
Returns whether the browser supports the display of different colored text. |
boolean |
getFontSize()
Returns whether the browser supports the ability to display varying font sizes. |
boolean |
getFrames()
Returns whether the browser supports frames. |
java.lang.String |
getFullversion()
Returns the entire version of the browser, including all major and minor numbers and letters, if any. |
boolean |
getGecko()
Returns whether the client uses the Gecko rendering engine (developed by Mozilla.org). |
java.lang.String |
getGeckoBuildDate()
Returns the build date of the Gecko rendering engine in the client, or null if none. |
boolean |
getGold()
Returns whether the browser is a Gold version of the Netscape browsers. |
boolean |
getHDML()
Returns true if the client device supports HDML (WAP's predecessor). |
boolean |
getIFrames()
Returns whether the browser supports the IFRAME tag. |
java.lang.String |
getIPAddr()
Returns the IP address of the visitor. |
boolean |
getJavaApplets()
Returns whether the browser supports Java applets. |
boolean |
getJavaScript()
Returns whether the browser supports JavaScript. |
double |
getJavaScriptVer()
Returns the version of JavaScript that the browser supports. |
java.lang.String |
getLanguage()
Returns the most likely preference for the visitor's spoken language. |
int |
getMajorver()
Returns the major version of the browser. |
double |
getMinorver()
Returns the minor version of the browser. |
java.lang.String |
getMinorverlet()
Returns the minor version letter of the browser, if any. |
boolean |
getMouseOver()
Returns whether the browser supports the ability to use JavaScript mouse-over effects. |
boolean |
getMSN()
Returns whether the user is on the MSN network. |
boolean |
getNETCLRInstalled()
Returns whether the .NET CLR is installed on the client. |
java.lang.String |
getNETCLRVersion()
Returns the version of the .NET CLR installed on the client, or null if none or information not available. |
java.lang.String |
getOSDetails()
Returns details on operating system the visitor is using. |
boolean |
getPDA()
Returns true if the client is a PDA device such as a Palm Pilot |
java.lang.String |
getPlatform()
Returns more general information (as compared to getOSDetails()) about the user's platform. |
boolean |
getPNG()
Returns whether the browser supports the Portable Network Graphic (PNG) image file format. |
boolean |
getProxy()
Returns whether the user is connecting through a proxy server. |
java.lang.String |
getProxyString()
Returns the name of the proxy or proxies that acted on this request when that information is available, or the empty string if none. |
java.lang.String |
getResolveIP()
Returns the hostname of the client making the web request, as a String, or null if it cannot be determined for any reason. |
boolean |
getSSL()
Returns whether the browser supports the Secure Sockets Layer (SSL) protocol |
boolean |
getSSLActive()
Returns whether the user is connected through an active SSL connection. |
java.lang.String |
getSSLCipherSuite()
Returns the SSL cipher suite used for this SSL session; only available if the user is connected through an active SSL connection. |
int |
getSSLKeySize()
Returns the SSL key size that the browser supports; only available if the user is connected through an active SSL connection. |
boolean |
getStyleSheets()
Returns whether the browser supports cascading style sheets (CSS). |
boolean |
getTableBGColor()
Returns whether the browser supports the ability to control the color of individual HTML table cells. |
boolean |
getTableBGImage()
Returns whether the browser supports the ability to display an image in the background of individual HTML table cells. |
boolean |
getTables()
Returns whether the browser supports the ability display HTML tables. |
boolean |
getVBScript()
Returns whether the browser supports VBScript. |
double |
getVersion()
Returns the version of the browser. |
boolean |
getWAP()
Returns true for devices that support WML and WAP (Wireless Application Protocol), such as wireless phones. |
java.lang.String |
getWAPDeviceModel()
Contains the model of the WAP device if known, or "Unknown" if not. |
java.lang.String |
getWAPGateway()
Shows details of the UP.Link gateway if being used. |
int |
getWAPMaxDeckSize()
Contains the approximate maximum number of bytes that the wireless device will support in a deck. |
java.lang.String |
getWAPSubscriberID()
Automatically set to the unqiue subscriber ID of the WAP visitor when available. |
boolean |
getWin16()
Returns whether the browser is running on a 16 bit Windows operating system, such as Windows 3.1. |
double |
getWinInstallerMinVer()
Returns the minimum version of the Windows Installer that is installed on the client. |
boolean |
getXML()
Returns whether the browser supports direct XML display. |
boolean |
getXMLHttpRequest()
Returns whether this client supports the XMLHttpRequest object used for AJAX interactions. |
java.lang.String |
toXML()
Returns an XML representation of all the BrowserInfo properties and their associated values. |
java.lang.String |
toXML(java.util.Properties props)
Returns an XML representation of all the BrowserInfo properties and their associated values. |
| Method Detail |
|---|
java.lang.Object clone()
boolean getActiveXControls()
boolean getAOL()
double getAOLVersion()
int getAuthenticodeUpdate()
boolean getBackgroundSounds()
boolean getBeta()
java.lang.String getBrowser()
boolean getCDF()
int getCharHeightAvail()
int getCharWidthAvail()
boolean getCookies()
boolean getCompressGZip()
boolean getCrawler()
boolean getDHTML()
java.lang.String getFileUpload()
boolean getFontColor()
boolean getFontSize()
boolean getFrames()
java.lang.String getFullversion()
boolean getGold()
boolean getHDML()
java.lang.String getIPAddr()
boolean getJavaApplets()
boolean getJavaScript()
double getJavaScriptVer()
java.lang.String getLanguage()
int getMajorver()
double getMinorver()
java.lang.String getMinorverlet()
boolean getMouseOver()
boolean getMSN()
java.lang.String getOSDetails()
java.lang.String getPlatform()
boolean getPDA()
boolean getPNG()
boolean getProxy()
boolean getSSL()
boolean getSSLActive()
java.lang.String getSSLCipherSuite()
int getSSLKeySize()
boolean getStyleSheets()
boolean getTableBGColor()
boolean getTableBGImage()
boolean getTables()
boolean getVBScript()
double getVersion()
boolean getWAP()
java.lang.String getWAPDeviceModel()
java.lang.String getWAPGateway()
int getWAPMaxDeckSize()
java.lang.String getWAPSubscriberID()
boolean getWin16()
boolean getXML()
boolean getEmailCrawler()
boolean getIFrames()
java.lang.String applyRules(java.lang.String ruleset)
java.lang.String getResolveIP()
java.lang.String getBDDVersion()
java.lang.String getBDDDate()
boolean getNETCLRInstalled()
java.lang.String getNETCLRVersion()
boolean getGecko()
java.lang.String getGeckoBuildDate()
java.lang.String getProxyString()
double getWinInstallerMinVer()
Requires BrowserHawk Enterprise Edition.
java.lang.String getCountry()
java.lang.String getContainerBrowser()
This property on BrowserInfo can detect container browsers when identifying tokens are placed in the User-Agent sent from the client, such as when Netscape 8 or the AOL Browser wrap IE 6. The property by the same name on ExtendedBrowserInfo can detect these and additionally detect browser wrappings that require client-side JavaScript execution for detection such as when the Windows Media Player wraps IE 6.
double getContainerVersion()
This property on BrowserInfo can detect container browsers when identifying tokens are placed in the User-Agent sent from the client, such as when Netscape 8 or the AOL Browser wrap IE 6. The property by the same name on ExtendedBrowserInfo can detect these and additionally detect browser wrappings that require client-side JavaScript execution for detection such as when the Windows Media Player wraps IE 6.
java.lang.String getContainerFullversion()
This property on BrowserInfo can detect container browsers when identifying tokens are placed in the User-Agent sent from the client, such as when Netscape 8 or the AOL Browser wrap IE 6. The property by the same name on ExtendedBrowserInfo can detect these and additionally detect browser wrappings that require client-side JavaScript execution for detection such as when the Windows Media Player wraps IE 6.
boolean getXMLHttpRequest()
java.lang.String toXML()
ExtendedBrowserInfo.toXML() and
BrowserHawk.toXML(BrowserInfo, ExtendedBrowserInfo).
java.lang.String toXML(java.util.Properties props)
ExtendedBrowserInfo.toXML() and
BrowserHawk.toXML(BrowserInfo, ExtendedBrowserInfo).
java.lang.Object get(java.lang.String propertyName)
Double d = (Double) info.get("ContainerVersion").