kaos.cougaar.clik.comm
Class SAFEMessage

java.lang.Object
  extended by Message
      extended by kaos.cougaar.clik.comm.SAFEMessage
All Implemented Interfaces:
java.io.Serializable

public class SAFEMessage
extends Message
implements java.io.Serializable

A SAFEMessage extends Cougaar's base Message class to enable sending a single serializable object inside the Message


Constructor Summary
SAFEMessage()
           
SAFEMessage(MessageAddress s, MessageAddress d, java.io.Serializable contents)
           
 
Method Summary
 java.lang.Object getContents()
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAFEMessage

public SAFEMessage()

SAFEMessage

public SAFEMessage(MessageAddress s,
                   MessageAddress d,
                   java.io.Serializable contents)
Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getContents

public java.lang.Object getContents()