Class ScriptRunResponse
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.scripting.ScriptRunResponse
-
public class ScriptRunResponse extends Object
The response to aScriptRunRequest
. This contains the results of running the script with the objects keyed by name. The message is optional and may be the output of an error. The return code is from the engine and may be one of the RC_ values. A negative result denotes there was an error processing the request,RC_INTERNAL_ERROR
means that there was an actual error in the runtime engine itselfRC_SCRIPT_NOT_FOUND
means that the requested script was not found.-
RC_SCRIPT_ERROR
means that the script reported an error. RC_NOT_RUN
means that the request was not handled. E.g. the runtime engine could not startRC_OK
means everything ran fine.
Created by Jeff Gaynor
on 2/6/20 at 12:28 PM
-
-
Field Summary
Fields Modifier and Type Field Description static int
RC_INTERNAL_ERROR
static int
RC_NOT_RUN
static int
RC_OK
static int
RC_OK_NO_SCRIPTS
static int
RC_SCRIPT_ERROR
static int
RC_SCRIPT_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description ScriptRunResponse(String message, Map<String,Object> map, int rc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
int
getReturnCode()
Map<String,Object>
getReturnedValues()
-
-
-
Field Detail
-
RC_INTERNAL_ERROR
public static final int RC_INTERNAL_ERROR
- See Also:
- Constant Field Values
-
RC_SCRIPT_NOT_FOUND
public static final int RC_SCRIPT_NOT_FOUND
- See Also:
- Constant Field Values
-
RC_SCRIPT_ERROR
public static final int RC_SCRIPT_ERROR
- See Also:
- Constant Field Values
-
RC_NOT_RUN
public static final int RC_NOT_RUN
- See Also:
- Constant Field Values
-
RC_OK
public static final int RC_OK
- See Also:
- Constant Field Values
-
RC_OK_NO_SCRIPTS
public static final int RC_OK_NO_SCRIPTS
- See Also:
- Constant Field Values
-
-