Class UserAgentClassifier
java.lang.Object
nl.basjes.parse.useragent.classify.UserAgentClassifier
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceClass
getDeviceClass
(UserAgent userAgent) static boolean
isDeliberateMisuse
(UserAgent userAgent) static boolean
static boolean
static boolean
isNormalConsumerDevice
(UserAgent userAgent)
-
Method Details
-
getDeviceClass
-
isNormalConsumerDevice
- 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
- 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
- Parameters:
userAgent
- The instance that needs to be classified.- Returns:
- If this is probably a human using the device.
-
isDeliberateMisuse
- Parameters:
userAgent
- The instance that needs to be classified.- Returns:
- Do we see this as deliberate misuse?
-