org.nuxeo.runtime.scripting
Class ScriptingClient
java.lang.Object
org.nuxeo.runtime.scripting.ScriptingClient
public class ScriptingClient
- extends Object
- Author:
- Bogdan Stefanescu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(javax.script.ScriptContext ctx)
getScriptContext
public javax.script.ScriptContext getScriptContext()
main
public static void main(String[] args)
- Run 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 ? 2007 Nuxeo SAS. All Rights Reserved.