Home | Trees | Index | Help |
---|
Package beepy :: Package profiles :: Module message :: Class Message |
|
See Also: beepmgmtprofile
Method Summary | |
---|---|
| |
In order to remove all references to a Message object we need to specifically unlink the XML document self.doc | |
Print the XML DOM out for debugging purposes. | |
If this is a close message, find the channel number that the close message refers to. | |
If this is an error message, get the error code from the message. | |
If this is an error message, get the error description from the message. | |
Returns the uri attribute of the first profile element found. | |
Finds all the uri attributes of any profile elements and places them in a sequence, which is returned. | |
If this is a start message, find the channel number that the start message refers to. | |
getStartProfileBlob() gets the contents of the CDATA element within a <start> message profile, which should be a <blob></blob> section to be passed to the profile. | |
Is this Message a close message? | |
Is this Message an error message? | |
Is this Message a greeting message? | |
Is this Message an ok message? | |
Messages of type profile are replies to a channel start MSG that was successful. | |
Is this Message a greeting message? | |
This is a hack because I can't be bothered integrating a validating XML parser into the core just yet. |
Method Details |
---|
__init__(self,
type,
doc)
|
__del__(self)
In order to remove all references to a Message object we need to
specifically unlink the XML document self.doc
|
__str__(self)
Print the XML DOM out for debugging purposes.
|
getCloseChannelNum(self)If this is a close message, find the channel number that the close message refers to.
|
getErrorCode(self)If this is an error message, get the error code from the message.
|
getErrorDescription(self)If this is an error message, get the error description from the message.
|
getProfileURI(self)Returns the uri attribute of the first profile element found.
|
getProfileURIList(self)Finds all the uri attributes of any profile elements and places them in a sequence, which is returned.
|
getStartChannelNum(self)If this is a start message, find the channel number that the start message refers to.
|
getStartProfileBlob(self)getStartProfileBlob() gets the contents of the CDATA element within a <start> message profile, which should be a <blob></blob> section to be passed to the profile.
|
isClose(self)Is this Message a close message?
|
isError(self)Is this Message an error message?
|
isGreeting(self)Is this Message a greeting message?
|
isOK(self)Is this Message an ok message?
|
isProfile(self)Messages of type profile are replies to a channel start MSG that was successful.
|
isStart(self)Is this Message a greeting message?
|
validate(self)This is a hack because I can't be bothered integrating a validating XML parser into the core just yet. Maybe later. All this does is validate the message against the BEEP management profile DTD.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Thu Sep 30 14:39:25 2004 | http://epydoc.sf.net |