Package g4ds :: Module messagewrapper
[show private | hide private]
[frames | no frames]

Module g4ds.messagewrapper

Manages all issues wrapping / unwrapping (XML) messages.

Grid for Digital Security (G4DS)

All functionality is encapsulated in the class MessageWrapper. Get the instance with the function of this module getMessageWrapper. (Singleton)

Author: Michael Pilgermann

Contact: mailto:mpilgerm@glam.ac.uk

License: GPL (General Public License)

Classes
ControlMessageWrapper Does exactly the same job as MessageWrapper; just for structuring purposes and extracted class for messages sent as control messages.
GenericWrapper Wrapper for generic functionality.
MessageWrapper Integrates all functions for wrapping and unwrapping data with XML elements.
PolicyFileWrapper Parses permission policy files.
RoutingTableWrapper Encodes / decodes routing table into xml.

Function Summary
ControlMessageWrapper getControlMessageWrapper()
Singleton implementation.
ControlMessageWrapper getGenericWrapper()
Singleton implementation.
MessageWrapper getMessageWrapper()
Singleton implementation.
PolicyFileWrapper getPolicyFileWrapper()
Singleton implementation.
RoutingTableWrapper getRoutingTableWrapper()
Singleton implementation.

Variable Summary
int CDATA_DEPTH: CDATA replacement is supported for nested CDATA section.
String REPLACE_CLOSING_CDATA: String for replacement of CDATA keywords; see GenericWrapper._replaceCdata for more details
String REPLACE_OPENING_CDATA: String for replacement of CDATA keywords; see GenericWrapper._replaceCdata for more details

Function Details

getControlMessageWrapper()

Singleton implementation.
Returns:
The instance for the control message wrapper class
           (type=ControlMessageWrapper)

getGenericWrapper()

Singleton implementation.
Returns:
The instance for the control message wrapper class
           (type=ControlMessageWrapper)

getMessageWrapper()

Singleton implementation.
Returns:
The instance for the message class
           (type=MessageWrapper)

getPolicyFileWrapper()

Singleton implementation.
Returns:
The instance for the polcity file wrapper class
           (type=PolicyFileWrapper)

getRoutingTableWrapper()

Singleton implementation.
Returns:
The instance for the routing table wrapper class
           (type=RoutingTableWrapper)

Variable Details

CDATA_DEPTH

CDATA replacement is supported for nested CDATA section. This indicates how deeply shall be checken. See GenericWrapper._replaceCdata for more details
Type:
int
Value:
20                                                                    

REPLACE_CLOSING_CDATA

String for replacement of CDATA keywords; see GenericWrapper._replaceCdata for more details
Type:
String
Value:
'@@g4dscdataclose@@'                                                   

REPLACE_OPENING_CDATA

String for replacement of CDATA keywords; see GenericWrapper._replaceCdata for more details
Type:
String
Value:
'@@g4dscdataopen@@'                                                    

Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 http://epydoc.sf.net