public class RhinoProperties extends Object
Rhino properties typically begins with "rhino." (properties) or "RHINO_" (env)
You can override this behaviour and implement a RhinoPropertiesLoader and register it
as service. If no loader was found, the configuration is read from these locations by default:
(the later config can override previous ones)
The config files are in UTF-8 format and all keys in this configuration are case-insensitive and dot/underscore-insensitive.
This means, "rhino.use_java_policy_security=true" is equvalent to "RHINO_USE_JAVA_POLICY_SECURITY=TRUE"
| Constructor and Description |
|---|
RhinoProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfig(Map<?,?> config)
Adds a config map.
|
Object |
get(String property)
Tries to find the property in the maps.
|
void |
loadDefaults()
Load properties from the default locations.
|
void |
loadFromClasspath(ClassLoader cl,
String location)
Loads the configuration from classpath.
|
void |
loadFromFile(File config)
Loads the configuration from the given file.
|
void |
loadFromResource(URL resource)
Loads the configuration from the given resource.
|
public void loadDefaults()
public void loadFromFile(File config)
public void loadFromClasspath(ClassLoader cl, String location)
public void loadFromResource(URL resource)
public void addConfig(Map<?,?> config)
Copyright © 2025 HtmlUnit. All rights reserved.