|
RichFaces Showcase 4.2.1.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.demo.ui.UAgentInfo
public class UAgentInfo
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.
| Constructor Summary | |
|---|---|
UAgentInfo(String userAgent,
String httpAccept)
Initialize the userAgent and httpAccept variables |
|
| Method Summary | |
|---|---|
boolean |
detectAndroid()
Detects if the current device is an Android OS-based device. |
boolean |
DetectAndroidTablet()
Detects if the current device is an 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 |
detectBlackBerry()
Detects if the current browser is a BlackBerry of some sort. |
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 or Torch |
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 |
detectGameConsole()
Detects if the current device is an Internet-capable game console. |
boolean |
detectGarminNuvifone()
Detects if the current browser is a Garmin Nuvifone. |
boolean |
DetectGoogleTV()
Detects if the current device is a GoogleTV. |
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. |
boolean |
detectMaemoTablet()
Detects if the current device is on one of the Maemo-based Nokia Internet Tablets. |
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()
The quick way to detect for 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 S60 Open Source Browser. |
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 |
detectWapWml()
Detects whether the device supports WAP or WML. |
boolean |
detectWebkit()
Detects if the current browser is based on WebKit. |
boolean |
detectWindowsMobile()
Detects if the current browser is a Windows Mobile device. |
boolean |
DetectWindowsPhone7()
Detects if the current browser is a Windows Phone 7 device. |
boolean |
detectXbox()
Detects if the current device is a Microsoft Xbox. |
String |
getHttpAccept()
Return the lower case HTTP_ACCEPT |
boolean |
getIsIphone()
Return whether the device is an Iphone or iPod Touch |
boolean |
getIsTierGenericMobile()
Return whether the device is an Iphone or iPod Touch |
boolean |
getIsTierIphone()
Return whether the device is in the Iphone Tier. |
boolean |
getIsTierRichCss()
Return whether the device is an Iphone or iPod Touch |
boolean |
getIsTierTablet()
Return whether the device is in the Tablet Tier. |
String |
getUserAgent()
Return the lower case HTTP_USER_AGENT |
void |
initDeviceScan()
Initialize Key Stored Values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean isIphone
public boolean isTierTablet
public boolean isTierIphone
public boolean isTierRichCss
public boolean isTierGenericMobile
public static final String engineWebKit
public static final String deviceIphone
public static final String deviceIpod
public static final String deviceIpad
public static final String deviceMacPpc
public static final String deviceAndroid
public static final String deviceGoogleTV
public static final String deviceXoom
public static final String deviceSymbian
public static final String deviceS60
public static final String deviceS70
public static final String deviceS80
public static final String deviceS90
public static final String deviceWinPhone7
public static final String deviceWinMob
public static final String deviceWindows
public static final String deviceIeMob
public static final String devicePpc
public static final String enginePie
public static final String deviceBB
public static final String vndRIM
public static final String deviceBBStorm
public static final String deviceBBBold
public static final String deviceBBTour
public static final String deviceBBCurve
public static final String deviceBBTorch
public static final String deviceBBPlaybook
public static final String devicePalm
public static final String deviceWebOS
public static final String engineBlazer
public static final String engineXiino
public static final String deviceKindle
public static final String deviceNuvifone
public static final String vndwap
public static final String wml
public static final String deviceBrew
public static final String deviceDanger
public static final String deviceHiptop
public static final String devicePlaystation
public static final String deviceNintendoDs
public static final String deviceNintendo
public static final String deviceWii
public static final String deviceXbox
public static final String deviceArchos
public static final String engineOpera
public static final String engineNetfront
public static final String engineUpBrowser
public static final String engineOpenWeb
public static final String deviceMidp
public static final String uplink
public static final String engineTelecaQ
public static final String devicePda
public static final String mini
public static final String mobile
public static final String mobi
public static final String maemo
public static final String maemoTablet
public static final String linux
public static final String qtembedded
public static final String mylocom2
public static final String manuSonyEricsson
public static final String manuericsson
public static final String manuSamsung1
public static final String manuSony
public static final String manuHtc
public static final String svcDocomo
public static final String svcKddi
public static final String svcVodafone
public static final String disUpdate
| Constructor Detail |
|---|
public UAgentInfo(String userAgent,
String httpAccept)
userAgent - the User-Agent headerhttpAccept - the Accept header| Method Detail |
|---|
public String getUserAgent()
public String getHttpAccept()
public boolean getIsIphone()
public boolean getIsTierTablet()
public boolean getIsTierIphone()
public boolean getIsTierRichCss()
public boolean getIsTierGenericMobile()
public void initDeviceScan()
public boolean detectIphone()
public boolean detectIpod()
public boolean detectIpad()
public boolean detectIphoneOrIpod()
public boolean detectAndroid()
public boolean DetectAndroidTablet()
public boolean detectAndroidWebKit()
public boolean DetectGoogleTV()
public boolean detectWebkit()
public boolean detectS60OssBrowser()
public boolean detectSymbianOS()
public boolean DetectWindowsPhone7()
public boolean detectWindowsMobile()
public boolean detectBlackBerry()
public boolean DetectBlackBerryTablet()
public boolean DetectBlackBerryWebKit()
public boolean detectBlackBerryTouch()
public boolean detectBlackBerryHigh()
public boolean detectBlackBerryLow()
public boolean detectPalmOS()
public boolean detectPalmWebOS()
public boolean detectGarminNuvifone()
public boolean detectSmartphone()
public boolean detectBrewDevice()
public boolean detectDangerHiptop()
public boolean detectOperaMobile()
public boolean detectWapWml()
public boolean detectKindle()
public boolean detectMobileQuick()
public boolean detectSonyPlaystation()
public boolean detectNintendo()
public boolean detectXbox()
public boolean detectGameConsole()
public boolean detectMidpCapable()
public boolean detectMaemoTablet()
public boolean detectArchos()
public boolean detectSonyMylo()
public boolean detectMobileLong()
public boolean detectTierTablet()
public boolean detectTierIphone()
public boolean detectTierRichCss()
public boolean detectTierOtherPhones()
|
RichFaces Showcase 4.2.1.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||