public class BrowserDetector extends Object
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.
|
nl.basjes.parse.useragent.UserAgent |
getUserAgent()
The user agent for this class.
|
String |
getUserAgentString()
The user agent string for this class.
|
public BrowserDetector(String userAgentString)
userAgentString
- A String with the user agent field.public BrowserDetector(RunData data)
data
- The Turbine RunData object.public String getBrowserName()
public String getBrowserPlatform()
public float getBrowserVersion()
public String getUserAgentString()
public nl.basjes.parse.useragent.UserAgent getUserAgent()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.