Module org.htmlunit

Class Navigator

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
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.Scriptable>, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class Navigator extends HtmlUnitScriptable
JavaScript host object for Navigator.
Author:
Mike Bowler, Daniel Gredler, Chris Erskine, Ahmed Ashour, Marc Guillemot, Frank Danek, Ronald Brill
See Also:
  • Nested Class Summary

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

    org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction
  • Field Summary

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

    CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST

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

    isSealed

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

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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 preferred languages of the browser as an array.
    Returns the mediaDevices property.
    Returns the mimeTypes property.
    Returns the oscpu property.
    Returns the platform property.
    Returns the list of browser plugins.
    Returns the product property.
    Returns the build number of the current browser.
    Returns the userAgent property.
    Returns the vendor property.
    Returns the vendorSub property.
    boolean
    Returns the cookieEnabled property.
    boolean
    Returns the onLine property.
    boolean
    Returns whether the browser supports inline display of PDF files when navigating to them.
    boolean
    Returns whether Java is enabled.
    void
    Creates an instance of this object.
    boolean
    Returns false as data tainting support is not enabled in HtmlUnit.

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

    applyDescriptorToAttributeBitset, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getAncestor, getArrayPrototype, getClassPrototype, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getThis, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isTrue, preventExtensions, put, put, putConst, putConstProperty, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, redefineProperty, sameValue, sealObject, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size

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

    associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, defineProperty, defineProperty, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, has, has, isSealed, readMaps, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, writeMaps

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    get, getIds, has, has

    Methods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable

    get, has
  • Constructor Details

    • Navigator

      public Navigator()
  • Method Details

    • jsConstructor

      public void jsConstructor()
      Creates an instance of this object.
    • 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 browser language
    • getLanguages

      public org.htmlunit.corejs.javascript.Scriptable getLanguages()
      Returns the preferred languages of the browser as an array.
      Returns:
      the languages array
    • 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:
      the productSub property
      See Also:
    • getUserAgent

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

      public PluginArray getPlugins()
      Returns the list of browser plugins.
      Returns:
      the plugins array
    • getMimeTypes

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

      public boolean javaEnabled()
      Returns whether Java is enabled. Always returns false.
      Returns:
      false
    • taintEnabled

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

      public Geolocation getGeolocation()
      Returns the geolocation property.
      Returns:
      the geolocation property
    • isPdfViewerEnabled

      public boolean isPdfViewerEnabled()
      Returns whether the browser supports inline display of PDF files when navigating to them.
      Returns:
      true if inline PDF viewing is supported
    • 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 mediaDevices property.
      Returns:
      the mediaDevices property