kaos.cougaar.clik.comm
Class SAFERelay
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SAFERelay
public SAFERelay(UID uid,
MessageAddress source,
MessageAddress target,
java.lang.Object content,
java.lang.Object response)
- Parameters:
content
- initial contentresponse
- initial response
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