public class ScriptingClient extends Object
| Constructor and Description |
|---|
ScriptingClient(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
ScriptContext |
getScriptContext() |
ScriptingServer |
getServer() |
RemoteScript |
loadScript(File file) |
RemoteScript |
loadScript(String name,
Reader reader) |
RemoteScript |
loadScript(String name,
String content) |
RemoteScript |
loadScript(URL url) |
static void |
main(String[] args)
Runs a remote script.
|
void |
setScriptContext(ScriptContext ctx) |
public ScriptingServer getServer()
public RemoteScript loadScript(File file) throws IOException
IOExceptionpublic RemoteScript loadScript(URL url) throws IOException
IOExceptionpublic RemoteScript loadScript(String name, String content)
public RemoteScript loadScript(String name, Reader reader) throws IOException
IOExceptionpublic void setScriptContext(ScriptContext ctx)
public ScriptContext getScriptContext()
public static void main(String[] args)
java -cp ... org.nuxeo.runtime.scripting.ScriptingClient localhost:62474 test.js
args - a 2 length array containing on index 0 the nuxeo runtime host info
and on index 1 the script file path to execute on that hostCopyright © 2013 Nuxeo SA. All Rights Reserved.