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
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_CONSTFields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
isSealedFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theappCodeNameproperty.Returns theappNameproperty.Returns theappVersionproperty.Returns thebuildIDproperty.Returns theconnectionproperty.Returns thedoNotTrackproperty.Returns thegeolocationproperty.Returns the language of the browser.org.htmlunit.corejs.javascript.ScriptableReturns the preferred languages of the browser as an array.Returns themediaDevicesproperty.Returns themimeTypesproperty.getOscpu()Returns theoscpuproperty.Returns theplatformproperty.Returns the list of browser plugins.Returns theproductproperty.Returns the build number of the current browser.Returns theuserAgentproperty.Returns thevendorproperty.Returns thevendorSubproperty.booleanReturns thecookieEnabledproperty.booleanisOnLine()Returns theonLineproperty.booleanReturns whether the browser supports inline display of PDF files when navigating to them.booleanReturns whether Java is enabled.voidCreates an instance of this object.booleanReturnsfalseas data tainting support is not enabled in HtmlUnit.Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowOrWorkerGlobalScope, getWithPreemption, has, hasInstance, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setupPromise, setupRejectedPromiseMethods 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, sizeMethods 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, writeMapsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.Scriptable
get, getIds, has, hasMethods 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
Returns theappCodeNameproperty.- Returns:
- the
appCodeNameproperty
-
getAppName
Returns theappNameproperty.- Returns:
- the
appNameproperty
-
getAppVersion
Returns theappVersionproperty.- Returns:
- the
appVersionproperty
-
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 thecookieEnabledproperty.- Returns:
- the
cookieEnabledproperty
-
isOnLine
public boolean isOnLine()Returns theonLineproperty.- Returns:
- the
onLineproperty
-
getPlatform
Returns theplatformproperty.- Returns:
- the
platformproperty
-
getProduct
Returns theproductproperty.- Returns:
- the
productproperty
-
getProductSub
Returns the build number of the current browser.- Returns:
- the
productSubproperty - See Also:
-
getUserAgent
Returns theuserAgentproperty.- Returns:
- the
userAgentproperty
-
getPlugins
Returns the list of browser plugins.- Returns:
- the
pluginsarray
-
getMimeTypes
Returns themimeTypesproperty.- Returns:
- the
mimeTypesproperty
-
javaEnabled
public boolean javaEnabled()Returns whether Java is enabled. Always returnsfalse.- Returns:
false
-
taintEnabled
public boolean taintEnabled()Returnsfalseas data tainting support is not enabled in HtmlUnit.- Returns:
false
-
getGeolocation
Returns thegeolocationproperty.- Returns:
- the
geolocationproperty
-
isPdfViewerEnabled
public boolean isPdfViewerEnabled()Returns whether the browser supports inline display of PDF files when navigating to them.- Returns:
trueif inline PDF viewing is supported
-
getBuildID
Returns thebuildIDproperty.- Returns:
- the
buildIDproperty
-
getVendor
Returns thevendorproperty.- Returns:
- the
vendorproperty
-
getVendorSub
Returns thevendorSubproperty.- Returns:
- the
vendorSubproperty
-
getDoNotTrack
Returns thedoNotTrackproperty.- Returns:
- the
doNotTrackproperty
-
getOscpu
Returns theoscpuproperty.- Returns:
- the
oscpuproperty
-
getConnection
Returns theconnectionproperty.- Returns:
- the
connectionproperty
-
getMediaDevices
Returns themediaDevicesproperty.- Returns:
- the
mediaDevicesproperty
-