Java Doc for BrowserVersion.java in  » Testing » htmlunit » com » gargoylesoftware » htmlunit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » htmlunit » com.gargoylesoftware.htmlunit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.gargoylesoftware.htmlunit.BrowserVersion

BrowserVersion
public class BrowserVersion implements Serializable(Code)
Objects of this class represent one specific version of a given browser. Predefined constants are provided for common browser versions. If you wish to create a BrowserVersion for a browser that doesn't have a constant defined but aren't sure what values to pass into the constructor then point your browser at http://htmlunit.sourceforge.net/cgi-bin/browserVersion and the code will be generated for you.
version:
   $Revision: 2142 $
author:
   Mike Bowler
author:
   Daniel Gredler
author:
   Marc Guillemot
author:
   Chris Erskine
author:
   Ahmed Ashour


Field Summary
final public static  StringAPP_CODE_NAME
    
final public static  StringCPU_CLASS_X86
     The X86 CPU class.
final public static  BrowserVersionFIREFOX_2
    
final public static  BrowserVersionFULL_FEATURED_BROWSER
     A fake browser that supports all the new features.
final public static  StringINTERNET_EXPLORER
    
final public static  BrowserVersionINTERNET_EXPLORER_6_0
    
final public static  BrowserVersionINTERNET_EXPLORER_7_0
    
final public static  StringLANGUAGE_ENGLISH_US
     United States English language identifier.
final public static  BrowserVersionMOZILLA_1_0
    
final public static  StringNETSCAPE
    
final public static  BrowserVersionNETSCAPE_4_7_9
    
final public static  BrowserVersionNETSCAPE_6_2_3
    
final public static  StringPLATFORM_WIN32
     The WIN32 platform.

Constructor Summary
public  BrowserVersion(String applicationName, String applicationVersion, String userAgent, String javaScriptVersion, float browserVersionNumeric)
     Instantiate one.

Method Summary
public  booleanequals(Object o)
    
public  StringgetApplicationCodeName()
     Return the application code name, for example "Mozilla".
public  StringgetApplicationMinorVersion()
     Return the application minor version, for example "0".
public  StringgetApplicationName()
     Return the application name, for example "Microsoft Internet Explorer".
public  StringgetApplicationVersion()
     Return the application version, for example "4.0 (compatible; MSIE 6.0b; Windows 98)".
public  StringgetBrowserLanguage()
     Return the browser application language, for example "en-us".
public  floatgetBrowserVersionNumeric()
    
public  StringgetCpuClass()
     Return the type of CPU in the machine, for example "x86".
public static  BrowserVersiongetDefault()
     Returns the default browser version that is used whenever a specific version isn't specified.
public  StringgetJavaScriptVersion()
     Return the version of javascript used by the browser, for example "1.2".
public  floatgetJavaScriptVersionNumeric()
    
public  StringgetPlatform()
     Return the platform on which the application is running, for example "Win32".
public  SetgetPlugins()
     Gets the configured plugins.
public  StringgetSystemLanguage()
     Return the system language, for example "en-us".
public  StringgetUserAgent()
     Return the user agent string, for example "Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)".
public  StringgetUserLanguage()
     Return the user language, for example "en-us".
public  inthashCode()
    
final public  booleanisIE()
     Returns true if this BrowserVersion instance represents some version of Microsoft Internet Explorer.
final public  booleanisNetscape()
     Returns true if this BrowserVersion instance represents some version of a Netscape browser, including Mozilla and Firefox.
public  booleanisOnLine()
     Return true if the browser is currently online.
public  voidsetApplicationCodeName(String applicationCodeName)
    
public  voidsetApplicationMinorVersion(String applicationMinorVersion)
    
public  voidsetApplicationName(String applicationName)
    
public  voidsetApplicationVersion(String applicationVersion)
    
public  voidsetBrowserLanguage(String browserLanguage)
    
public  voidsetBrowserVersion(float browserVersion)
    
public  voidsetCpuClass(String cpuClass)
    
public static  voidsetDefault(BrowserVersion newBrowserVersion)
     Sets the default browser version that is used whenever a specific version isn't specified.
public  voidsetJavaScriptVersion(String javaScriptVersion)
    
public  voidsetOnLine(boolean onLine)
    
public  voidsetPlatform(String platform)
    
public  voidsetSystemLanguage(String systemLanguage)
    
public  voidsetUserAgent(String userAgent)
    
public  voidsetUserLanguage(String userLanguage)
    

Field Detail
APP_CODE_NAME
final public static String APP_CODE_NAME(Code)
Application code name for both Microsoft Internet Explorer and Netscape series



CPU_CLASS_X86
final public static String CPU_CLASS_X86(Code)
The X86 CPU class.



FIREFOX_2
final public static BrowserVersion FIREFOX_2(Code)
Firefox 2



FULL_FEATURED_BROWSER
final public static BrowserVersion FULL_FEATURED_BROWSER(Code)
A fake browser that supports all the new features. This constant is used whenever you don't care which browser is being simulated.



INTERNET_EXPLORER
final public static String INTERNET_EXPLORER(Code)
Application name for the Microsoft Internet Explorer series of browsers



INTERNET_EXPLORER_6_0
final public static BrowserVersion INTERNET_EXPLORER_6_0(Code)
Internet Explorer 6



INTERNET_EXPLORER_7_0
final public static BrowserVersion INTERNET_EXPLORER_7_0(Code)
Internet Explorer 7



LANGUAGE_ENGLISH_US
final public static String LANGUAGE_ENGLISH_US(Code)
United States English language identifier.



MOZILLA_1_0
final public static BrowserVersion MOZILLA_1_0(Code)
Mozilla 1.0



NETSCAPE
final public static String NETSCAPE(Code)
Application name the Netscape navigator series of browsers



NETSCAPE_4_7_9
final public static BrowserVersion NETSCAPE_4_7_9(Code)
Netscape 4.79



NETSCAPE_6_2_3
final public static BrowserVersion NETSCAPE_6_2_3(Code)
Netscape 6.2.3



PLATFORM_WIN32
final public static String PLATFORM_WIN32(Code)
The WIN32 platform.




Constructor Detail
BrowserVersion
public BrowserVersion(String applicationName, String applicationVersion, String userAgent, String javaScriptVersion, float browserVersionNumeric)(Code)
Instantiate one.
Parameters:
  applicationName - The name of the application
Parameters:
  applicationVersion - The version string of the application
Parameters:
  userAgent - The user agent string that will be sent to the server
Parameters:
  javaScriptVersion - The version of JavaScript
Parameters:
  browserVersionNumeric - The floating number version of the browser




Method Detail
equals
public boolean equals(Object o)(Code)



getApplicationCodeName
public String getApplicationCodeName()(Code)
Return the application code name, for example "Mozilla". Default value is BrowserVersion.APP_CODE_NAME if not explicitly configured. The application code name.
See Also:    * MSDN documentation



getApplicationMinorVersion
public String getApplicationMinorVersion()(Code)
Return the application minor version, for example "0". Default value is "0" if not explicitly configured. The application minor version.
See Also:    * MSDN documentation



getApplicationName
public String getApplicationName()(Code)
Return the application name, for example "Microsoft Internet Explorer". The application name.
See Also:    * MSDN documentation



getApplicationVersion
public String getApplicationVersion()(Code)
Return the application version, for example "4.0 (compatible; MSIE 6.0b; Windows 98)". The application version.
See Also:    * MSDN documentation



getBrowserLanguage
public String getBrowserLanguage()(Code)
Return the browser application language, for example "en-us". Default value is BrowserVersion.LANGUAGE_ENGLISH_US if not explicitly configured. The browser application language.
See Also:    * MSDN documentation



getBrowserVersionNumeric
public float getBrowserVersionNumeric()(Code)
Returns the browserVersionNumeric.



getCpuClass
public String getCpuClass()(Code)
Return the type of CPU in the machine, for example "x86". Default value is BrowserVersion.CPU_CLASS_X86 if not explicitly configured. The type of CPU in the machine.
See Also:    * MSDN documentation



getDefault
public static BrowserVersion getDefault()(Code)
Returns the default browser version that is used whenever a specific version isn't specified. Defaults to BrowserVersion.INTERNET_EXPLORER_6_0 . The default browser version.



getJavaScriptVersion
public String getJavaScriptVersion()(Code)
Return the version of javascript used by the browser, for example "1.2". the version of javascript used by the browser.



getJavaScriptVersionNumeric
public float getJavaScriptVersionNumeric()(Code)
Returns the javaScriptVersionNumeric.



getPlatform
public String getPlatform()(Code)
Return the platform on which the application is running, for example "Win32". Default value is BrowserVersion.PLATFORM_WIN32 if not explicitly configured. the platform on which the application is running.
See Also:    * MSDN documentation



getPlugins
public Set getPlugins()(Code)
Gets the configured plugins. This makes only sense for Firefox as only this browser makes this kind of information available through javascript the available plugins



getSystemLanguage
public String getSystemLanguage()(Code)
Return the system language, for example "en-us". Default value is BrowserVersion.LANGUAGE_ENGLISH_US if not explicitly configured. The system language.
See Also:    * MSDN documentation



getUserAgent
public String getUserAgent()(Code)
Return the user agent string, for example "Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)". The user agent string.



getUserLanguage
public String getUserLanguage()(Code)
Return the user language, for example "en-us". Default value is BrowserVersion.LANGUAGE_ENGLISH_US if not explicitly configured. The user language.
See Also:    * MSDN documentation



hashCode
public int hashCode()(Code)



isIE
final public boolean isIE()(Code)
Returns true if this BrowserVersion instance represents some version of Microsoft Internet Explorer. Whether or not this version is a version of IE.



isNetscape
final public boolean isNetscape()(Code)
Returns true if this BrowserVersion instance represents some version of a Netscape browser, including Mozilla and Firefox. Whether or not this version is a version of a Netscape browser.



isOnLine
public boolean isOnLine()(Code)
Return true if the browser is currently online. Default value is true if not explicitly configured. true if the browser is currently online.
See Also:    * MSDN documentation



setApplicationCodeName
public void setApplicationCodeName(String applicationCodeName)(Code)

Parameters:
  applicationCodeName - The applicationCodeName to set.



setApplicationMinorVersion
public void setApplicationMinorVersion(String applicationMinorVersion)(Code)

Parameters:
  applicationMinorVersion - The applicationMinorVersion to set.



setApplicationName
public void setApplicationName(String applicationName)(Code)

Parameters:
  applicationName - The applicationName to set.



setApplicationVersion
public void setApplicationVersion(String applicationVersion)(Code)

Parameters:
  applicationVersion - The applicationVersion to set.



setBrowserLanguage
public void setBrowserLanguage(String browserLanguage)(Code)

Parameters:
  browserLanguage - The browserLanguage to set.



setBrowserVersion
public void setBrowserVersion(float browserVersion)(Code)

Parameters:
  browserVersion - The browserVersion to set.



setCpuClass
public void setCpuClass(String cpuClass)(Code)

Parameters:
  cpuClass - The cpuClass to set.



setDefault
public static void setDefault(BrowserVersion newBrowserVersion)(Code)
Sets the default browser version that is used whenever a specific version isn't specified.
Parameters:
  newBrowserVersion - The new default browser version.



setJavaScriptVersion
public void setJavaScriptVersion(String javaScriptVersion)(Code)

Parameters:
  javaScriptVersion - The javaScriptVersion to set.



setOnLine
public void setOnLine(boolean onLine)(Code)

Parameters:
  onLine - The onLine to set.



setPlatform
public void setPlatform(String platform)(Code)

Parameters:
  platform - The platform to set.



setSystemLanguage
public void setSystemLanguage(String systemLanguage)(Code)

Parameters:
  systemLanguage - The systemLanguage to set.



setUserAgent
public void setUserAgent(String userAgent)(Code)

Parameters:
  userAgent - The userAgent to set.



setUserLanguage
public void setUserLanguage(String userLanguage)(Code)

Parameters:
  userLanguage - The userLanguage to set.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.