public class Navigator extends HtmlUnitScriptable
Navigator
.org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
Navigator() |
Modifier and Type | Method and Description |
---|---|
String |
getAppCodeName()
Returns the
appCodeName property. |
String |
getAppName()
Returns the
appName property. |
String |
getAppVersion()
Returns the
appVersion property. |
String |
getBuildID()
Returns the
buildID property. |
NetworkInformation |
getConnection()
Returns the
connection property. |
Object |
getDoNotTrack()
Returns the
doNotTrack property. |
Geolocation |
getGeolocation()
Returns the
geolocation property. |
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. |
Object |
getMimeTypes()
Returns the
mimeTypes property. |
String |
getOscpu()
Returns the
oscpu property. |
String |
getPlatform()
Returns the
platform property. |
Object |
getPlugins()
Returns an empty array because HtmlUnit does not support embedded objects.
|
String |
getProduct()
Returns the
product property. |
String |
getProductSub()
Returns the build number of the current browser.
|
String |
getUserAgent()
Returns the property
userAgent . |
String |
getVendor()
Returns the
vendor property. |
String |
getVendorSub()
Returns the
vendorSub property. |
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. |
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, 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
public void jsConstructor()
public String getAppCodeName()
appCodeName
property.appCodeName
propertypublic String getAppName()
appName
property.appName
propertypublic String getAppVersion()
appVersion
property.appVersion
propertypublic String getLanguage()
public org.htmlunit.corejs.javascript.Scriptable getLanguages()
public boolean isCookieEnabled()
cookieEnabled
property.cookieEnabled
propertypublic boolean isOnLine()
onLine
property.onLine
propertypublic String getPlatform()
platform
property.platform
propertypublic String getProduct()
product
property.product
propertypublic String getProductSub()
public String getUserAgent()
userAgent
.userAgent
public Object getPlugins()
public Object getMimeTypes()
mimeTypes
property.mimeTypes
propertypublic boolean javaEnabled()
public boolean taintEnabled()
false
always as data tainting support is not enabled in HtmlUnit.public Geolocation getGeolocation()
geolocation
property.geolocation
propertypublic String getBuildID()
buildID
property.buildID
propertypublic String getVendor()
vendor
property.vendor
propertypublic String getVendorSub()
vendorSub
property.vendorSub
propertypublic Object getDoNotTrack()
doNotTrack
property.doNotTrack
propertypublic String getOscpu()
oscpu
property.oscpu
propertypublic NetworkInformation getConnection()
connection
property.connection
propertypublic MediaDevices getMediaDevices()
mimeTypes
property.mimeTypes
propertyCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.