Class ProxyAutoConfigJavaScriptConfiguration
java.lang.Object
org.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration
org.htmlunit.javascript.configuration.ProxyAutoConfigJavaScriptConfiguration
A container for all the JavaScript configuration information used for the
proxy AutoConfig support.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Class<? extends HtmlUnitScriptable>[]
private static final Map
<String, ProxyAutoConfigJavaScriptConfiguration> Cache of browser versions and their corresponding JavaScript configurations. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Constructor is only called fromgetInstance(BrowserVersion)
which is synchronized. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends HtmlUnitScriptable>[]
getInstance
(BrowserVersion browserVersion) Returns the instance that represents the configuration for the specifiedBrowserVersion
.Methods inherited from class org.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration
getAll, getClassConfiguration, getClassConfiguration, getDomJavaScriptMappingFor, isCompatible
-
Field Details
-
CLASSES_
-
CONFIGURATION_MAP_
Cache of browser versions and their corresponding JavaScript configurations.
-
-
Constructor Details
-
ProxyAutoConfigJavaScriptConfiguration
Constructor is only called fromgetInstance(BrowserVersion)
which is synchronized.- Parameters:
browser
- the browser version to use
-
-
Method Details
-
getInstance
Returns the instance that represents the configuration for the specifiedBrowserVersion
. This method is synchronized to allow multi-threaded access to the JavaScript configuration.- Parameters:
browserVersion
- theBrowserVersion
- Returns:
- the instance for the specified
BrowserVersion
-
getClasses
- Specified by:
getClasses
in classAbstractJavaScriptConfiguration
- Returns:
- the classes configured by this configuration
-