Package edu.uiuc.ncsa.sas.thing.action
Class InvokeAction
- java.lang.Object
-
- edu.uiuc.ncsa.sas.thing.Thing
-
- edu.uiuc.ncsa.sas.thing.action.Action
-
- edu.uiuc.ncsa.sas.thing.action.InvokeAction
-
- All Implemented Interfaces:
SASConstants
public class InvokeAction extends Action
Invoke a specific method in theExecutable
implementation. This is to allow for back channel communication, soExecutable.execute(Action)
is the main entry point. An example would be QDL, where execute is used to simply forward the user's input to the interpreter, but invoke would call a workplace function for, e.g. populating the auto complete feature at startup.Created by Jeff Gaynor
on 8/20/22 at 11:04 PM
-
-
Field Summary
-
Fields inherited from interface edu.uiuc.ncsa.sas.SASConstants
ACTION_EXECUTE, ACTION_INVOKE, ACTION_LOGOFF, ACTION_LOGON, ACTION_NEW_KEY, CLIENT_ID_HEAD, HEADER_SESSION_ID, KEYS_ACTION, KEYS_ARGUMENT, KEYS_COMMENT, KEYS_EXECUTABLE_NAME, KEYS_INTERNAL_ID, KEYS_METHOD, KEYS_PROMPT, KEYS_SAS, KEYS_STATE, KEYS_SUBJECT, KEYS_SUBJECT_ID, KEYS_SUBJECT_SESSION_ID, KEYS_TYPE, REQUEST_TYPE, RESPONSE_CONTENT, RESPONSE_MESSAGE, RESPONSE_PROMPT, RESPONSE_SESSION_ID, RESPONSE_STATUS, RESPONSE_STATUS_ERROR, RESPONSE_STATUS_OK, RESPONSE_SYMMETRIC_KEY, RESPONSE_TYPE, RESPONSE_TYPE_ERROR, RESPONSE_TYPE_LOGOFF, RESPONSE_TYPE_LOGON, RESPONSE_TYPE_NEW_KEY, RESPONSE_TYPE_OUTPUT, RESPONSE_TYPE_PROMPT
-
-
Constructor Summary
Constructors Constructor Description InvokeAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(net.sf.json.JSONObject json)
net.sf.json.JSONArray
getArgs()
String
getName()
net.sf.json.JSONObject
serialize()
Typically this is called by theClient
during POSTvoid
setArgs(net.sf.json.JSONArray args)
void
setName(String name)
-
Methods inherited from class edu.uiuc.ncsa.sas.thing.action.Action
getComment, getId, getState, setComment, setId, setState, toString
-
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getArgs
public net.sf.json.JSONArray getArgs()
-
setArgs
public void setArgs(net.sf.json.JSONArray args)
-
serialize
public net.sf.json.JSONObject serialize()
Description copied from class:Action
Typically this is called by theClient
during POST
-
deserialize
public void deserialize(net.sf.json.JSONObject json)
- Overrides:
deserialize
in classAction
-
-