ch.epfl.lpd.ids.serialization
Interface IMessage

All Superinterfaces:
Serializable
All Known Implementing Classes:
Message

public interface IMessage
extends Serializable

Specification of a message that will be sent between the clients and the server.

Author:
Sebastien Baehni

Method Summary
 byte[] getData()
          Method used to retrieve the data of the message.
 String getHeader()
          Method used to retrieve the header of the message.
 void setData(byte[] data)
          Method used to set the data of the message.
 void setHeader(String header)
          Method used to set the header of the message.
 

Method Detail

getHeader

String getHeader()
Method used to retrieve the header of the message.

Returns:
The header of the message.

getData

byte[] getData()
Method used to retrieve the data of the message.

Returns:
The data of the message.

setHeader

void setHeader(String header)
Method used to set the header of the message.

Parameters:
header - The header of the message.

setData

void setData(byte[] data)
Method used to set the data of the message.

Parameters:
data - The data of the message.