kaos.cougaar.clik.comm
Class SAFERelay

java.lang.Object
  extended by kaos.cougaar.clik.comm.SAFERelay

public class SAFERelay
extends java.lang.Object

This is an example of a simple relay object.


Constructor Summary
SAFERelay(UID uid, MessageAddress source, MessageAddress target, java.lang.Object content, java.lang.Object response)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getContent()
           
 java.lang.Object getResponse()
           
 MessageAddress getSource()
           
 MessageAddress getTarget()
           
 TargetFactory getTargetFactory()
           
 java.util.Set getTargets()
           
 UID getUID()
           
 int hashCode()
           
 void setSource(MessageAddress source)
           
 void setTarget(MessageAddress target)
           
 void setUID(UID uid)
           
 java.lang.String toString()
           
 int updateContent(java.lang.Object content, Token token)
           
 int updateResponse(MessageAddress t, java.lang.Object response)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SAFERelay

public SAFERelay(UID uid,
                 MessageAddress source,
                 MessageAddress target,
                 java.lang.Object content,
                 java.lang.Object response)
Parameters:
content - initial content
response - initial response
Method Detail

setUID

public void setUID(UID uid)

getUID

public UID getUID()

setTarget

public void setTarget(MessageAddress target)

getTargets

public java.util.Set getTargets()

getTarget

public MessageAddress getTarget()

getContent

public java.lang.Object getContent()

getTargetFactory

public TargetFactory getTargetFactory()

updateResponse

public int updateResponse(MessageAddress t,
                          java.lang.Object response)

setSource

public void setSource(MessageAddress source)

getSource

public MessageAddress getSource()

getResponse

public java.lang.Object getResponse()

updateContent

public int updateContent(java.lang.Object content,
                         Token token)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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