public class BrowserIdentification extends Object
The identification of the browser is stored in the "BrowserIdentification.ini" file under the "[Base]" section.
Platform and Browser UserAgent string -------------------------------- ----------------------------------------------- Windows NT 4.0 w/IE 4.0 Mozilla/4.0 (compatible; MSIE 4.0; Windows NT) Windows NT 4.0 w/IE 3.02 Mozilla/2.0 (compatible; MSIE 3.02; Windows NT) Windows 95 w/IE 4.0 Mozilla/4.0 (compatible; MSIE 4.0; Windows 95) Windows 95 w/IE 3.02 Mozilla/2.0 (compatible; MSIE 3.02; Windows 95) Windows NT 3.51 w/IE 4.0 Mozilla/4.0 (compatible; MSIE 4.0; Windows 3.1) Windows 3.1 w/IE 4.0 Mozilla/4.0 (compatible; MSIE 4.0; Windows 3.1) Windows NT 4.0 w/Navigator 4.04 Mozilla/4.04 [en] (WinNT; I) Windows NT 4.0 w/Navigator 3.04 Mozilla/3.04 (WinNT; I) Windows NT 3.51 w/Navigator 4.04 Mozilla/4.04 [en] (WinNT; I) Windows NT 3.51 w/Navigator 3.04 Mozilla/3.04 (WinNT; I) Windows 95 w/Navigator 4.03 Mozilla/4.03 [en] (Win95; I) Windows 95 w/Navigator 3.03 Mozilla/3.03 (Win95; I) Solaris 2.6 w/Navigator 4.02 Mozilla/4.02 [en] (X11; l; SunOS 5.6 sun4u)Specify a wild card string between commas. All the specified criteras must match. Use the wild card "?" to replace a single character or "*" to replace any count of characters.
Each entry in this file should consist of two items:
browser.id = string1[,string2...] browser.section = SectionNameIf no match is found, the file name specified by the entry "Default" is used.
The [section] or "[Default]" should contain the following entries (when an entry is not found, it is assumed to contain the string "0" (zero, meaning no support).
Constructor and Description |
---|
BrowserIdentification() |
Modifier and Type | Method and Description |
---|---|
static BrowserCapabilities |
identifyBrowser(HttpSession session)
Identifies the browser from the user agent string.
|
static void |
loadSettings()
The Web Server calls this routine to initialize or reinitialize
the "BrowserIdentification.ini" file.
|
public static void loadSettings() throws IOException
IOException
- for IO errors.public static BrowserCapabilities identifyBrowser(HttpSession session)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.