mx.udlap.kjProtocol.packets
Interface BasicKannelProtocolMessage

All Known Implementing Classes:
AckMessage, AdminKMessage, HeartBeatKMessage, SMSPacketMessage, WDPDatagramPacketMessage

public interface BasicKannelProtocolMessage

All kannel's messages classes, should implement this interface.

Author:
Oscar Medina Duarte

Method Summary
 byte[] getMessage()
          Gets the full message as an array of bytes as it would be sent over a TCP link.
 void setMessage(byte[] data)
          Sets the message data to a message class as it would have been received from a TCP link.Sets the message attribute of the BasicKannelProtocolMessage object
 

Method Detail

getMessage

public byte[] getMessage()
Gets the full message as an array of bytes as it would be sent over a TCP link.

Returns:
The message value

setMessage

public void setMessage(byte[] data)
                throws java.lang.Exception
Sets the message data to a message class as it would have been received from a TCP link.Sets the message attribute of the BasicKannelProtocolMessage object

Parameters:
data - The new message value
Throws:
java.lang.Exception