Class UserAgentUtils


  • public class UserAgentUtils
    extends Object
    Provides a user agent utilities.
    • Constructor Detail

      • UserAgentUtils

        public UserAgentUtils()
    • Method Detail

      • getOS

        public static String[] getOS​(String userAgent)
        Return the OS information about the user agent.
        Parameters:
        userAgent - the user agent string
        Returns:
        the OS information about the user agent
      • getBrowser

        public static String[] getBrowser​(String userAgent)
        Return the browser information about the user agent.
        Parameters:
        userAgent - the user agent string
        Returns:
        the browser information about the user agent