JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host

Class Navigator

    • Constructor Detail

      • Navigator

        public Navigator()
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
      • getAppCodeName

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

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

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

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

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

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

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

        public PluginArray getPlugins()
        Returns an empty array because HtmlUnit does not support embedded objects.
        Returns:
        an empty array
      • getMimeTypes

        public MimeTypeArray 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
      • getPdfViewerEnabled

        public boolean getPdfViewerEnabled()
        Returns:
        true whether the browser supports inline display of PDF files when navigating to them
      • getBuildID

        public String getBuildID()
        Returns the buildID property.
        Returns:
        the buildID property
      • getVendor

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

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

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

        public 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
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /