Package ioids :: Module messagewrapper :: Class IoidsMessageWrapper
[hide private]
[frames] | no frames]

Class IoidsMessageWrapper

source code

 soapsytools.messagewrapper.GenericWrapper --+    
                                             |    
soapsytools.messagewrapper.EventMessageWrapper --+
                                                 |
                                                IoidsMessageWrapper
Known Subclasses:
ioids_extension.DBIOIDS_MessageWrapper, snortdb_extension.SnortDBMessageWrapper

Wrapper for messages to be exchanged between IOIDS nodes.

Instance Methods [hide private]
 
__init__(self)
Yet empty constructor.
source code
 
_assembleAdditionalDataForIdmefFromEvent(self, event, parentNode, doc) source code
 
_assembleExtension(self, extension, parentNode, doc) source code
 
_assembleIoidsEventSubMessage(self, ioidsEvent, parentNode, doc)
Assemble the tree underneath a IOIDS event (no relations).
source code
 
_assembleRelatedEvent(self, relation, parentNode, doc) source code
 
_unwrapSomething(self, domNode) source code
 
assembleIoidsMessage(self, ioidsEvent, relatedEvents=[], doc=None, parentNode=None)
Assembled the XML message for the given ioids event.
source code
List of Couples
parseKnowledgeReplyMessage(self, xmlString)
Returns: List of full IOIDS events - couples in form (ioidsEvent | relationList)
source code
List of List
parseKnowledgeRequestMessage(self, xmlString)
Returns: Conditions in List / List format
source code
 
unwrapFullIoidsEventMessage(self, data, domNode=None) source code
 
wrapKnowledgeReplyMessage(self, fullIoidsEvents) source code
 
wrapKnowledgeRequestMessage(self, conditions) source code

Inherited from soapsytools.messagewrapper.EventMessageWrapper (private): _assembleIdmefFromEvent, _assembleNode, _assemblePlainEvent, _assembleProcess, _getRelationInTree, _getValueInTree, _wrapAnyItemToDom

Inherited from soapsytools.messagewrapper.GenericWrapper (private): _toXml

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Yet empty constructor.
Overrides: soapsytools.messagewrapper.GenericWrapper.__init__

assembleIoidsMessage(self, ioidsEvent, relatedEvents=[], doc=None, parentNode=None)

source code 
Assembled the XML message for the given ioids event.
Parameters:
  • ioidsEvent (List of [String, Dict, List]) - Information of the IOIDS event in list / dict format (name, attrbutes, relations)
  • relatedEvents (List of Couples) - Information about related events for the given IOIDS event. Each relation as couple (type / pure event / extension information)

parseKnowledgeReplyMessage(self, xmlString)

source code 
Returns: List of Couples
List of full IOIDS events - couples in form (ioidsEvent | relationList)

parseKnowledgeRequestMessage(self, xmlString)

source code 
Returns: List of List
Conditions in List / List format

wrapKnowledgeReplyMessage(self, fullIoidsEvents)

source code 
Parameters:
  • fullIoidsEvents (List of Couples) - List of IOIDS events to include in the reply (full events including relations - optionally) - each entry as a couple (ioidsEvent, relationsList)