org.nuxeo.runtime.scripting
Class ScriptingClient
java.lang.Object
org.nuxeo.runtime.scripting.ScriptingClient
public class ScriptingClient
- extends Object
- Author:
- Bogdan Stefanescu
ScriptingClient
public ScriptingClient(String host,
int port)
throws Exception
- Throws:
Exception
getServer
public ScriptingServer getServer()
loadScript
public RemoteScript loadScript(File file)
throws IOException
- Throws:
IOException
loadScript
public RemoteScript loadScript(URL url)
throws IOException
- Throws:
IOException
loadScript
public RemoteScript loadScript(String name,
String content)
loadScript
public RemoteScript loadScript(String name,
Reader reader)
throws IOException
- Throws:
IOException
setScriptContext
public void setScriptContext(ScriptContext ctx)
getScriptContext
public ScriptContext getScriptContext()
main
public static void main(String[] args)
- Runs a remote script. Example of usage:
java -cp ... org.nuxeo.runtime.scripting.ScriptingClient localhost:62474 test.js
- Parameters:
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 host
Copyright © 2011 Nuxeo SAS. All Rights Reserved.