| Package | Description |
|---|---|
| io.apigee.trireme.core | |
| io.apigee.trireme.core.internal |
| Modifier and Type | Method and Description |
|---|---|
Sandbox |
NodeScript.getSandbox() |
Sandbox |
NodeRuntime.getSandbox()
Return the sandbox used to limit script execution, or null if none was set
|
Sandbox |
NodeEnvironment.getSandbox() |
Sandbox |
Sandbox.setAllowJarLoading(boolean allowed)
Allow the use of the "trireme-support" module's "loadJars" method to load JAR files into the
currently-running script.
|
Sandbox |
Sandbox.setAsyncThreadPool(ExecutorService exec)
Set the Executor where any jobs can be run that require a separate thread pool.
|
Sandbox |
Sandbox.setClassLoaderSupplier(Sandbox.ClassLoaderSupplier classLoaderSupplier)
Allows specifying the Supplier that will return an instance of a ClassLoader
that will be used by the "trireme-support" module's "loadJars" method to load JAR files
into the currently-running script.
|
Sandbox |
Sandbox.setExtraClassShutter(org.mozilla.javascript.ClassShutter extraClassShutter)
Attach an extra
ClassShutter that can allow Trireme embedders the ability to expose
extra Java classes to JavaScript code. |
Sandbox |
Sandbox.setFilesystemRoot(String root)
Provide a "chroot"-like facility so that all filenames used by the "fs" module
(not all files used internally by
NodeRunner) must be treated as if the "root" is in a different location.
|
Sandbox |
Sandbox.setHideOSDetails(boolean obscure)
If set to true, hide the internal details returned by the "OS" package.
|
Sandbox |
Sandbox.setNetworkPolicy(NetworkPolicy policy)
Attach an object that will be called every time the process tries to open an outgoing network
connection or listen for incoming connections.
|
Sandbox |
Sandbox.setStderr(OutputStream s)
Set the stream that scripts should use for standard error output.
|
Sandbox |
Sandbox.setStdin(InputStream s)
Set the stream that scripts should use for standard input.
|
Sandbox |
Sandbox.setStdout(OutputStream s)
Set the stream that scripts should use for standard output.
|
Sandbox |
Sandbox.setSubprocessPolicy(SubprocessPolicy policy)
Attach an object that will be called every time the process tries to invoke a sub process, including
"node" itself.
|
Sandbox |
Sandbox.setWorkingDirectory(String wd)
Set the working directory of this script.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NodeScript.setSandbox(Sandbox box)
Set up a restricted environment.
|
NodeEnvironment |
NodeEnvironment.setSandbox(Sandbox box)
Set up a restricted environment.
|
| Constructor and Description |
|---|
Sandbox(Sandbox parent)
Create a new sandbox that will copy the parameters from a parent.
|
| Modifier and Type | Method and Description |
|---|---|
Sandbox |
ScriptRunner.getSandbox() |
| Constructor and Description |
|---|
ScriptRunner(NodeScript so,
NodeEnvironment env,
Sandbox sandbox,
File scriptFile,
String[] args) |
ScriptRunner(NodeScript so,
NodeEnvironment env,
Sandbox sandbox,
String[] args,
boolean forceRepl) |
ScriptRunner(NodeScript so,
NodeEnvironment env,
Sandbox sandbox,
String scriptName,
String script,
String[] args) |
Copyright © 2016 Apigee Corporation. All Rights Reserved.