org.nuxeo.runtime.scripting
Class ScriptingClient
java.lang.Object
org.nuxeo.runtime.scripting.ScriptingClient
public class ScriptingClient
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptingClient
public ScriptingClient(java.lang.String host,
int port)
throws java.lang.Exception
- Throws:
java.lang.Exception
getServer
public ScriptingServer getServer()
loadScript
public RemoteScript loadScript(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
loadScript
public RemoteScript loadScript(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
loadScript
public RemoteScript loadScript(java.lang.String name,
java.lang.String content)
loadScript
public RemoteScript loadScript(java.lang.String name,
java.io.Reader reader)
throws java.io.IOException
- Throws:
java.io.IOException
setScriptContext
public void setScriptContext(javax.script.ScriptContext ctx)
getScriptContext
public javax.script.ScriptContext getScriptContext()
main
public static void main(java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.