Home | Trees | Index | Help |
---|
Package beepy :: Package profiles :: Module mgmtcreator :: Class Creator |
|
Method Summary | |
---|---|
A newly created creator is basically empty. | |
We have to specifically unlink() the doc DOM else Python may not garbage collect it due to circular references. | |
Creates a <close> message. | |
Creates an <error> message populated with the supplied parameters. | |
Create a <greeting/> message object with any parameters it might need. | |
Creates an <ok> message, used for positive replies. | |
createStartMessage takes a profileList, different from createGreetingMessage. | |
Creates a positive reply message to a start message, which will be a <profile> message. | |
A convenience method to print messages without leading <?xml version="1.0" ?> type strings in them |
Method Details |
---|
__init__(self)
A newly created creator is basically empty.
|
__del__(self)
We have to specifically unlink() the doc DOM else Python may not
garbage collect it due to circular references.
|
createCloseMessage(self, number, code, text=None, xmlLang=None)Creates a <close> message.
|
createErrorMessage(self, code, text=None, xmlLang=None)Creates an <error> message populated with the supplied parameters.
|
createGreetingMessage(self, profileURIList=None, features=None, localize=None)Create a <greeting/> message object with any parameters it might need.
|
createOKMessage(self)Creates an <ok> message, used for positive replies. |
createStartMessage(self, number, profileList, serverName=None)createStartMessage takes a profileList, different from createGreetingMessage. It is a list of profile descriptions. A profile description consists of a list thus:['profileURI', 'encoding', chardata] profileURI is a string of the URI for this profile. eg: http://iana.org/beep/SASL/OTP encoding is an optional encoding type specifying if the chardata within the profile element is a base64-encoded string chardata is up to 4k octets of initialization message given to the channel.
|
createStartReplyMessage(self, profileURI)Creates a positive reply message to a start message, which will be a <profile> message.
|
messageToString(self, DOMdocument)A convenience method to print messages without leading <?xml version="1.0" ?> type strings in them |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Thu Sep 30 14:39:25 2004 | http://epydoc.sf.net |