infoservice.agreement.multicast.messages
Class RejectMessage

java.lang.Object
  extended by infoservice.agreement.multicast.messages.AMessage
      extended by infoservice.agreement.multicast.messages.RejectMessage
All Implemented Interfaces:
IDistributable, IAgreementMessage

public class RejectMessage
extends AMessage


Field Summary
 
Fields inherited from class infoservice.agreement.multicast.messages.AMessage
m_consensusId, m_initiatorsId, m_lastCommonRandom, m_messageType, m_proposal, m_senderId, m_signatureOk, m_xmlNode
 
Fields inherited from interface anon.infoservice.IDistributable
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING
 
Constructor Summary
RejectMessage(InitMessage a_msg, java.lang.String a_senderId, java.lang.String a_lastCommonRandom)
          Creates a RejectMessage.
 
Method Summary
protected  void appendCustomNodes(org.w3c.dom.Document a_doc, org.w3c.dom.Node a_rootElem)
          Subclasses can add some extra nodes into the xml representation of this message by implementing this method
 
Methods inherited from class infoservice.agreement.multicast.messages.AMessage
getConsensusId, getHashKey, getId, getInitiatorsId, getLastCommonRandom, getMessageType, getPostData, getPostEncoding, getPostFile, getProposal, getSenderId, isSignatureOK, setConsensusId, setLastCommonRandom, setProposal, setSignatureOk, setXmlDocument, toString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RejectMessage

public RejectMessage(InitMessage a_msg,
                     java.lang.String a_senderId,
                     java.lang.String a_lastCommonRandom)
Creates a RejectMessage. An InitMessage may be rejected if its last commonly known random (i.e. round identifier) is not correct.

Parameters:
a_msg - The InitMessage to be rejected
a_senderId - The id of the rejecting InfoService
a_lastCommonRandom - The real last commonly known random
Method Detail

appendCustomNodes

protected void appendCustomNodes(org.w3c.dom.Document a_doc,
                                 org.w3c.dom.Node a_rootElem)
Description copied from class: AMessage
Subclasses can add some extra nodes into the xml representation of this message by implementing this method

Specified by:
appendCustomNodes in class AMessage
Parameters:
a_doc - The owner document
a_rootElem - The node to which the extra nodes should be added