public interface BrowserSettings
Modifier and Type | Method and Description |
---|---|
void |
allowJavaScriptAccessClipboard()
Allows JavaScript code on the web pages loaded in the browser to access clipboard.
|
void |
allowLoadingImagesAutomatically()
Allows loading images automatically on the web pages loaded in the browser.
|
void |
allowRunningInsecureContent()
Allows running an insecure content in the browser.
|
void |
allowScriptsToCloseWindows()
Allows JavaScript code on the web pages loaded in the browser to close the browser.
|
java.lang.String |
defaultEncoding()
Returns a string that represents the default text encoding.
|
void |
defaultEncoding(java.lang.String defaultEncoding)
Updates the default text encoding with the given value.
|
void |
disableApplicationCache()
Disables the application cache in the browser.
|
void |
disableImages()
Disables images displaying on the web pages loaded in the browser.
|
void |
disableJavaScript()
Disables JavaScript on the web pages loaded in the browser.
|
void |
disableLocalStorage()
Disables the local storage in the browser.
|
void |
disablePlugins()
Disables all plugins on the web pages loaded in the browser.
|
void |
disallowJavaScriptAccessClipboard()
Disallows JavaScript code on the web pages loaded in the browser to access clipboard.
|
void |
disallowLoadingImagesAutomatically()
Disallows loading images automatically on the web pages loaded in the browser.
|
void |
disallowRunningInsecureContent()
Disallows running an insecure content in the browser.
|
void |
disallowScriptsToCloseWindows()
Disallows JavaScript code on the web pages loaded in the browser to close the browser.
|
void |
enableApplicationCache()
Enables the application cache in the browser.
|
void |
enableImages()
Enables images displaying on the web pages loaded in the browser.
|
void |
enableJavaScript()
Enables JavaScript on the web pages loaded in the browser.
|
void |
enableLocalStorage()
Enables the local storage in the browser.
|
void |
enablePlugins()
Enables all plugins on the web pages loaded in the browser.
|
boolean |
isAllowJavaScriptAccessClipboard()
Indicates whether JavaScript code on the web pages loaded in the browser can access
clipboard.
|
boolean |
isAllowLoadingImagesAutomatically()
Indicates whether images are allowed to be loaded automatically on the web pages loaded in
the browser.
|
boolean |
isAllowRunningInsecureContent()
Indicates whether an insecure content can run in the browser.
|
boolean |
isAllowScriptsToCloseWindows()
Indicates whether JavaScript code on the web pages loaded in the browser can close the
browser.
|
boolean |
isApplicationCacheEnabled()
Indicates whether the application cache in the browser is enabled.
|
boolean |
isImagesEnabled()
Indicates whether images are displayed on the web pages loaded in the browser.
|
boolean |
isJavaScriptEnabled()
Indicates whether JavaScript on the web pages loaded in the browser is enabled.
|
boolean |
isLocalStorageEnabled()
Indicates whether the local storage in the browser is enabled.
|
boolean |
isPluginsEnabled()
Indicates whether plugins are enabled on the web pages loaded in the browser.
|
WebRtcIpHandlingPolicy |
webRtcIpHandlingPolicy()
Returns the WebRTC IP handling policy for the browser.
|
void |
webRtcIpHandlingPolicy(WebRtcIpHandlingPolicy policy)
Updates the WebRTC IP handling policy for the browser with the given one.
|
java.lang.String defaultEncoding()
void defaultEncoding(java.lang.String defaultEncoding)
defaultEncoding
- a string that represents the new default text encodingjava.lang.IllegalArgumentException
- when defaultEncoding
is empty or blankjava.lang.IllegalStateException
- when the browser is closedboolean isJavaScriptEnabled()
java.lang.IllegalStateException
- when the browser is closedvoid enableJavaScript()
java.lang.IllegalStateException
- when the browser is closedvoid disableJavaScript()
java.lang.IllegalStateException
- when the browser is closedboolean isAllowLoadingImagesAutomatically()
java.lang.IllegalStateException
- when the browser is closedvoid allowLoadingImagesAutomatically()
java.lang.IllegalStateException
- when the browser is closedvoid disallowLoadingImagesAutomatically()
java.lang.IllegalStateException
- when the browser is closedboolean isImagesEnabled()
java.lang.IllegalStateException
- when the browser is closedvoid enableImages()
java.lang.IllegalStateException
- when the browser is closedvoid disableImages()
java.lang.IllegalStateException
- when the browser is closedboolean isPluginsEnabled()
java.lang.IllegalStateException
- when the browser is closedvoid enablePlugins()
java.lang.IllegalStateException
- when the browser is closedvoid disablePlugins()
java.lang.IllegalStateException
- when the browser is closedboolean isAllowScriptsToCloseWindows()
java.lang.IllegalStateException
- when the browser is closedvoid allowScriptsToCloseWindows()
java.lang.IllegalStateException
- when the browser is closedvoid disallowScriptsToCloseWindows()
java.lang.IllegalStateException
- when the browser is closedboolean isAllowJavaScriptAccessClipboard()
java.lang.IllegalStateException
- when the browser is closedvoid allowJavaScriptAccessClipboard()
java.lang.IllegalStateException
- when the browser is closedvoid disallowJavaScriptAccessClipboard()
java.lang.IllegalStateException
- when the browser is closedboolean isLocalStorageEnabled()
java.lang.IllegalStateException
- when the browser is closedvoid enableLocalStorage()
java.lang.IllegalStateException
- when the browser is closedvoid disableLocalStorage()
java.lang.IllegalStateException
- when the browser is closedboolean isApplicationCacheEnabled()
java.lang.IllegalStateException
- when the browser is closedvoid enableApplicationCache()
java.lang.IllegalStateException
- when the browser is closedvoid disableApplicationCache()
java.lang.IllegalStateException
- when the browser is closedboolean isAllowRunningInsecureContent()
java.lang.IllegalStateException
- when the browser is closedvoid allowRunningInsecureContent()
java.lang.IllegalStateException
- when the browser is closedvoid disallowRunningInsecureContent()
java.lang.IllegalStateException
- when the browser is closedWebRtcIpHandlingPolicy webRtcIpHandlingPolicy()
java.lang.IllegalStateException
- when the browser is closedvoid webRtcIpHandlingPolicy(WebRtcIpHandlingPolicy policy)
policy
- a new WebRTC IP handling policyjava.lang.IllegalStateException
- when the browser is closed