public class BaseRequest
extends java.lang.Object
The "echo" property is a legacy property that will cause the original JSON string to be passed back to the client in the response, in addition to the regular function output.
| Constructor and Description |
|---|
BaseRequest() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.String key)
Forwarding method for getting a data item from the request
|
java.lang.String |
getCommand()
Get the request's command (function family)
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getData()
Get the function-specific input data
|
java.lang.String |
getFunction()
Get the function name within the command
|
java.lang.String |
getSessionId()
Get the user's session ID
|
boolean |
isEcho()
Get the echo property
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Forwarding method for adding a data item to the request
|
void |
setCommand(java.lang.String command)
Set the request's command (function family)
|
void |
setData(java.util.Hashtable<java.lang.String,java.lang.Object> data)
Set the function-specific input data
|
void |
setEcho(boolean echo)
Set the echo property
|
void |
setFunction(java.lang.String function)
Set the function name within the command
|
void |
setSessionId(java.lang.String sessionId)
Set the user's session ID
|
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
key - The item's keyvalue - The item's valuepublic java.lang.Object get(java.lang.String key)
key - The item's keypublic java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId - The session iDpublic java.lang.String getCommand()
public void setCommand(java.lang.String command)
command - The command for the requestpublic java.lang.String getFunction()
public void setFunction(java.lang.String function)
function - The function namepublic boolean isEcho()
public void setEcho(boolean echo)
echo - True if the request string is to be echoed back to the clientpublic java.util.Hashtable<java.lang.String,java.lang.Object> getData()
public void setData(java.util.Hashtable<java.lang.String,java.lang.Object> data)
data - The input data as a generic Hashtable object