com.gargoylesoftware.htmlunit.javascript.host
Class Navigator

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.Navigator
All Implemented Interfaces:
Serializable, Cloneable, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public final class Navigator
extends SimpleScriptable

A JavaScript object for a Navigator.

Version:
$Revision: 7429 $
Author:
Mike Bowler, Daniel Gredler, Chris Erskine, Ahmed Ashour, Marc Guillemot
See Also:
MSDN documentation, Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
Navigator()
          Creates an instance.
 
Method Summary
 String getAppCodeName()
          Returns the property "appCodeName".
 String getAppMinorVersion()
          Returns the property "appMinorVersion".
 String getAppName()
          Returns the property "appName".
 String getAppVersion()
          Returns the property "appVersion".
 String getBrowserLanguage()
          Returns the language of the browser (for IE).
 String getBuildID()
          Returns the buildID.
 boolean getCookieEnabled()
          Returns the property "cookieEnabled".
 String getCpuClass()
          Returns the property "cpuClass".
 String getDoNotTrack()
          Returns the doNotTrack.
 Geolocation getGeolocation()
          Returns the geolocation.
 String getLanguage()
          Returns the language of the browser (for Mozilla).
 Object getMimeTypes()
          Returns an empty array because HtmlUnit does not support embedded objects.
 String getMsDoNotTrack()
          Returns the msDoNotTrack.
 boolean getOnLine()
          Returns the property "onLine".
 String getOscpu()
          Returns the oscpu.
 String getPlatform()
          Returns the property "platform".
 Object getPlugins()
          Returns an empty array because HtmlUnit does not support embedded objects.
 String getProduct()
          Returns the property "product".
 String getProductSub()
          Returns the build number of the current browser.
 String getSystemLanguage()
          Returns the property "systemLanguage".
 String getUserAgent()
          Returns the property "userAgent".
 String getUserLanguage()
          Returns the property "userLanguage".
 String getVendor()
          Returns the vendor.
 String getVendorSub()
          Returns the vendorSub.
 boolean javaEnabled()
          Indicates if Java is enabled.
 boolean taintEnabled()
          Returns false always as data tainting support is not enabled in HtmlUnit.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Navigator

public Navigator()
Creates an instance. JavaScript objects must have a default constructor.

Method Detail

getAppCodeName

public String getAppCodeName()
Returns the property "appCodeName".

Returns:
the property "appCodeName"

getAppMinorVersion

public String getAppMinorVersion()
Returns the property "appMinorVersion".

Returns:
the property "appMinorVersion"

getAppName

public String getAppName()
Returns the property "appName".

Returns:
the property "appName"

getAppVersion

public String getAppVersion()
Returns the property "appVersion".

Returns:
the property "appVersion"

getBrowserLanguage

public String getBrowserLanguage()
Returns the language of the browser (for IE).

Returns:
the language

getLanguage

public String getLanguage()
Returns the language of the browser (for Mozilla).

Returns:
the language

getCookieEnabled

public boolean getCookieEnabled()
Returns the property "cookieEnabled".

Returns:
the property "cookieEnabled"

getCpuClass

public String getCpuClass()
Returns the property "cpuClass".

Returns:
the property "cpuClass"

getOnLine

public boolean getOnLine()
Returns the property "onLine".

Returns:
the property "onLine"

getPlatform

public String getPlatform()
Returns the property "platform".

Returns:
the property "platform"

getProduct

public String getProduct()
Returns the property "product".

Returns:
the property "product"

getProductSub

public String getProductSub()
Returns the build number of the current browser.

Returns:
false
See Also:
Mozilla Doc

getSystemLanguage

public String getSystemLanguage()
Returns the property "systemLanguage".

Returns:
the property "systemLanguage"

getUserAgent

public String getUserAgent()
Returns the property "userAgent".

Returns:
the property "userAgent"

getUserLanguage

public String getUserLanguage()
Returns the property "userLanguage".

Returns:
the property "userLanguage"

getPlugins

public Object getPlugins()
Returns an empty array because HtmlUnit does not support embedded objects.

Returns:
an empty array

getMimeTypes

public Object getMimeTypes()
Returns an empty array because HtmlUnit does not support embedded objects.

Returns:
an empty array

javaEnabled

public boolean javaEnabled()
Indicates if Java is enabled.

Returns:
true/false (see WebClientOptions.isAppletEnabled()

taintEnabled

public boolean taintEnabled()
Returns false always as data tainting support is not enabled in HtmlUnit.

Returns:
false

getGeolocation

public Geolocation getGeolocation()
Returns the geolocation.

Returns:
the geolocation

getBuildID

public String getBuildID()
Returns the buildID.

Returns:
the buildID

getVendor

public String getVendor()
Returns the vendor.

Returns:
the vendor

getVendorSub

public String getVendorSub()
Returns the vendorSub.

Returns:
the vendorSub

getDoNotTrack

public String getDoNotTrack()
Returns the doNotTrack.

Returns:
the doNotTrack

getMsDoNotTrack

public String getMsDoNotTrack()
Returns the msDoNotTrack.

Returns:
the msDoNotTrack

getOscpu

public String getOscpu()
Returns the oscpu.

Returns:
the oscpu


Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.