Class BrowserDetector

    • Constructor Detail

      • BrowserDetector

        public BrowserDetector​(String userAgentString)
        Constructor used to initialize this class.
        Parameters:
        userAgentString - A String with the user agent field.
      • BrowserDetector

        public BrowserDetector​(RunData data)
        Constructor used to initialize this class.
        Parameters:
        data - The Turbine RunData object.
    • Method Detail

      • getBrowserName

        public String getBrowserName()
        The browser name specified in the user agent string.
        Returns:
        A String with the browser name.
      • getBrowserPlatform

        public String getBrowserPlatform()
        The browser platform specified in the user agent string.
        Returns:
        A String with the browser platform.
      • getBrowserVersion

        public float getBrowserVersion()
        The browser version specified in the user agent string.
        Returns:
        A String with the browser version.
      • getUserAgentString

        public String getUserAgentString()
        The user agent string for this class.
        Returns:
        A String with the user agent.
      • getUserAgent

        public nl.basjes.parse.useragent.UserAgent getUserAgent()
        The user agent for this class.
        Returns:
        A user agent.