Package com.avoka.core.util
Class UserAgentInfo
java.lang.Object
com.avoka.core.util.UserAgentInfo
Create a User Agent Information reporting class.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The device type "Desktop"static final String
The device type "Digital Media Rec."static final String
The device type "Game Console"static final String
The device type "Phone"static final String
The device type "Tablet"static final String[]
The list of device typesstatic final String
The "Unknown" browser or OS identifier -
Constructor Summary
ConstructorDescriptionUserAgentInfo
(String userAgentValue) Create a User Agent Information reporting class from the given HTTP user-agent header value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
Checks if is file upload supported.boolean
boolean
boolean
boolean
boolean
toString()
Return the string representation of this object.
-
Field Details
-
UNKNOWN
The "Unknown" browser or OS identifier- See Also:
-
DEVICE_TYPE_DESKTOP
The device type "Desktop"- See Also:
-
DEVICE_TYPE_DIGITAL_MEDIA_RECEIVER
The device type "Digital Media Rec."- See Also:
-
DEVICE_TYPE_GAME_CONSOLE
The device type "Game Console"- See Also:
-
DEVICE_TYPE_PHONE
The device type "Phone"- See Also:
-
DEVICE_TYPE_TABLET
The device type "Tablet"- See Also:
-
DEVICE_TYPES
The list of device types
-
-
Constructor Details
-
UserAgentInfo
Create a User Agent Information reporting class from the given HTTP user-agent header value.- Parameters:
userAgentValue
- the HTTP user-agent header value.
-
-
Method Details
-
isInternetExplorer6
public boolean isInternetExplorer6()- Returns:
- true if the browser type is Internet Explorer 6
-
isInternetExplorer7
public boolean isInternetExplorer7()- Returns:
- true if the browser type is Internet Explorer 7
-
isAppleiOS
public boolean isAppleiOS()- Returns:
- true if Apple iOS type device
-
getBrowserType
- Returns:
- the browserType
-
getBrowserVersion
- Returns:
- the browserVersion
-
getDeviceType
- Returns:
- the deviceType
-
getOsType
- Returns:
- the osType
-
getOsVersion
- Returns:
- the osVersion
-
isWindows8MetroMode
public boolean isWindows8MetroMode()- Returns:
- true if the browser is running in Windows 8 Metro UI mode
-
isWindowsRTOS
public boolean isWindowsRTOS()- Returns:
- true if the browser is running in Windows 8 RT OS
-
isAndroidOS
public boolean isAndroidOS()- Returns:
- true if the browser is running in Android OS
-
isXFASupportedOS
public boolean isXFASupportedOS()- Returns:
- true if XFA Reader supported on OS
-
isFileUploadSupported
public boolean isFileUploadSupported()Checks if is file upload supported.- Returns:
- true, if is file upload supported
-
toString
Return the string representation of this object.
-