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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator -
Field Summary
FieldsFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields 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 language of the browser.Returns themimeTypesproperty.Returns themimeTypesproperty.getOscpu()Returns theoscpuproperty.Returns theplatformproperty.Returns an empty array because HtmlUnit does not support embedded objects.Returns theproductproperty.Returns the build number of the current browser.Returns the propertyuserAgent.Returns thevendorproperty.Returns thevendorSubproperty.private voidbooleanReturns thecookieEnabledproperty.booleanisOnLine()Returns theonLineproperty.booleanIndicates if Java is enabled.voidJavaScript constructor.booleanReturnsfalsealways as data tainting support is not enabled in HtmlUnit.Methods inherited from class HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromiseMethods 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
-
Field Details
-
plugins_
-
mimeTypes_
-
mediaDevices_
-
-
Constructor Details
-
Navigator
public Navigator()Creates an instance.
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor. -
getAppCodeName
-
getAppName
-
getAppVersion
-
getLanguage
-
getLanguages
public org.htmlunit.corejs.javascript.Scriptable getLanguages()Returns the language of the browser.- Returns:
- the language
-
isCookieEnabled
public boolean isCookieEnabled()Returns thecookieEnabledproperty.- Returns:
- the
cookieEnabledproperty
-
isOnLine
public boolean isOnLine()Returns theonLineproperty.- Returns:
- the
onLineproperty
-
getPlatform
-
getProduct
-
getProductSub
Returns the build number of the current browser.- Returns:
- false
- See Also:
-
getUserAgent
-
getPlugins
Returns an empty array because HtmlUnit does not support embedded objects.- Returns:
- an empty array
-
initPlugins
private void initPlugins() -
getMimeTypes
-
javaEnabled
public boolean javaEnabled()Indicates if Java is enabled.- Returns:
- false
-
taintEnabled
public boolean taintEnabled()Returnsfalsealways as data tainting support is not enabled in HtmlUnit.- Returns:
- false
-
getGeolocation
Returns thegeolocationproperty.- Returns:
- the
geolocationproperty
-
getBuildID
-
getVendor
-
getVendorSub
-
getDoNotTrack
-
getOscpu
-
getConnection
Returns theconnectionproperty.- Returns:
- the
connectionproperty
-
getMediaDevices
Returns themimeTypesproperty.- Returns:
- the
mimeTypesproperty
-