org.demac.transport
Interface TransportMessage

All Known Subinterfaces:
ReputationTransportMessage, SecureTransportMessage
All Known Implementing Classes:
QueueTransportMessage, ReputationTransportMessageImpl, SecureTransportMessageImpl, TransportMessageImpl

public interface TransportMessage

Interface representing messages which are sent and received by the org.demac.transport.TransportService. Sender, receiver, and the message itself are referenced by handles. The message body can contain arbitrary textual content.


Method Summary
 java.lang.String getMessageBody()
          Method to get the content of the message body.
 MessageHandle getMessageHandle()
          Method to get the unique org.demac.transport.MessageHandle of this message.
 DeviceHandle getReceiver()
          Method to get the unique org.demac.transport.DeviceHandle of the receiver of this message.
 DeviceHandle getSender()
          Method to get the unique org.demac.transport.DeviceHandle of the sender of this message.
 

Method Detail

getSender

DeviceHandle getSender()
Method to get the unique org.demac.transport.DeviceHandle of the sender of this message.

Returns:
the sender's handle

getReceiver

DeviceHandle getReceiver()
Method to get the unique org.demac.transport.DeviceHandle of the receiver of this message.

Returns:
the receiver's handle

getMessageBody

java.lang.String getMessageBody()
Method to get the content of the message body.

Returns:
the content of the message

getMessageHandle

MessageHandle getMessageHandle()
Method to get the unique org.demac.transport.MessageHandle of this message.

Returns:
the handle of this message