public class UAgentInfo
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
deviceAndroid |
static java.lang.String |
deviceArchos |
static java.lang.String |
deviceBB |
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 |
deviceHtcFlyer |
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 |
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 |
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 |
deviceSymbian |
static java.lang.String |
deviceTablet |
static java.lang.String |
deviceWebOS |
static java.lang.String |
deviceWebOShp |
static java.lang.String |
deviceWii |
static java.lang.String |
deviceWindows |
static java.lang.String |
deviceWinMob |
static java.lang.String |
deviceWinPhone7 |
static java.lang.String |
deviceXbox |
static java.lang.String |
deviceXoom |
static java.lang.String |
disUpdate |
static java.lang.String |
engineBlazer |
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 |
isAndroidPhone |
boolean |
isIphone |
boolean |
isTierGenericMobile |
boolean |
isTierIphone |
boolean |
isTierRichCss |
boolean |
isTierTablet |
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 |
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 |
构造器和说明 |
---|
UAgentInfo(java.lang.String userAgent,
java.lang.String httpAccept)
Initialize the userAgent and httpAccept variables
|
限定符和类型 | 方法和说明 |
---|---|
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 |
detectBlackBerry()
Detects if the current browser is any BlackBerry.
|
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 |
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 |
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 |
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 |
detectOperaAndroidPhone()
Detects Opera Mobile on an Android phone.
|
boolean |
detectOperaAndroidTablet()
Detects Opera Mobile on an Android tablet.
|
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 |
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 |
detectWebOSTablet()
Detects if the current browser is on an HP tablet running WebOS.
|
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.
|
java.lang.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 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_AGENT
|
void |
initDeviceScan()
Initialize Key Stored Values.
|
public boolean isIphone
public boolean isAndroidPhone
public boolean isTierTablet
public boolean isTierIphone
public boolean isTierRichCss
public boolean isTierGenericMobile
public static final java.lang.String engineWebKit
public static final java.lang.String deviceIphone
public static final java.lang.String deviceIpod
public static final java.lang.String deviceIpad
public static final java.lang.String deviceMacPpc
public static final java.lang.String deviceAndroid
public static final java.lang.String deviceGoogleTV
public static final java.lang.String deviceXoom
public static final java.lang.String deviceHtcFlyer
public static final java.lang.String deviceSymbian
public static final java.lang.String deviceS60
public static final java.lang.String deviceS70
public static final java.lang.String deviceS80
public static final java.lang.String deviceS90
public static final java.lang.String deviceWinPhone7
public static final java.lang.String deviceWinMob
public static final java.lang.String deviceWindows
public static final java.lang.String deviceIeMob
public static final java.lang.String devicePpc
public static final java.lang.String enginePie
public static final java.lang.String deviceBB
public static final java.lang.String vndRIM
public static final java.lang.String deviceBBStorm
public static final java.lang.String deviceBBBold
public static final java.lang.String deviceBBBoldTouch
public static final java.lang.String deviceBBTour
public static final java.lang.String deviceBBCurve
public static final java.lang.String deviceBBCurveTouch
public static final java.lang.String deviceBBTorch
public static final java.lang.String deviceBBPlaybook
public static final java.lang.String devicePalm
public static final java.lang.String deviceWebOS
public static final java.lang.String deviceWebOShp
public static final java.lang.String engineBlazer
public static final java.lang.String engineXiino
public static final java.lang.String deviceKindle
public static final java.lang.String engineSilk
public static final java.lang.String deviceNuvifone
public static final java.lang.String vndwap
public static final java.lang.String wml
public static final java.lang.String deviceTablet
public static final java.lang.String deviceBrew
public static final java.lang.String deviceDanger
public static final java.lang.String deviceHiptop
public static final java.lang.String devicePlaystation
public static final java.lang.String deviceNintendoDs
public static final java.lang.String deviceNintendo
public static final java.lang.String deviceWii
public static final java.lang.String deviceXbox
public static final java.lang.String deviceArchos
public static final java.lang.String engineOpera
public static final java.lang.String engineNetfront
public static final java.lang.String engineUpBrowser
public static final java.lang.String engineOpenWeb
public static final java.lang.String deviceMidp
public static final java.lang.String uplink
public static final java.lang.String engineTelecaQ
public static final java.lang.String devicePda
public static final java.lang.String mini
public static final java.lang.String mobile
public static final java.lang.String mobi
public static final java.lang.String maemo
public static final java.lang.String linux
public static final java.lang.String qtembedded
public static final java.lang.String mylocom2
public static final java.lang.String manuSonyEricsson
public static final java.lang.String manuericsson
public static final java.lang.String manuSamsung1
public static final java.lang.String manuSony
public static final java.lang.String manuHtc
public static final java.lang.String svcDocomo
public static final java.lang.String svcKddi
public static final java.lang.String svcVodafone
public static final java.lang.String disUpdate
public UAgentInfo(java.lang.String userAgent, java.lang.String httpAccept)
userAgent
- the User-Agent headerhttpAccept
- the Accept headerpublic java.lang.String getUserAgent()
public java.lang.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 detectIos()
public boolean detectAndroid()
public boolean detectAndroidPhone()
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 detectWebOSTablet()
public boolean detectGarminNuvifone()
public boolean detectSmartphone()
public boolean detectBrewDevice()
public boolean detectDangerHiptop()
public boolean detectOperaMobile()
public boolean detectOperaAndroidPhone()
public boolean detectOperaAndroidTablet()
public boolean detectWapWml()
public boolean detectKindle()
public boolean detectAmazonSilk()
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()