Package org.htmlunit.javascript.host
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
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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionReturns theappCodeName
property.Returns theappName
property.Returns theappVersion
property.Returns thebuildID
property.Returns theconnection
property.Returns thedoNotTrack
property.Returns thegeolocation
property.Returns the language of the browser.org.htmlunit.corejs.javascript.Scriptable
Returns the language of the browser.Returns themimeTypes
property.Returns themimeTypes
property.getOscpu()
Returns theoscpu
property.Returns theplatform
property.Returns an empty array because HtmlUnit does not support embedded objects.Returns theproduct
property.Returns the build number of the current browser.Returns the propertyuserAgent
.Returns thevendor
property.Returns thevendorSub
property.private void
boolean
Returns thecookieEnabled
property.boolean
isOnLine()
Returns theonLine
property.boolean
Indicates if Java is enabled.void
JavaScript constructor.boolean
Returnsfalse
always as 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, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
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
-
Field Details
-
plugins_
-
mimeTypes_
-
mediaDevices_
-
-
Constructor Details
-
Navigator
public Navigator()Creates an instance.
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor. -
getAppCodeName
Returns theappCodeName
property.- Returns:
- the
appCodeName
property
-
getAppName
Returns theappName
property.- Returns:
- the
appName
property
-
getAppVersion
Returns theappVersion
property.- Returns:
- the
appVersion
property
-
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 thecookieEnabled
property.- Returns:
- the
cookieEnabled
property
-
isOnLine
public boolean isOnLine()Returns theonLine
property.- Returns:
- the
onLine
property
-
getPlatform
Returns theplatform
property.- Returns:
- the
platform
property
-
getProduct
Returns theproduct
property.- Returns:
- the
product
property
-
getProductSub
Returns the build number of the current browser.- Returns:
- false
- See Also:
-
getUserAgent
Returns the propertyuserAgent
.- Returns:
- the property
userAgent
-
getPlugins
Returns an empty array because HtmlUnit does not support embedded objects.- Returns:
- an empty array
-
initPlugins
private void initPlugins() -
getMimeTypes
Returns themimeTypes
property.- Returns:
- the
mimeTypes
property
-
javaEnabled
public boolean javaEnabled()Indicates if Java is enabled.- Returns:
- false
-
taintEnabled
public boolean taintEnabled()Returnsfalse
always as data tainting support is not enabled in HtmlUnit.- Returns:
- false
-
getGeolocation
Returns thegeolocation
property.- Returns:
- the
geolocation
property
-
getBuildID
Returns thebuildID
property.- Returns:
- the
buildID
property
-
getVendor
Returns thevendor
property.- Returns:
- the
vendor
property
-
getVendorSub
Returns thevendorSub
property.- Returns:
- the
vendorSub
property
-
getDoNotTrack
Returns thedoNotTrack
property.- Returns:
- the
doNotTrack
property
-
getOscpu
Returns theoscpu
property.- Returns:
- the
oscpu
property
-
getConnection
Returns theconnection
property.- Returns:
- the
connection
property
-
getMediaDevices
Returns themimeTypes
property.- Returns:
- the
mimeTypes
property
-