Home | Trees | Index | Help |
|
---|
Package g4ds :: Module messagehandler :: Class GlobalOutoingMessageHandler |
|
Handler for outgoing messages.
Two kinds of messages are distinguished; namely service messages and control messages. Service messages are messages traveling from the connected service (application) on this node to the same service on another node. Control message, however, are G4DS internal message for the purposes of configuring the G4DS parameters and keep data up-to-date on all sides.
Both kinds of messages service and control are finally wrapped into G4DS messages.
If you want to send a service message, use sendServiceMessage
.
If you want to send a control message, use sendControlMessage
.
sendG4dsMessage
should normally not be used
from the outside, it is used from the above two functions instead.
Method Summary | |
---|---|
Yet empty Constructor. | |
String
|
Assembles a G4DS control message with the given content and sends it off. |
String
|
Send a message using the given protocol. |
String
|
Assembles a G4DS service message with the given content and sends it off. |
Helper function for supporting the encryption of a message. |
Method Details |
---|
__init__(self)
Yet empty Constructor.
|
sendControlMessage(self, endpointid, subsystemid, subsystemname, message, refid=None)Assembles a G4DS control message with the given content and sends it off. In fact, themessagewrapper.MessageWrapper is used for
wrapping the given message into a valid G4DS service message.
Afterwards, the message is passed on to the function sendG4dsMessage for final delivery.
|
sendG4dsMessage(self, endpointid, message, refid=None)Send a message using the given protocol. The message is encyrpted first of all using the algorithm with the requested id. (In fact, for this matter the message is passed to the private function_handleSigningAndEncryption , which will
thereupon pass the request to the SecurityController and return the
result. The encrypted result is wrapped into a valid G4DS message using
the messagewrapper.MessageWrapper.wrapG4dsMessage
function. Finally, the result is passed to the routing engine, which
will send it off using the requested protocol.
|
sendServiceMessage(self, endpointid, serviceid, servicename, message, refid=None)Assembles a G4DS service message with the given content and sends it off. In fact, themessagewrapper.MessageWrapper is used for
wrapping the given message into a valid G4DS control message.
Afterwards, the message is passed on to the function sendG4dsMessage for final delivery.
|
_handleSigningAndEncryption(self, message, endpoint)Helper function for supporting the encryption of a message. The algorithm name is gained for the given algorithm id (from the AlgorithmManager inside the securitymanager module) and the message is encrypted using the SecurityController class in the securitycontroller module (of course using the given algorithm name). Afterwards, the message is passed on to themessagewrapper.MessageWrapper.wrapForEncryption
to make it a valid piece of encrypted information.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 | http://epydoc.sf.net |