Class UserAgentClassifier

java.lang.Object
nl.basjes.parse.useragent.classify.UserAgentClassifier

public final class UserAgentClassifier extends Object
  • Method Details

    • getDeviceClass

      public static DeviceClass getDeviceClass(UserAgent userAgent)
    • isNormalConsumerDevice

      public static boolean isNormalConsumerDevice(UserAgent userAgent)
      Parameters:
      userAgent - The instance that needs to be classified.
      Returns:
      Is this a 'normal' consumer device that can simply be bought/downloaded and used as intended.
    • isMobile

      public static boolean isMobile(UserAgent userAgent)
      Parameters:
      userAgent - The instance that needs to be classified.
      Returns:
      Is this a 'mobile' device. (includes robots that want to be treated as mobile)
    • isHuman

      public static boolean isHuman(UserAgent userAgent)
      Parameters:
      userAgent - The instance that needs to be classified.
      Returns:
      If this is probably a human using the device.
    • isDeliberateMisuse

      public static boolean isDeliberateMisuse(UserAgent userAgent)
      Parameters:
      userAgent - The instance that needs to be classified.
      Returns:
      Do we see this as deliberate misuse?