Package org.opencms.jsp.util
Class UAgentInfo
- java.lang.Object
-
- org.opencms.jsp.util.UAgentInfo
-
public class UAgentInfo extends java.lang.Object
The DetectSmartPhone class encapsulates information about a browser's connection to your web site. You can use it to find out whether the browser asking for your site's content is probably running on a mobile device. The methods were written so you can be as granular as you want. For example, enquiring whether it's as specific as an iPod Touch or as general as a smartphone class device. The object's methods return true, or false.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
deviceAndroid
static java.lang.String
deviceArchos
static java.lang.String
deviceBada
static java.lang.String
deviceBB
static java.lang.String
deviceBB10
static java.lang.String
deviceBBBold
static java.lang.String
deviceBBBoldTouch
static java.lang.String
deviceBBCurve
static java.lang.String
deviceBBCurveTouch
static java.lang.String
deviceBBPlaybook
static java.lang.String
deviceBBStorm
static java.lang.String
deviceBBTorch
static java.lang.String
deviceBBTour
static java.lang.String
deviceBrew
static java.lang.String
deviceDanger
static java.lang.String
deviceGoogleTV
static java.lang.String
deviceHiptop
static java.lang.String
deviceIeMob
static java.lang.String
deviceIpad
static java.lang.String
deviceIphone
static java.lang.String
deviceIpod
static java.lang.String
deviceKindle
static java.lang.String
deviceMacPpc
static java.lang.String
deviceMeego
static java.lang.String
deviceMidp
static java.lang.String
deviceNintendo
static java.lang.String
deviceNintendoDs
static java.lang.String
deviceNuvifone
static java.lang.String
devicePalm
static java.lang.String
devicePda
static java.lang.String
devicePlaystation
static java.lang.String
devicePlaystationVita
static java.lang.String
devicePpc
static java.lang.String
deviceS60
static java.lang.String
deviceS70
static java.lang.String
deviceS80
static java.lang.String
deviceS90
static java.lang.String
deviceSailfish
static java.lang.String
deviceSymbian
static java.lang.String
deviceTablet
static java.lang.String
deviceTizen
static java.lang.String
deviceUbuntu
static java.lang.String
deviceWebOS
static java.lang.String
deviceWebOShp
static java.lang.String
deviceWebOStv
static java.lang.String
deviceWii
static java.lang.String
deviceWindows
static java.lang.String
deviceWinMob
static java.lang.String
deviceWinPhone10
static java.lang.String
deviceWinPhone7
static java.lang.String
deviceWinPhone8
static java.lang.String
deviceXbox
static java.lang.String
disUpdate
static java.lang.String
engineBlazer
static java.lang.String
engineFirefox
static java.lang.String
engineNetfront
static java.lang.String
engineOpenWeb
static java.lang.String
engineOpera
static java.lang.String
enginePie
static java.lang.String
engineSilk
static java.lang.String
engineTelecaQ
static java.lang.String
engineUpBrowser
static java.lang.String
engineWebKit
static java.lang.String
engineXiino
boolean
initCompleted
boolean
isAndroid
boolean
isAndroidPhone
boolean
isIphone
boolean
isMobilePhone
boolean
isTierGenericMobile
boolean
isTierIphone
boolean
isTierRichCss
boolean
isTierTablet
boolean
isWebkit
static java.lang.String
linux
static java.lang.String
maemo
static java.lang.String
manuericsson
static java.lang.String
manuHtc
static java.lang.String
manuSamsung1
static java.lang.String
manuSony
static java.lang.String
manuSonyEricsson
static java.lang.String
mini
static java.lang.String
mobi
static java.lang.String
mobile
static java.lang.String
mylocom2
static java.lang.String
qtembedded
static java.lang.String
smartTV1
static java.lang.String
smartTV2
static java.lang.String
svcDocomo
static java.lang.String
svcKddi
static java.lang.String
svcVodafone
static java.lang.String
uplink
static java.lang.String
vndRIM
static java.lang.String
vndwap
static java.lang.String
wml
-
Constructor Summary
Constructors Constructor Description UAgentInfo(java.lang.String userAgent, java.lang.String httpAccept)
Initialize the userAgent and httpAccept variables
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
detectAmazonSilk()
Detects if the current Amazon device is using the Silk Browser.boolean
detectAndroid()
Detects *any* Android OS-based device: phone, tablet, and multi-media player.boolean
detectAndroidPhone()
Detects if the current device is a (small-ish) Android OS-based device used for calling and/or multi-media (like a Samsung Galaxy Player).boolean
detectAndroidTablet()
Detects if the current device is a (self-reported) Android tablet.boolean
detectAndroidWebKit()
Detects if the current device is an Android OS-based device and the browser is based on WebKit.boolean
detectArchos()
Detects if the current device is an Archos media player/Internet tablet.boolean
detectBada()
Detects a device running the Bada OS from Samsung.boolean
detectBlackBerry()
Detects if the current browser is any BlackBerry.boolean
detectBlackBerry10Phone()
Detects if the current browser is a BlackBerry 10 OS phone.boolean
detectBlackBerryHigh()
Detects if the current browser is a BlackBerry device AND has a more capable recent browser.boolean
detectBlackBerryLow()
Detects if the current browser is a BlackBerry device AND has an older, less capable browser.boolean
detectBlackBerryTablet()
Detects if the current browser is on a BlackBerry tablet device.boolean
detectBlackBerryTouch()
Detects if the current browser is a BlackBerry Touch device, such as the Storm, Torch, and Bold Touch.boolean
detectBlackBerryWebKit()
Detects if the current browser is a BlackBerry device AND uses a WebKit-based browser.boolean
detectBrewDevice()
Detects whether the device is a Brew-powered device.boolean
detectDangerHiptop()
Detects the Danger Hiptop device.boolean
detectFirefoxOS()
Detects a mobile device (probably) running the Firefox OS.boolean
detectFirefoxOSPhone()
Detects a phone (probably) running the Firefox OS.boolean
detectFirefoxOSTablet()
Detects a tablet (probably) running the Firefox OS.boolean
detectGameConsole()
Detects if the current device is an Internet-capable game console.boolean
detectGamingHandheld()
Detects if the current device is a handheld gaming device with a touchscreen and modern iPhone-class browser.boolean
detectGarminNuvifone()
Detects if the current browser is a Garmin Nuvifone.boolean
detectGoogleTV()
Detects if the current device is a GoogleTV.boolean
detectIos()
Detects *any* iOS device: iPhone, iPod Touch, iPad.boolean
detectIpad()
Detects if the current device is an iPad tablet.boolean
detectIphone()
Detects if the current device is an iPhone.boolean
detectIphoneOrIpod()
Detects if the current device is an iPhone or iPod Touch.boolean
detectIpod()
Detects if the current device is an iPod Touch.boolean
detectKindle()
Detects if the current device is an Amazon Kindle (eInk devices only).boolean
detectMaemoTablet()
Detects if the current device is on one of the Maemo-based Nokia Internet Tablets.boolean
detectMeego()
Detects a device running the Meego OS.boolean
detectMeegoPhone()
Detects a phone running the Meego OS.boolean
detectMidpCapable()
Detects if the current device supports MIDP, a mobile Java technology.boolean
detectMobileLong()
The longer and more thorough way to detect for a mobile device.boolean
detectMobileQuick()
Detects if the current device is a mobile device.boolean
detectNintendo()
Detects if the current device is a Nintendo game device.boolean
detectOperaMobile()
Detects Opera Mobile or Opera Mini.boolean
detectPalmOS()
Detects if the current browser is on a PalmOS device.boolean
detectPalmWebOS()
Detects if the current browser is on a Palm device running the new WebOS.boolean
detectS60OssBrowser()
Detects if the current browser is the Symbian S60 Open Source Browser.boolean
detectSailfish()
Detects a device running the Sailfish OS.boolean
detectSailfishPhone()
Detects a phone running the Sailfish OS.boolean
detectSmartphone()
Check to see whether the device is any device in the 'smartphone' category.boolean
detectSonyMylo()
Detects if the current browser is a Sony Mylo device.boolean
detectSonyPlaystation()
Detects if the current device is a Sony Playstation.boolean
detectSymbianOS()
Detects if the current device is any Symbian OS-based device, including older S60, Series 70, Series 80, Series 90, and UIQ, or other browsers running on these devices.boolean
detectTierIphone()
The quick way to detect for a tier of devices.boolean
detectTierOtherPhones()
The quick way to detect for a tier of devices.boolean
detectTierRichCss()
The quick way to detect for a tier of devices.boolean
detectTierTablet()
The quick way to detect for a tier of devices.boolean
detectTizen()
Detects a device running the Tizen smartphone OS.boolean
detectTizenTV()
Detects if the current browser is on a Tizen smart TV.boolean
detectUbuntu()
Detects a mobile device running the Ubuntu Mobile OS.boolean
detectUbuntuPhone()
Detects a phone running the Ubuntu Mobile OS.boolean
detectUbuntuTablet()
Detects a tablet running the Ubuntu Mobile OS.boolean
detectWapWml()
Detects whether the device supports WAP or WML.boolean
detectWebkit()
Detects if the current browser is based on WebKit.boolean
detectWebOSTablet()
Detects if the current browser is on an HP tablet running WebOS.boolean
detectWebOSTV()
Detects if the current browser is on a WebOS smart TV.boolean
detectWindowsMobile()
Detects if the current browser is a Windows Mobile device.boolean
detectWindowsPhone()
Detects if the current browser is a Windows Phone 7.x, 8, or 10 deviceboolean
detectWindowsPhone10()
Detects a Windows Phone 10 device (in mobile browsing mode).boolean
detectWindowsPhone7()
Detects a Windows Phone 7 device (in mobile browsing mode).boolean
detectWindowsPhone8()
Detects a Windows Phone 8 device (in mobile browsing mode).boolean
detectXbox()
Detects if the current device is a Microsoft Xbox.java.lang.String
getHttpAccept()
Return the lower case HTTP_ACCEPTboolean
getIsIphone()
Return whether the device is an Iphone or iPod Touchboolean
getIsTierGenericMobile()
Return whether the device is a generic, less-capable mobile device.boolean
getIsTierIphone()
Return whether the device is in the Iphone Tier.boolean
getIsTierRichCss()
Return whether the device is in the 'Rich CSS' tier of mobile devices.boolean
getIsTierTablet()
Return whether the device is in the Tablet Tier.java.lang.String
getUserAgent()
Return the lower case HTTP_USER_AGENTvoid
initDeviceScan()
Initialize Key Stored Values.
-
-
-
Field Detail
-
engineWebKit
public static final java.lang.String engineWebKit
- See Also:
- Constant Field Values
-
deviceIphone
public static final java.lang.String deviceIphone
- See Also:
- Constant Field Values
-
deviceIpod
public static final java.lang.String deviceIpod
- See Also:
- Constant Field Values
-
deviceIpad
public static final java.lang.String deviceIpad
- See Also:
- Constant Field Values
-
deviceMacPpc
public static final java.lang.String deviceMacPpc
- See Also:
- Constant Field Values
-
deviceAndroid
public static final java.lang.String deviceAndroid
- See Also:
- Constant Field Values
-
deviceGoogleTV
public static final java.lang.String deviceGoogleTV
- See Also:
- Constant Field Values
-
deviceWinPhone7
public static final java.lang.String deviceWinPhone7
- See Also:
- Constant Field Values
-
deviceWinPhone8
public static final java.lang.String deviceWinPhone8
- See Also:
- Constant Field Values
-
deviceWinPhone10
public static final java.lang.String deviceWinPhone10
- See Also:
- Constant Field Values
-
deviceWinMob
public static final java.lang.String deviceWinMob
- See Also:
- Constant Field Values
-
deviceWindows
public static final java.lang.String deviceWindows
- See Also:
- Constant Field Values
-
deviceIeMob
public static final java.lang.String deviceIeMob
- See Also:
- Constant Field Values
-
devicePpc
public static final java.lang.String devicePpc
- See Also:
- Constant Field Values
-
enginePie
public static final java.lang.String enginePie
- See Also:
- Constant Field Values
-
deviceBB
public static final java.lang.String deviceBB
- See Also:
- Constant Field Values
-
deviceBB10
public static final java.lang.String deviceBB10
- See Also:
- Constant Field Values
-
vndRIM
public static final java.lang.String vndRIM
- See Also:
- Constant Field Values
-
deviceBBStorm
public static final java.lang.String deviceBBStorm
- See Also:
- Constant Field Values
-
deviceBBBold
public static final java.lang.String deviceBBBold
- See Also:
- Constant Field Values
-
deviceBBBoldTouch
public static final java.lang.String deviceBBBoldTouch
- See Also:
- Constant Field Values
-
deviceBBTour
public static final java.lang.String deviceBBTour
- See Also:
- Constant Field Values
-
deviceBBCurve
public static final java.lang.String deviceBBCurve
- See Also:
- Constant Field Values
-
deviceBBCurveTouch
public static final java.lang.String deviceBBCurveTouch
- See Also:
- Constant Field Values
-
deviceBBTorch
public static final java.lang.String deviceBBTorch
- See Also:
- Constant Field Values
-
deviceBBPlaybook
public static final java.lang.String deviceBBPlaybook
- See Also:
- Constant Field Values
-
deviceSymbian
public static final java.lang.String deviceSymbian
- See Also:
- Constant Field Values
-
deviceS60
public static final java.lang.String deviceS60
- See Also:
- Constant Field Values
-
deviceS70
public static final java.lang.String deviceS70
- See Also:
- Constant Field Values
-
deviceS80
public static final java.lang.String deviceS80
- See Also:
- Constant Field Values
-
deviceS90
public static final java.lang.String deviceS90
- See Also:
- Constant Field Values
-
devicePalm
public static final java.lang.String devicePalm
- See Also:
- Constant Field Values
-
deviceWebOS
public static final java.lang.String deviceWebOS
- See Also:
- Constant Field Values
-
deviceWebOStv
public static final java.lang.String deviceWebOStv
- See Also:
- Constant Field Values
-
deviceWebOShp
public static final java.lang.String deviceWebOShp
- See Also:
- Constant Field Values
-
deviceNuvifone
public static final java.lang.String deviceNuvifone
- See Also:
- Constant Field Values
-
deviceBada
public static final java.lang.String deviceBada
- See Also:
- Constant Field Values
-
deviceTizen
public static final java.lang.String deviceTizen
- See Also:
- Constant Field Values
-
deviceMeego
public static final java.lang.String deviceMeego
- See Also:
- Constant Field Values
-
deviceSailfish
public static final java.lang.String deviceSailfish
- See Also:
- Constant Field Values
-
deviceUbuntu
public static final java.lang.String deviceUbuntu
- See Also:
- Constant Field Values
-
deviceKindle
public static final java.lang.String deviceKindle
- See Also:
- Constant Field Values
-
engineSilk
public static final java.lang.String engineSilk
- See Also:
- Constant Field Values
-
engineBlazer
public static final java.lang.String engineBlazer
- See Also:
- Constant Field Values
-
engineXiino
public static final java.lang.String engineXiino
- See Also:
- Constant Field Values
-
vndwap
public static final java.lang.String vndwap
- See Also:
- Constant Field Values
-
wml
public static final java.lang.String wml
- See Also:
- Constant Field Values
-
deviceTablet
public static final java.lang.String deviceTablet
- See Also:
- Constant Field Values
-
deviceBrew
public static final java.lang.String deviceBrew
- See Also:
- Constant Field Values
-
deviceDanger
public static final java.lang.String deviceDanger
- See Also:
- Constant Field Values
-
deviceHiptop
public static final java.lang.String deviceHiptop
- See Also:
- Constant Field Values
-
devicePlaystation
public static final java.lang.String devicePlaystation
- See Also:
- Constant Field Values
-
devicePlaystationVita
public static final java.lang.String devicePlaystationVita
- See Also:
- Constant Field Values
-
deviceNintendoDs
public static final java.lang.String deviceNintendoDs
- See Also:
- Constant Field Values
-
deviceNintendo
public static final java.lang.String deviceNintendo
- See Also:
- Constant Field Values
-
deviceWii
public static final java.lang.String deviceWii
- See Also:
- Constant Field Values
-
deviceXbox
public static final java.lang.String deviceXbox
- See Also:
- Constant Field Values
-
deviceArchos
public static final java.lang.String deviceArchos
- See Also:
- Constant Field Values
-
engineFirefox
public static final java.lang.String engineFirefox
- See Also:
- Constant Field Values
-
engineOpera
public static final java.lang.String engineOpera
- See Also:
- Constant Field Values
-
engineNetfront
public static final java.lang.String engineNetfront
- See Also:
- Constant Field Values
-
engineUpBrowser
public static final java.lang.String engineUpBrowser
- See Also:
- Constant Field Values
-
engineOpenWeb
public static final java.lang.String engineOpenWeb
- See Also:
- Constant Field Values
-
deviceMidp
public static final java.lang.String deviceMidp
- See Also:
- Constant Field Values
-
uplink
public static final java.lang.String uplink
- See Also:
- Constant Field Values
-
engineTelecaQ
public static final java.lang.String engineTelecaQ
- See Also:
- Constant Field Values
-
devicePda
public static final java.lang.String devicePda
- See Also:
- Constant Field Values
-
mini
public static final java.lang.String mini
- See Also:
- Constant Field Values
-
mobile
public static final java.lang.String mobile
- See Also:
- Constant Field Values
-
mobi
public static final java.lang.String mobi
- See Also:
- Constant Field Values
-
smartTV1
public static final java.lang.String smartTV1
- See Also:
- Constant Field Values
-
smartTV2
public static final java.lang.String smartTV2
- See Also:
- Constant Field Values
-
maemo
public static final java.lang.String maemo
- See Also:
- Constant Field Values
-
linux
public static final java.lang.String linux
- See Also:
- Constant Field Values
-
qtembedded
public static final java.lang.String qtembedded
- See Also:
- Constant Field Values
-
mylocom2
public static final java.lang.String mylocom2
- See Also:
- Constant Field Values
-
manuSonyEricsson
public static final java.lang.String manuSonyEricsson
- See Also:
- Constant Field Values
-
manuericsson
public static final java.lang.String manuericsson
- See Also:
- Constant Field Values
-
manuSamsung1
public static final java.lang.String manuSamsung1
- See Also:
- Constant Field Values
-
manuSony
public static final java.lang.String manuSony
- See Also:
- Constant Field Values
-
manuHtc
public static final java.lang.String manuHtc
- See Also:
- Constant Field Values
-
svcDocomo
public static final java.lang.String svcDocomo
- See Also:
- Constant Field Values
-
svcKddi
public static final java.lang.String svcKddi
- See Also:
- Constant Field Values
-
svcVodafone
public static final java.lang.String svcVodafone
- See Also:
- Constant Field Values
-
disUpdate
public static final java.lang.String disUpdate
- See Also:
- Constant Field Values
-
initCompleted
public boolean initCompleted
-
isWebkit
public boolean isWebkit
-
isMobilePhone
public boolean isMobilePhone
-
isIphone
public boolean isIphone
-
isAndroid
public boolean isAndroid
-
isAndroidPhone
public boolean isAndroidPhone
-
isTierTablet
public boolean isTierTablet
-
isTierIphone
public boolean isTierIphone
-
isTierRichCss
public boolean isTierRichCss
-
isTierGenericMobile
public boolean isTierGenericMobile
-
-
Constructor Detail
-
UAgentInfo
public UAgentInfo(java.lang.String userAgent, java.lang.String httpAccept)
Initialize the userAgent and httpAccept variables- Parameters:
userAgent
- the User-Agent headerhttpAccept
- the Accept header
-
-
Method Detail
-
detectAmazonSilk
public boolean detectAmazonSilk()
Detects if the current Amazon device is using the Silk Browser. Note: Typically used by the the Kindle Fire.- Returns:
- detection of an Amazon Kindle Fire in Silk mode.
-
detectAndroid
public boolean detectAndroid()
Detects *any* Android OS-based device: phone, tablet, and multi-media player. Also detects Google TV.- Returns:
- detection of an Android device
-
detectAndroidPhone
public boolean detectAndroidPhone()
Detects if the current device is a (small-ish) Android OS-based device used for calling and/or multi-media (like a Samsung Galaxy Player). Google says these devices will have 'Android' AND 'mobile' in user agent. Ignores tablets (Honeycomb and later).- Returns:
- detection of an Android phone
-
detectAndroidTablet
public boolean detectAndroidTablet()
Detects if the current device is a (self-reported) Android tablet. Google says these devices will have 'Android' and NOT 'mobile' in their user agent.- Returns:
- detection of an Android tablet
-
detectAndroidWebKit
public boolean detectAndroidWebKit()
Detects if the current device is an Android OS-based device and the browser is based on WebKit.- Returns:
- detection of an Android WebKit browser
-
detectArchos
public boolean detectArchos()
Detects if the current device is an Archos media player/Internet tablet.- Returns:
- detection of an Archos media player
-
detectBada
public boolean detectBada()
Detects a device running the Bada OS from Samsung.- Returns:
- detection of a Bada device
-
detectBlackBerry
public boolean detectBlackBerry()
Detects if the current browser is any BlackBerry. Includes BB10 OS, but excludes the PlayBook.- Returns:
- detection of Blackberry
-
detectBlackBerry10Phone
public boolean detectBlackBerry10Phone()
Detects if the current browser is a BlackBerry 10 OS phone. Excludes tablets.- Returns:
- detection of a Blackberry 10 device
-
detectBlackBerryHigh
public boolean detectBlackBerryHigh()
Detects if the current browser is a BlackBerry device AND has a more capable recent browser. Excludes the Playbook. Examples, Storm, Bold, Tour, Curve2 Excludes the new BlackBerry OS 6 and 7 browser!!- Returns:
- detection of a Blackberry device with a better browser
-
detectBlackBerryLow
public boolean detectBlackBerryLow()
Detects if the current browser is a BlackBerry device AND has an older, less capable browser. Examples: Pearl, 8800, Curve1- Returns:
- detection of a Blackberry device with a poorer browser
-
detectBlackBerryTablet
public boolean detectBlackBerryTablet()
Detects if the current browser is on a BlackBerry tablet device. Example: PlayBook- Returns:
- detection of a Blackberry Tablet
-
detectBlackBerryTouch
public boolean detectBlackBerryTouch()
Detects if the current browser is a BlackBerry Touch device, such as the Storm, Torch, and Bold Touch. Excludes the Playbook.- Returns:
- detection of a Blackberry touchscreen device
-
detectBlackBerryWebKit
public boolean detectBlackBerryWebKit()
Detects if the current browser is a BlackBerry device AND uses a WebKit-based browser. These are signatures for the new BlackBerry OS 6. Examples: Torch. Includes the Playbook.- Returns:
- detection of a Blackberry device with WebKit browser
-
detectBrewDevice
public boolean detectBrewDevice()
Detects whether the device is a Brew-powered device.- Returns:
- detection of a Brew device
-
detectDangerHiptop
public boolean detectDangerHiptop()
Detects the Danger Hiptop device.- Returns:
- detection of a Danger Hiptop
-
detectFirefoxOS
public boolean detectFirefoxOS()
Detects a mobile device (probably) running the Firefox OS.- Returns:
- detection of a Firefox OS mobile device
-
detectFirefoxOSPhone
public boolean detectFirefoxOSPhone()
Detects a phone (probably) running the Firefox OS.- Returns:
- detection of a Firefox OS phone
-
detectFirefoxOSTablet
public boolean detectFirefoxOSTablet()
Detects a tablet (probably) running the Firefox OS.- Returns:
- detection of a Firefox OS tablet
-
detectGameConsole
public boolean detectGameConsole()
Detects if the current device is an Internet-capable game console. Includes many handheld consoles.- Returns:
- detection of any Game Console
-
detectGamingHandheld
public boolean detectGamingHandheld()
Detects if the current device is a handheld gaming device with a touchscreen and modern iPhone-class browser. Includes the Playstation Vita.- Returns:
- detection of a handheld gaming device
-
detectGarminNuvifone
public boolean detectGarminNuvifone()
Detects if the current browser is a Garmin Nuvifone.- Returns:
- detection of a Garmin Nuvifone
-
detectGoogleTV
public boolean detectGoogleTV()
Detects if the current device is a GoogleTV.- Returns:
- detection of GoogleTV
-
detectIos
public boolean detectIos()
Detects *any* iOS device: iPhone, iPod Touch, iPad.- Returns:
- detection of an Apple iOS device
-
detectIpad
public boolean detectIpad()
Detects if the current device is an iPad tablet.- Returns:
- detection of an iPad
-
detectIphone
public boolean detectIphone()
Detects if the current device is an iPhone.- Returns:
- detection of an iPhone
-
detectIphoneOrIpod
public boolean detectIphoneOrIpod()
Detects if the current device is an iPhone or iPod Touch.- Returns:
- detection of an iPhone or iPod Touch
-
detectIpod
public boolean detectIpod()
Detects if the current device is an iPod Touch.- Returns:
- detection of an iPod Touch
-
detectKindle
public boolean detectKindle()
Detects if the current device is an Amazon Kindle (eInk devices only). Note: For the Kindle Fire, use the normal Android methods.- Returns:
- detection of a Kindle
-
detectMaemoTablet
public boolean detectMaemoTablet()
Detects if the current device is on one of the Maemo-based Nokia Internet Tablets.- Returns:
- detection of a Maemo OS tablet
-
detectMeego
public boolean detectMeego()
Detects a device running the Meego OS.- Returns:
- detection of a Meego device
-
detectMeegoPhone
public boolean detectMeegoPhone()
Detects a phone running the Meego OS.- Returns:
- detection of a Meego phone
-
detectMidpCapable
public boolean detectMidpCapable()
Detects if the current device supports MIDP, a mobile Java technology.- Returns:
- detection of a MIDP mobile Java-capable device
-
detectMobileLong
public boolean detectMobileLong()
The longer and more thorough way to detect for a mobile device. Will probably detect most feature phones, smartphone-class devices, Internet Tablets, Internet-enabled game consoles, etc. This ought to catch a lot of the more obscure and older devices, also -- but no promises on thoroughness!- Returns:
- detection of any mobile device using the more thorough method
-
detectMobileQuick
public boolean detectMobileQuick()
Detects if the current device is a mobile device. This method catches most of the popular modern devices. Excludes Apple iPads and other modern tablets.- Returns:
- detection of any mobile device using the quicker method
-
detectNintendo
public boolean detectNintendo()
Detects if the current device is a Nintendo game device.- Returns:
- detection of Nintendo
-
detectOperaMobile
public boolean detectOperaMobile()
Detects Opera Mobile or Opera Mini.- Returns:
- detection of an Opera browser for a mobile device
-
detectPalmOS
public boolean detectPalmOS()
Detects if the current browser is on a PalmOS device.- Returns:
- detection of a PalmOS device
-
detectPalmWebOS
public boolean detectPalmWebOS()
Detects if the current browser is on a Palm device running the new WebOS.- Returns:
- detection of a Palm WebOS device
-
detectS60OssBrowser
public boolean detectS60OssBrowser()
Detects if the current browser is the Symbian S60 Open Source Browser.- Returns:
- detection of Symbian S60 Browser
-
detectSailfish
public boolean detectSailfish()
Detects a device running the Sailfish OS.- Returns:
- detection of a Sailfish device
-
detectSailfishPhone
public boolean detectSailfishPhone()
Detects a phone running the Sailfish OS.- Returns:
- detection of a Sailfish phone
-
detectSmartphone
public boolean detectSmartphone()
Check to see whether the device is any device in the 'smartphone' category.- Returns:
- detection of a general smartphone device
-
detectSonyMylo
public boolean detectSonyMylo()
Detects if the current browser is a Sony Mylo device.- Returns:
- detection of a Sony Mylo device
-
detectSonyPlaystation
public boolean detectSonyPlaystation()
Detects if the current device is a Sony Playstation.- Returns:
- detection of Sony Playstation
-
detectSymbianOS
public boolean detectSymbianOS()
Detects if the current device is any Symbian OS-based device, including older S60, Series 70, Series 80, Series 90, and UIQ, or other browsers running on these devices.- Returns:
- detection of SymbianOS
-
detectTierIphone
public boolean detectTierIphone()
The quick way to detect for a tier of devices. This method detects for devices which can display iPhone-optimized web content. Includes iPhone, iPod Touch, Android, Windows Phone 7 and 8, BB10, WebOS, Playstation Vita, etc.- Returns:
- detection of any device in the iPhone/Android/Windows Phone/BlackBerry/WebOS Tier
-
detectTierOtherPhones
public boolean detectTierOtherPhones()
The quick way to detect for a tier of devices. This method detects for all other types of phones, but excludes the iPhone and RichCSS Tier devices.- Returns:
- detection of a mobile device in the less capable tier
-
detectTierRichCss
public boolean detectTierRichCss()
The quick way to detect for a tier of devices. This method detects for devices which are likely to be capable of viewing CSS content optimized for the iPhone, but may not necessarily support JavaScript. Excludes all iPhone Tier devices.- Returns:
- detection of any device in the 'Rich CSS' Tier
-
detectTierTablet
public boolean detectTierTablet()
The quick way to detect for a tier of devices. This method detects for the new generation of HTML 5 capable, larger screen tablets. Includes iPad, Android (e.g., Xoom), BB Playbook, WebOS, etc.- Returns:
- detection of any device in the Tablet Tier
-
detectTizen
public boolean detectTizen()
Detects a device running the Tizen smartphone OS.- Returns:
- detection of a Tizen device
-
detectTizenTV
public boolean detectTizenTV()
Detects if the current browser is on a Tizen smart TV.- Returns:
- detection of a Tizen smart TV
-
detectUbuntu
public boolean detectUbuntu()
Detects a mobile device running the Ubuntu Mobile OS.- Returns:
- detection of an Ubuntu Mobile OS mobile device
-
detectUbuntuPhone
public boolean detectUbuntuPhone()
Detects a phone running the Ubuntu Mobile OS.- Returns:
- detection of an Ubuntu Mobile OS phone
-
detectUbuntuTablet
public boolean detectUbuntuTablet()
Detects a tablet running the Ubuntu Mobile OS.- Returns:
- detection of an Ubuntu Mobile OS tablet
-
detectWapWml
public boolean detectWapWml()
Detects whether the device supports WAP or WML.- Returns:
- detection of a WAP- or WML-capable device
-
detectWebkit
public boolean detectWebkit()
Detects if the current browser is based on WebKit.- Returns:
- detection of a WebKit browser
-
detectWebOSTablet
public boolean detectWebOSTablet()
Detects if the current browser is on an HP tablet running WebOS.- Returns:
- detection of an HP WebOS tablet
-
detectWebOSTV
public boolean detectWebOSTV()
Detects if the current browser is on a WebOS smart TV.- Returns:
- detection of a WebOS smart TV
-
detectWindowsMobile
public boolean detectWindowsMobile()
Detects if the current browser is a Windows Mobile device. Excludes Windows Phone 7.x and 8 devices. Focuses on Windows Mobile 6.xx and earlier.- Returns:
- detection of Windows Mobile
-
detectWindowsPhone
public boolean detectWindowsPhone()
Detects if the current browser is a Windows Phone 7.x, 8, or 10 device- Returns:
- detection of Windows Phone 7.x OR 8
-
detectWindowsPhone10
public boolean detectWindowsPhone10()
Detects a Windows Phone 10 device (in mobile browsing mode).- Returns:
- detection of Windows Phone 10
-
detectWindowsPhone7
public boolean detectWindowsPhone7()
Detects a Windows Phone 7 device (in mobile browsing mode).- Returns:
- detection of Windows Phone 7
-
detectWindowsPhone8
public boolean detectWindowsPhone8()
Detects a Windows Phone 8 device (in mobile browsing mode).- Returns:
- detection of Windows Phone 8
-
detectXbox
public boolean detectXbox()
Detects if the current device is a Microsoft Xbox.- Returns:
- detection of Xbox
-
getHttpAccept
public java.lang.String getHttpAccept()
Return the lower case HTTP_ACCEPT- Returns:
- httpAccept
-
getIsIphone
public boolean getIsIphone()
Return whether the device is an Iphone or iPod Touch- Returns:
- isIphone
-
getIsTierGenericMobile
public boolean getIsTierGenericMobile()
Return whether the device is a generic, less-capable mobile device.- Returns:
- isTierGenericMobile
-
getIsTierIphone
public boolean getIsTierIphone()
Return whether the device is in the Iphone Tier.- Returns:
- isTierIphone
-
getIsTierRichCss
public boolean getIsTierRichCss()
Return whether the device is in the 'Rich CSS' tier of mobile devices.- Returns:
- isTierRichCss
-
getIsTierTablet
public boolean getIsTierTablet()
Return whether the device is in the Tablet Tier.- Returns:
- isTierTablet
-
getUserAgent
public java.lang.String getUserAgent()
Return the lower case HTTP_USER_AGENT- Returns:
- userAgent
-
initDeviceScan
public void initDeviceScan()
Initialize Key Stored Values.
-
-