ca.mcgill.cs.postina
Interface PostinaMessage

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
PostinaReliableScribeTransportMessage, PostinaScribeTransportMessage

public interface PostinaMessage
extends java.io.Serializable

The class PostinaMessage is the public representation of a message/publication. Applications using Postina do not create any PostinaMessages, they only submit a Serializable to Postina. However, the messages delivered to the application using Postina are always of type PostinaMessage

Version:
Oct 23, 2007
Author:
Dominik Zindel

Method Summary
 java.io.Serializable getContent()
          This method gets the Serializable representing the message that has actually been sent by the sender.
 PostinaID getFrom()
          This method gets the PostinaID identifying the sender/publisher of the message.
 int getPriority()
          This method gets the integer priority that is designed to be used by the application using Postina.
 PostinaTopic getTopic()
          This method gets the PostinaTopic assigned to this message.
 

Method Detail

getContent

java.io.Serializable getContent()
This method gets the Serializable representing the message that has actually been sent by the sender.

Returns:
The Serializable which is the message sent by the creator.

getFrom

PostinaID getFrom()
This method gets the PostinaID identifying the sender/publisher of the message.

Returns:
The PostinaID that identifies the author of the message.

getPriority

int getPriority()
This method gets the integer priority that is designed to be used by the application using Postina.

Returns:
The integer value representing the priority of the message.

getTopic

PostinaTopic getTopic()
This method gets the PostinaTopic assigned to this message.

Returns:
The PostinaTopic assigned to this message. null for direct (private) messages.