com.anwrt.commons.protocol.model
Class AwtMessage

java.lang.Object
  extended by com.anwrt.commons.protocol.model.DAObject
      extended by com.anwrt.commons.protocol.model.AwtMessage

public class AwtMessage
extends DAObject

AwtMessage is the exchanged message between embedded application and the M2M server.
creation : 10 sept. 2008

Author:
David FRANCOIS

Field Summary
static int CORRELATED_DATA_MESSAGE
          Message type 5, body is a map of correlated data
static int DATA_MESSAGE
          Message type 1, body must be a HashMap
static int EVENT_MESSAGE
          Message type 3, body must be a TimeStampedData containing AwtEvents
static int RESPONSE_MESSAGE
          Message type 4, body, must be a AwtResponse
static int SERVER_COMMAND
          Message type 2, body must be a AwtCmmand
 
Constructor Summary
AwtMessage()
          Default Constructor
 
Method Summary
 java.lang.Object getBody()
           
 java.lang.String getPath()
           
 java.lang.Integer getTicketId()
           
 java.lang.Integer getType()
           
 void setBody(java.lang.Object body)
           
 void setPath(java.lang.String path)
           
 void setTicketId(java.lang.Integer id)
           
 void setType(java.lang.Integer type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_MESSAGE

public static final int DATA_MESSAGE
Message type 1, body must be a HashMap

See Also:
Constant Field Values

SERVER_COMMAND

public static final int SERVER_COMMAND
Message type 2, body must be a AwtCmmand

See Also:
Constant Field Values

EVENT_MESSAGE

public static final int EVENT_MESSAGE
Message type 3, body must be a TimeStampedData containing AwtEvents

See Also:
Constant Field Values

RESPONSE_MESSAGE

public static final int RESPONSE_MESSAGE
Message type 4, body, must be a AwtResponse

See Also:
Constant Field Values

CORRELATED_DATA_MESSAGE

public static final int CORRELATED_DATA_MESSAGE
Message type 5, body is a map of correlated data

See Also:
Constant Field Values
Constructor Detail

AwtMessage

public AwtMessage()
Default Constructor

Method Detail

getType

public java.lang.Integer getType()

getPath

public java.lang.String getPath()

getTicketId

public java.lang.Integer getTicketId()

getBody

public java.lang.Object getBody()

setType

public void setType(java.lang.Integer type)

setTicketId

public void setTicketId(java.lang.Integer id)

setPath

public void setPath(java.lang.String path)

setBody

public void setBody(java.lang.Object body)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object