|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infoservice.agreement.paxos.integration.InfoServiceMessageFactory
public class InfoServiceMessageFactory
Constructor Summary | |
---|---|
InfoServiceMessageFactory()
|
Method Summary | |
---|---|
private static boolean |
checkOriginator(org.w3c.dom.Node a_node,
java.lang.String a_sender)
Checks the originator of the message, i.e. |
private static boolean |
checkProofs(CollectMessage message)
Checks the signatures of the attached FreezeProofMessages |
private static FreezeProofMessage |
createFreezeProof(org.w3c.dom.Node rootNode)
Creates a FreezeProofMessage off the given node |
static PaxosMessage |
decode(byte[] a_data)
Decodes the given POST data and creates a PaxosMessage off it |
private static boolean |
isSane(org.w3c.dom.Document a_doc,
PaxosMessage a_msg)
Checks if the sender of the message also signed the message, i.e. |
private static PaxosMessage |
parseDocument(org.w3c.dom.Document a_doc)
Parses the given document to a PaxosMessage |
private static void |
parseProofs(org.w3c.dom.Node rootNode,
CollectMessage message)
Parse the given node for FreezeProofMessages and add them to the given CollectMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfoServiceMessageFactory()
Method Detail |
---|
public static PaxosMessage decode(byte[] a_data)
a_data
- The POST data to be decoded
private static PaxosMessage parseDocument(org.w3c.dom.Document a_doc)
a_doc
-
private static void parseProofs(org.w3c.dom.Node rootNode, CollectMessage message)
rootNode
- The node containing the proofsmessage
- The CollectMessage to which to add the FreezeProofsprivate static FreezeProofMessage createFreezeProof(org.w3c.dom.Node rootNode)
rootNode
- The node to be parsed
private static boolean isSane(org.w3c.dom.Document a_doc, PaxosMessage a_msg)
a_doc
- a_msg
-
private static boolean checkProofs(CollectMessage message)
message
-
private static boolean checkOriginator(org.w3c.dom.Node a_node, java.lang.String a_sender)
a_node
- a_sender
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |