org.objectweb.proactive.core.body.reply
Class ReplyImpl

java.lang.Object
  |
  +--org.objectweb.proactive.core.body.message.MessageImpl
        |
        +--org.objectweb.proactive.core.body.reply.ReplyImpl
All Implemented Interfaces:
Message, Reply, java.io.Serializable

public class ReplyImpl
extends MessageImpl
implements Reply, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  byte[][] encryptedResult
          the encrypted result
protected  ProActiveSecurityManager psm
           
protected  java.lang.Object result
          The hypothetic result
protected  long sessionID
           
 
Fields inherited from class org.objectweb.proactive.core.body.message.MessageImpl
ciphered, isOneWay, methodName, sequenceNumber, sourceID, timeStamp
 
Constructor Summary
ReplyImpl(UniqueID senderID, long sequenceNumber, java.lang.String methodName, java.lang.Object result, ProActiveSecurityManager psm)
           
 
Method Summary
 boolean decrypt(ProActiveSecurityManager psm)
           
 java.lang.Object getResult()
           
 long getSessionId()
           
 boolean isCiphered()
           
 void send(UniversalBody destinationBody)
          Sends this reply to the body destination
 
Methods inherited from class org.objectweb.proactive.core.body.message.MessageImpl
getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, isOneWay, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.proactive.core.body.message.Message
getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, isOneWay
 

Field Detail

result

protected java.lang.Object result
The hypothetic result


encryptedResult

protected byte[][] encryptedResult
the encrypted result


sessionID

protected long sessionID

psm

protected transient ProActiveSecurityManager psm
Constructor Detail

ReplyImpl

public ReplyImpl(UniqueID senderID,
                 long sequenceNumber,
                 java.lang.String methodName,
                 java.lang.Object result,
                 ProActiveSecurityManager psm)
Method Detail

getResult

public java.lang.Object getResult()
Specified by:
getResult in interface Reply

send

public void send(UniversalBody destinationBody)
          throws java.io.IOException
Description copied from interface: Reply
Sends this reply to the body destination

Specified by:
send in interface Reply
Parameters:
destinationBody - the body destination of this reply
Throws:
java.io.IOException - if the reply fails to be sent

isCiphered

public boolean isCiphered()
Specified by:
isCiphered in interface Reply

decrypt

public boolean decrypt(ProActiveSecurityManager psm)
                throws RenegotiateSessionException
Specified by:
decrypt in interface Reply
RenegotiateSessionException

getSessionId

public long getSessionId()
Specified by:
getSessionId in interface Reply


Copyright © April 2004 INRIA All Rights Reserved.