public class ScriptModes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Setting<java.util.List<java.lang.String>> |
CONTEXTS_ALLOWED_SETTING |
static Setting<java.util.List<java.lang.String>> |
TYPES_ALLOWED_SETTING |
Modifier and Type | Method and Description |
---|---|
boolean |
getScriptEnabled(java.lang.String lang,
ScriptType scriptType,
ScriptContext scriptContext)
Returns the script mode for a script of a certain written in a certain language,
of a certain type and executing as part of a specific operation/api.
|
java.lang.String |
toString() |
public static final Setting<java.util.List<java.lang.String>> TYPES_ALLOWED_SETTING
public static final Setting<java.util.List<java.lang.String>> CONTEXTS_ALLOWED_SETTING
public boolean getScriptEnabled(java.lang.String lang, ScriptType scriptType, ScriptContext scriptContext)
lang
- the language that the script is written inscriptType
- the type of the scriptscriptContext
- the operation that requires the execution of the scriptpublic java.lang.String toString()
toString
in class java.lang.Object