org.keel.comm
Class ModelRequestMessage
java.lang.Object
org.keel.comm.ModelRequestMessage
- All Implemented Interfaces:
- KeelRequest, java.io.Serializable
- public class ModelRequestMessage
- extends java.lang.Object
- implements KeelRequest, java.io.Serializable
- See Also:
- Serialized Form
| Method Summary |
KeelRequest |
deserialize(byte[] bytes)
|
java.lang.Object |
getAttribute(java.lang.String key)
|
java.util.Map |
getAttributes()
|
java.lang.String |
getModel()
Return the name of the model currently being requested |
java.lang.Object |
getParameter(java.lang.String paramKey)
|
java.util.Map |
getParameters()
|
byte[] |
serialize()
|
void |
setAttribute(java.lang.String key, java.lang.Object value)
Set the value of an attribute of this response |
void |
setModel(java.lang.String modelName)
The name of the model and the state allow us to determine the actual Java class that is going to be invoked, and how we're going to communicate with it |
void |
setParameter(java.lang.String paramKey, java.lang.Object param)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
params
private java.util.Map params
-
attributes
private java.util.Map attributes
-
myModel
private java.lang.String myModel
-
ModelRequestMessage
public ModelRequestMessage()
getParameter
public java.lang.Object getParameter(java.lang.String paramKey)
-
- Specified by:
getParameter in interface KeelRequest
-
getModel
public java.lang.String getModel()
- Description copied from interface:
KeelRequest
-
Return the name of the model currently being requested
-
- Specified by:
getModel in interface KeelRequest
-
getParameters
public java.util.Map getParameters()
-
- Specified by:
getParameters in interface KeelRequest
-
setParameter
public void setParameter(java.lang.String paramKey,
java.lang.Object param)
-
- Specified by:
setParameter in interface KeelRequest
-
setModel
public void setModel(java.lang.String modelName)
-
The name of the model and the state allow us to determine the actual Java class that is going to be invoked, and how we're going to communicate with it
-
- Specified by:
setModel in interface KeelRequest
-
getAttribute
public java.lang.Object getAttribute(java.lang.String key)
-
- Specified by:
getAttribute in interface KeelRequest
-
getAttributes
public java.util.Map getAttributes()
-
- Specified by:
getAttributes in interface KeelRequest
-
setAttribute
public void setAttribute(java.lang.String key,
java.lang.Object value)
- Description copied from interface:
KeelRequest
-
Set the value of an attribute of this response
-
- Specified by:
setAttribute in interface KeelRequest
-
serialize
public byte[] serialize()
throws java.io.IOException
-
- Specified by:
serialize in interface KeelRequest
-
- Throws:
java.io.IOException
deserialize
public KeelRequest deserialize(byte[] bytes)
throws java.io.IOException
-
- Specified by:
deserialize in interface KeelRequest
-
- Throws:
java.io.IOException
Please see keelframework.org for information about new Keel releases.