Package step.plugins.js223.handler
Class ScriptHandler
- java.lang.Object
-
- step.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
- step.functions.handler.JsonBasedFunctionHandler
-
- step.plugins.js223.handler.ScriptHandler
-
public class ScriptHandler extends JsonBasedFunctionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_HANDLER_FILE
static String
LIBRARIES_FILE
protected ScriptEngineManager
manager
static String
PLUGIN_LIBRARIES_FILE
static String
SCRIPT_FILE
static String
SCRIPT_LANGUAGE
static Map<String,String>
scriptLangugaeMap
-
Fields inherited from class step.functions.handler.AbstractFunctionHandler
EXECUTION_CONTEXT_KEY, FORKED_BRANCH, PARENTREPORTID_KEY, STEP_NODE_KEY
-
-
Constructor Summary
Constructors Constructor Description ScriptHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description step.functions.io.Output<javax.json.JsonObject>
handle(step.functions.io.Input<javax.json.JsonObject> input)
-
Methods inherited from class step.functions.handler.JsonBasedFunctionHandler
getInputPayloadClass, getOutputPayloadClass
-
Methods inherited from class step.functions.handler.AbstractFunctionHandler
delegate, delegate, getCurrentContext, getCurrentContext, getFileVersionId, getFunctionHandlerFactory, getProperties, getTokenReservationSession, getTokenSession, initialize, mergeAllProperties, pushLocalApplicationContext, pushLocalApplicationContext, pushLocalFolderApplicationContext, pushLocalFolderApplicationContext, pushRemoteApplicationContext, pushRemoteApplicationContext, retrieveFileVersion, runInContext, runInContext, setApplicationContextBuilder, setFileManagerClient, setFunctionHandlerFactory, setProperties, setTokenReservationSession, setTokenSession
-
-
-
-
Field Detail
-
SCRIPT_LANGUAGE
public static final String SCRIPT_LANGUAGE
- See Also:
- Constant Field Values
-
SCRIPT_FILE
public static final String SCRIPT_FILE
- See Also:
- Constant Field Values
-
PLUGIN_LIBRARIES_FILE
public static final String PLUGIN_LIBRARIES_FILE
- See Also:
- Constant Field Values
-
LIBRARIES_FILE
public static final String LIBRARIES_FILE
- See Also:
- Constant Field Values
-
ERROR_HANDLER_FILE
public static final String ERROR_HANDLER_FILE
- See Also:
- Constant Field Values
-
manager
protected ScriptEngineManager manager
-
-
Method Detail
-
handle
public step.functions.io.Output<javax.json.JsonObject> handle(step.functions.io.Input<javax.json.JsonObject> input) throws Exception
- Specified by:
handle
in classAbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
- Throws:
Exception
-
-