| Package | Description |
|---|---|
| delight.rhinosandox | |
| delight.rhinosandox.internal |
| Modifier and Type | Method and Description |
|---|---|
RhinoSandbox |
RhinoSandbox.allow(Class<?> clazz)
Will allow access to this class in Rhino scripts.
|
static RhinoSandbox |
RhinoSandboxes.create() |
RhinoSandbox |
RhinoSandbox.inject(Class<org.mozilla.javascript.ScriptableObject> clazz)
Will make this class available to instantiate in Rhino scripts.
|
RhinoSandbox |
RhinoSandbox.inject(String variableName,
Object object)
Will add a global variable available to all scripts executed with this sandbox.
|
RhinoSandbox |
RhinoSandbox.setInstructionLimit(int limit)
Sets the maximum instructions allowed for script execution.
|
RhinoSandbox |
RhinoSandbox.setMaxDuration(int limitInMs)
Sets the maximum allowed duration for scripts.
|
RhinoSandbox |
RhinoSandbox.setUseSafeStandardObjects(boolean useSafeStandardObject)
If .initSafeStandardObjects should be used.
|
RhinoSandbox |
RhinoSandbox.setUseSealedScope(boolean value)
If the global scope should be sealed (default: true).
|
| Modifier and Type | Class and Description |
|---|---|
class |
RhinoSandboxImpl |
| Modifier and Type | Method and Description |
|---|---|
RhinoSandbox |
RhinoSandboxImpl.allow(Class<?> clazz) |
RhinoSandbox |
RhinoSandboxImpl.inject(Class<org.mozilla.javascript.ScriptableObject> clazz) |
RhinoSandbox |
RhinoSandboxImpl.inject(String variableName,
Object object) |
RhinoSandbox |
RhinoSandboxImpl.setInstructionLimit(int limit) |
RhinoSandbox |
RhinoSandboxImpl.setMaxDuration(int limitInMs)
Sets the maximum allowed duration for scripts.
|
RhinoSandbox |
RhinoSandboxImpl.setUseSafeStandardObjects(boolean useSafeStandardObjects) |
RhinoSandbox |
RhinoSandboxImpl.setUseSealedScope(boolean value) |
Copyright © 2018. All rights reserved.