Keel 2.1RC2

org.keel.comm
Class ModelRequestMessage

java.lang.Object
  extended byorg.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

Field Summary
private  java.util.Map attributes
           
private  java.lang.String myModel
           
private  java.util.Map params
           
 
Constructor Summary
ModelRequestMessage()
           
 
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
 

Field Detail

params

private java.util.Map params

attributes

private java.util.Map attributes

myModel

private java.lang.String myModel
Constructor Detail

ModelRequestMessage

public ModelRequestMessage()
Method Detail

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

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.