public enum Browser extends Enum<Browser>
Enum Constant and Description |
---|
APPLE_MAIL |
BOT |
CAMINO |
CAMINO2 |
CFNETWORK |
CHROME
Google Chrome browser
|
CHROME10 |
CHROME8 |
CHROME9 |
DOWNLOAD |
EUDORA |
EVOLUTION |
FIREFOX |
FIREFOX1_5 |
FIREFOX2 |
FIREFOX3 |
FIREFOX3MOBILE |
FIREFOX4 |
FLOCK |
IE
Family of Internet Explorer browsers
|
IE5 |
IE5_5 |
IE6 |
IE7 |
IE8 |
IE9 |
IEMOBILE6 |
IEMOBILE7
Since 2007 the mobile edition of Internet Explorer identifies itself as IEMobile in the user-agent.
|
KONQUEROR |
LOTUS_NOTES |
LYNX |
MOBILE_SAFARI |
MOZILLA |
NETFRONT |
OMNIWEB |
OPERA |
OPERA_MINI |
OPERA10
For some strange reason Opera uses 9.80 in the user-agent string.
|
OPERA9 |
OUTLOOK
Outlook email client
|
OUTLOOK_EXPRESS7
Since version 7 Outlook Express is identifying itself.
|
OUTLOOK2007
Microsoft Outlook 2007 identifies itself as MSIE7 but uses the html rendering engine of Word 2007.
|
OUTLOOK2010
Outlook 2010 is still using the rendering engine of Word.
|
POCOMAIL |
SAFARI |
SAFARI4 |
SAFARI5 |
SEAMONKEY |
THEBAT |
THUNDERBIRD |
THUNDERBIRD2 |
THUNDERBIRD3 |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
BrowserType |
getBrowserType() |
Browser |
getGroup() |
short |
getId() |
Manufacturer |
getManufacturer() |
String |
getName() |
RenderingEngine |
getRenderingEngine() |
Version |
getVersion(String userAgentString)
Detects the detailed version information of the browser.
|
boolean |
isInUserAgentString(String agentString) |
static Browser |
parseUserAgentString(String agentString)
Iterates over all Browsers to compare the browser signature with
the user agent string.
|
static Browser |
valueOf(short id)
Returns the enum constant of this type with the specified id.
|
static Browser |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Browser[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Browser OPERA
public static final Browser OPERA_MINI
public static final Browser OPERA10
public static final Browser OPERA9
public static final Browser KONQUEROR
public static final Browser OUTLOOK
public static final Browser OUTLOOK2007
public static final Browser OUTLOOK2010
public static final Browser IE
public static final Browser OUTLOOK_EXPRESS7
public static final Browser IEMOBILE7
public static final Browser IEMOBILE6
public static final Browser IE9
public static final Browser IE8
public static final Browser IE7
public static final Browser IE6
public static final Browser IE5_5
public static final Browser IE5
public static final Browser CHROME
public static final Browser CHROME10
public static final Browser CHROME9
public static final Browser CHROME8
public static final Browser OMNIWEB
public static final Browser SAFARI
public static final Browser SAFARI5
public static final Browser MOBILE_SAFARI
public static final Browser SAFARI4
public static final Browser APPLE_MAIL
public static final Browser LOTUS_NOTES
public static final Browser THUNDERBIRD
public static final Browser THUNDERBIRD3
public static final Browser THUNDERBIRD2
public static final Browser CAMINO
public static final Browser CAMINO2
public static final Browser FLOCK
public static final Browser FIREFOX
public static final Browser FIREFOX3MOBILE
public static final Browser FIREFOX4
public static final Browser FIREFOX3
public static final Browser FIREFOX2
public static final Browser FIREFOX1_5
public static final Browser SEAMONKEY
public static final Browser BOT
public static final Browser MOZILLA
public static final Browser CFNETWORK
public static final Browser EUDORA
public static final Browser POCOMAIL
public static final Browser THEBAT
public static final Browser NETFRONT
public static final Browser EVOLUTION
public static final Browser LYNX
public static final Browser DOWNLOAD
public static final Browser UNKNOWN
public static Browser[] values()
for (Browser c : Browser.values()) System.out.println(c);
public static Browser valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic short getId()
public String getName()
public Version getVersion(String userAgentString)
public BrowserType getBrowserType()
public Manufacturer getManufacturer()
public RenderingEngine getRenderingEngine()
public Browser getGroup()
public boolean isInUserAgentString(String agentString)
public static Browser parseUserAgentString(String agentString)
agentString
- public static Browser valueOf(short id)
id
- Copyright © 2018. All rights reserved.