public class ScriptingUtil
extends Object
Constructor and Description |
---|
ScriptingUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache(String language) |
static ScriptingExecutor |
createScriptingExecutor(String language,
boolean executeInSeparateThread) |
static Map<String,Object> |
eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String language,
String script) |
static Map<String,Object> |
eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String language,
String script,
String... servletContextNames)
Deprecated.
As of Wilberforce (7.0.x), replaced by
eval(Set, Map,
Set, String, String) |
static void |
exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script) |
static void |
exec(Set<String> allowedClasses,
Map<String,Object> inputObjects,
String language,
String script,
String... servletContextNames)
Deprecated.
As of Wilberforce (7.0.x), replaced by
exec(Set, Map,
String, String) |
static Scripting |
getScripting()
Deprecated.
As of Judson (7.1.x), replaced by
_getScripting() |
static Set<String> |
getSupportedLanguages() |
public static void clearCache(String language) throws ScriptingException
ScriptingException
public static ScriptingExecutor createScriptingExecutor(String language, boolean executeInSeparateThread)
public static Map<String,Object> eval(Set<String> allowedClasses, Map<String,Object> inputObjects, Set<String> outputNames, String language, String script) throws ScriptingException
ScriptingException
@Deprecated public static Map<String,Object> eval(Set<String> allowedClasses, Map<String,Object> inputObjects, Set<String> outputNames, String language, String script, String... servletContextNames) throws ScriptingException
eval(Set, Map,
Set, String, String)
ScriptingException
public static void exec(Set<String> allowedClasses, Map<String,Object> inputObjects, String language, String script) throws ScriptingException
ScriptingException
@Deprecated public static void exec(Set<String> allowedClasses, Map<String,Object> inputObjects, String language, String script, String... servletContextNames) throws ScriptingException
exec(Set, Map,
String, String)
ScriptingException
@Deprecated public static Scripting getScripting()
_getScripting()
public static Set<String> getSupportedLanguages()