Package | Description |
---|---|
com.teamdev.jxbrowser.engine |
This package provides the classes that allow you to work with engines.
|
Modifier and Type | Method and Description |
---|---|
EngineOptions.Builder |
EngineOptions.Builder.addScheme(Scheme scheme,
InterceptUrlRequestCallback callback)
Associates the given URL
scheme with the callback , so that all URL
requests with the given scheme will be intercepted before they are sent out. |
EngineOptions.Builder |
EngineOptions.Builder.addSwitch(java.lang.String commandLineSwitch)
Adds the switch to the list of the switches that will be passed to the Chromium process.
|
EngineOptions.Builder |
EngineOptions.Builder.allowFileAccessFromFiles()
Allows file access from files for the
Engine instance. |
EngineOptions.Builder |
EngineOptions.Builder.chromiumDir(java.nio.file.Path chromiumDir)
Sets the absolute path to the directory where Chromium binaries are located.
|
EngineOptions.Builder |
EngineOptions.Builder.disableChromiumTraffic()
Disables Chromium services that cause additional traffic, such as Google Cloud Messaging,
Translate Ranker, Extensions Updater, Safe Browsing, etc.
|
EngineOptions.Builder |
EngineOptions.Builder.disableDnsQuickCheck()
Disables DNS quick check.
|
EngineOptions.Builder |
EngineOptions.Builder.disableGpu()
Disables GPU rendering for the
Engine instance. |
EngineOptions.Builder |
EngineOptions.Builder.disableSandbox()
Disables the sandbox for the
Engine instance. |
EngineOptions.Builder |
EngineOptions.Builder.disableTouchMenu()
Disables the touch popup menu for the
Engine instance. |
EngineOptions.Builder |
EngineOptions.Builder.disableWebSecurity()
Disables the same-origin policy for the
Engine instance. |
EngineOptions.Builder |
EngineOptions.Builder.diskCacheSize(long diskCacheSize)
Sets the disk cache size, in bytes.
|
EngineOptions.Builder |
EngineOptions.Builder.enableAutoplay()
Allows automatically starting video and audio playbacks.
|
EngineOptions.Builder |
EngineOptions.Builder.enableIncognito()
Enables the incognito mode for the default profile of the
Engine instance. |
EngineOptions.Builder |
EngineOptions.Builder.enableMediaRouting()
Enables media routing for the
Engine instance. |
EngineOptions.Builder |
EngineOptions.Builder.enableProprietaryFeature(ProprietaryFeature feature)
Enables the given proprietary feature for the
Engine instance. |
EngineOptions.Builder |
EngineOptions.Builder.googleApiKey(java.lang.String googleApiKey)
Sets the Google API key.
|
EngineOptions.Builder |
EngineOptions.Builder.googleDefaultClientId(java.lang.String googleDefaultClientId)
Sets the Google client ID.
|
EngineOptions.Builder |
EngineOptions.Builder.googleDefaultClientSecret(java.lang.String googleDefaultClientSecret)
Sets the Google client secret.
|
EngineOptions.Builder |
EngineOptions.Builder.language(Language language)
Sets the Chromium language that is used on the default error pages and the message
dialogs.
|
EngineOptions.Builder |
EngineOptions.Builder.licenseKey(java.lang.String licenseKey)
Sets the licence key required to perform operations with the engine.
|
static EngineOptions.Builder |
EngineOptions.newBuilder(RenderingMode renderingMode)
Creates a new
EngineOptions builder. |
EngineOptions.Builder |
EngineOptions.Builder.passwordStore(PasswordStore passwordStore)
Sets the password store type that specifies which storage backend to use to encrypt
cookies on Linux.
|
EngineOptions.Builder |
EngineOptions.Builder.remoteDebuggingPort(int remoteDebuggingPort)
Sets the remote debugging port.
|
EngineOptions.Builder |
EngineOptions.Builder.rendererHangTimeout(java.time.Duration timeout)
Sets how long the renderer can be unresponsive before it is considered hung.
|
EngineOptions.Builder |
EngineOptions.Builder.treatInsecureOriginAsSecure(java.lang.String... origins)
Adds the given
origins to the white list. |
EngineOptions.Builder |
EngineOptions.Builder.userAgent(java.lang.String userAgent)
Sets the custom user agent string that is used to override the default user agent for the
Engine . |
EngineOptions.Builder |
EngineOptions.Builder.userDataDir(java.nio.file.Path userDataDir)
Sets the absolute path to the directory where the user data is stored.
|