Class Navigator

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.Navigator
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class Navigator extends HtmlUnitScriptable
A JavaScript object for Navigator.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private MediaDevices
     
     
    private PluginArray
     

    Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST

    Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the appCodeName property.
    Returns the appName property.
    Returns the appVersion property.
    Returns the buildID property.
    Returns the connection property.
    Returns the doNotTrack property.
    Returns the geolocation property.
    Returns the language of the browser.
    org.htmlunit.corejs.javascript.Scriptable
    Returns the language of the browser.
    Returns the mimeTypes property.
    Returns the mimeTypes property.
    Returns the oscpu property.
    Returns the platform property.
    Returns an empty array because HtmlUnit does not support embedded objects.
    Returns the product property.
    Returns the build number of the current browser.
    Returns the property userAgent.
    Returns the vendor property.
    Returns the vendorSub property.
    private void
     
    boolean
    Returns the cookieEnabled property.
    boolean
    Returns the onLine property.
    boolean
    Indicates if Java is enabled.
    void
    JavaScript constructor.
    boolean
    Returns false always as data tainting support is not enabled in HtmlUnit.

    Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Navigator

      public Navigator()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
    • getAppCodeName

      public String getAppCodeName()
      Returns the appCodeName property.
      Returns:
      the appCodeName property
    • getAppName

      public String getAppName()
      Returns the appName property.
      Returns:
      the appName property
    • getAppVersion

      public String getAppVersion()
      Returns the appVersion property.
      Returns:
      the appVersion property
    • getLanguage

      public String getLanguage()
      Returns the language of the browser.
      Returns:
      the language
    • getLanguages

      public org.htmlunit.corejs.javascript.Scriptable getLanguages()
      Returns the language of the browser.
      Returns:
      the language
    • isCookieEnabled

      public boolean isCookieEnabled()
      Returns the cookieEnabled property.
      Returns:
      the cookieEnabled property
    • isOnLine

      public boolean isOnLine()
      Returns the onLine property.
      Returns:
      the onLine property
    • getPlatform

      public String getPlatform()
      Returns the platform property.
      Returns:
      the platform property
    • getProduct

      public String getProduct()
      Returns the product property.
      Returns:
      the product property
    • getProductSub

      public String getProductSub()
      Returns the build number of the current browser.
      Returns:
      false
      See Also:
    • getUserAgent

      public String getUserAgent()
      Returns the property userAgent.
      Returns:
      the property userAgent
    • getPlugins

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

      private void initPlugins()
    • getMimeTypes

      public Object getMimeTypes()
      Returns the mimeTypes property.
      Returns:
      the mimeTypes property
    • javaEnabled

      public boolean javaEnabled()
      Indicates if Java is enabled.
      Returns:
      false
    • 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 property.
      Returns:
      the geolocation property
    • getBuildID

      public String getBuildID()
      Returns the buildID property.
      Returns:
      the buildID property
    • getVendor

      public String getVendor()
      Returns the vendor property.
      Returns:
      the vendor property
    • getVendorSub

      public String getVendorSub()
      Returns the vendorSub property.
      Returns:
      the vendorSub property
    • getDoNotTrack

      public Object getDoNotTrack()
      Returns the doNotTrack property.
      Returns:
      the doNotTrack property
    • getOscpu

      public String getOscpu()
      Returns the oscpu property.
      Returns:
      the oscpu property
    • getConnection

      public NetworkInformation getConnection()
      Returns the connection property.
      Returns:
      the connection property
    • getMediaDevices

      public MediaDevices getMediaDevices()
      Returns the mimeTypes property.
      Returns:
      the mimeTypes property