planet.scribe.messaging
Class PublishMessage

java.lang.Object
  extended by planet.scribe.messaging.ScribeMessage
      extended by planet.scribe.messaging.PublishMessage
All Implemented Interfaces:
java.io.Serializable, Message

public class PublishMessage
extends ScribeMessage

The publish message.

Version:
$Id: PublishMessage.java,v 1.2 2004/02/06 16:29:56 jeffh Exp $
Author:
Alan Mislove
See Also:
Serialized Form

Field Summary
protected  ScribeContent content
           
 
Fields inherited from class planet.scribe.messaging.ScribeMessage
source, topic
 
Constructor Summary
PublishMessage(NodeHandle source, Topic topic, ScribeContent content)
           
 
Method Summary
 ScribeContent getContent()
          Returns the content
 java.lang.String toString()
           
 
Methods inherited from class planet.scribe.messaging.ScribeMessage
getSource, getTopic, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

content

protected ScribeContent content
Constructor Detail

PublishMessage

public PublishMessage(NodeHandle source,
                      Topic topic,
                      ScribeContent content)
Parameters:
source - The source address
topic - Message topic.
content - Message content.
Method Detail

getContent

public ScribeContent getContent()
Returns the content

Returns:
The content

toString

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