|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.electrotank.electroserver.plugins.utilities.EventResponse
This is the base class from which all event responses, like LoginResponse, are derived.
Constructor Summary | |
EventResponse(String message)
Creates a new EventResponse and passes in the return message. |
Method Summary | |
void |
addResponseVariable(String key,
String value)
Adds a single response variable to the response variable Map. |
String |
getMessage()
Gets the message that will be returned to the caller. |
Map |
getResponseVariables()
Gets a Map of the response variables for this event. |
void |
removeResponseVariable(String key)
Removes the specified response variable from the Map. |
void |
setMessage(String message)
Sets the message that will be returned to the caller. |
void |
setResponseVariables(Map responseVariables)
Sets the response variables with a Map . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EventResponse(String message)
message
- the message to return to the event caller.Method Detail |
public String getMessage()
public void setMessage(String message)
message
- the message to set.public Map getResponseVariables()
public void setResponseVariables(Map responseVariables)
Map
.
responseVariables
- a Map
containing the response variables.public void addResponseVariable(String key, String value)
key
- the key/name of the response variable.value
- the value of the response variable.public void removeResponseVariable(String key)
key
- the key/name of the response variable to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |