public class BrowserDetector extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MACINTOSH
Running on Mac OS X
|
static String |
MOZILLA
Mozilla, Firefox and friends
|
static String |
MSIE
Internet Explorer
|
static String |
OPERA
Opera
|
static String |
UNIX
Running on Unix
|
static String |
WINDOWS
Running on Windows
|
Constructor and Description |
---|
BrowserDetector(RunData data)
Constructor used to initialize this class.
|
BrowserDetector(String userAgentString)
Constructor used to initialize this class.
|
Modifier and Type | Method and Description |
---|---|
String |
getBrowserName()
The browser name specified in the user agent string.
|
String |
getBrowserPlatform()
The browser platform specified in the user agent string.
|
float |
getBrowserVersion()
The browser version specified in the user agent string.
|
String |
getUserAgentString()
The user agent string for this class.
|
boolean |
isCssOK()
Whether or not CSS works in this browser.
|
boolean |
isFileUploadOK()
Whether or not file upload works in this browser.
|
boolean |
isJavascriptOK()
Whether or not Javascript works in this browser.
|
public static final String MSIE
public static final String OPERA
public static final String MOZILLA
public static final String WINDOWS
public static final String UNIX
public static final String MACINTOSH
public BrowserDetector(String userAgentString)
userAgentString
- A String with the user agent field.public BrowserDetector(RunData data)
data
- The Turbine RunData object.public boolean isCssOK()
public boolean isFileUploadOK()
public boolean isJavascriptOK()
public String getBrowserName()
public String getBrowserPlatform()
public float getBrowserVersion()
public String getUserAgentString()
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.