Class BrowserInfo

java.lang.Object
io.jans.casa.core.pojo.BrowserInfo

public class BrowserInfo extends Object
A POJO holding basic information about a user's browser.
  • Constructor Details

    • BrowserInfo

      public BrowserInfo()
  • Method Details

    • getName

      public String getName()
      Returns the name of web browser (e.g. Internet Explorer).
      Returns:
      A String
    • getMainVersion

      public int getMainVersion()
      Returns the main (major) version (e.g. 11).
      Returns:
      An int value
    • isMobile

      public boolean isMobile()
      Whether this is a mobile browser or not.
      Returns:
      A boolean value
    • setName

      public void setName(String name)
      Sets the name of the browser in this BrowserInfo instance.
      Parameters:
      name - A string value
    • setMainVersion

      public void setMainVersion(int mainVersion)
      Sets the (main) version of the browser in this BrowserInfo instance.
      Parameters:
      mainVersion - An int value
    • setMobile

      public void setMobile(boolean mobile)
      Sets whether the browser is mobile or not in this BrowserInfo instance.
      Parameters:
      mobile - A boolean value