Class Navigator

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    MSDN documentation, Serialized Form
    • 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 mediaDevices_  
      private MimeTypeArray mimeTypes_  
      private PluginArray plugins_  
      • 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
      Navigator()
      Creates an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAppCodeName()
      Returns the appCodeName property.
      java.lang.String getAppName()
      Returns the appName property.
      java.lang.String getAppVersion()
      Returns the appVersion property.
      java.lang.String getBuildID()
      Returns the buildID property.
      NetworkInformation getConnection()
      Returns the connection property.
      java.lang.Object getDoNotTrack()
      Returns the doNotTrack property.
      Geolocation getGeolocation()
      Returns the geolocation property.
      java.lang.String getLanguage()
      Returns the language of the browser.
      org.htmlunit.corejs.javascript.Scriptable getLanguages()
      Returns the language of the browser.
      MediaDevices getMediaDevices()
      Returns the mimeTypes property.
      java.lang.Object getMimeTypes()
      Returns the mimeTypes property.
      java.lang.String getOscpu()
      Returns the oscpu property.
      java.lang.String getPlatform()
      Returns the platform property.
      java.lang.Object getPlugins()
      Returns an empty array because HtmlUnit does not support embedded objects.
      java.lang.String getProduct()
      Returns the product property.
      java.lang.String getProductSub()
      Returns the build number of the current browser.
      java.lang.String getUserAgent()
      Returns the property userAgent.
      java.lang.String getVendor()
      Returns the vendor property.
      java.lang.String getVendorSub()
      Returns the vendorSub property.
      private void initPlugins()  
      boolean isCookieEnabled()
      Returns the cookieEnabled property.
      boolean isOnLine()
      Returns the onLine property.
      boolean javaEnabled()
      Indicates if Java is enabled.
      void jsConstructor()
      JavaScript constructor.
      boolean taintEnabled()
      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
    • Constructor Detail

      • Navigator

        public Navigator()
        Creates an instance.
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
      • getAppCodeName

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

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

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

        public java.lang.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 java.lang.String getPlatform()
        Returns the platform property.
        Returns:
        the platform property
      • getProduct

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

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

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

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

        private void initPlugins()
      • getMimeTypes

        public java.lang.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 java.lang.String getBuildID()
        Returns the buildID property.
        Returns:
        the buildID property
      • getVendor

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

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

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

        public java.lang.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