org.jivesoftware.xiff.data.muc
class MUCExtension
Object
|
+--org.jivesoftware.xiff.data.XMLStanza
|
+--org.jivesoftware.xiff.data.Extension
|
+--org.jivesoftware.xiff.data.muc.MUCExtension
Implemented Interfaces: IExtension, ISerializableclass MUCExtension extends Extension
Implements the base MUC protocol schema from JEP-0045 for multi-user chat. This extension is typically used to test for the presence of MUC enabled conferencing service, or a MUC related error condition.
- Author:Sean Treadway
- Since:2.0.0
Fields inherited from class org.jivesoftware.xiff.data.XMLStanza
Property Summary
This is property allows a user to retrieve a server defined collection of previous messages. Set this property to "true" to retrieve a history of the dicussions.
Size based condition to evaluate by the server for the maximum characters to return during history retrieval
Protocol based condition for the number of stanzas to return during history retrieval
If a room is password protected, add this extension and set the password
Time based condition to retrive all messages for the last N seconds.
Method Summary
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
Called when the library need to retrieve the state of the instance. If the instance manages its own state, then the state should be copied into the XMLNode passed. If the instance also implements INodeProxy, then the parent should be verified against the parent XMLNode passed to determine if the serialization is in the same namespace.
Methods inherited from class org.jivesoftware.xiff.data.XMLStanza
Field Documentation
Property Documentation
history
public history: Boolean (read, write)
This is property allows a user to retrieve a server defined collection of previous messages. Set this property to "true" to retrieve a history of the dicussions.
maxchars
public maxchars: Number (read, write)
Size based condition to evaluate by the server for the maximum characters to return during history retrieval
maxstanzas
public maxstanzas: Number (read, write)
Protocol based condition for the number of stanzas to return during history retrieval
password
public password: String (read, write)
If a room is password protected, add this extension and set the password
seconds
public seconds: Number (read, write)
Time based condition to retrive all messages for the last N seconds.
since
public since: String (read, write)
Time base condition to retrieve all messages from a given time formatted in the format described in JEP-0082.
Constructor Documentation
Method Documentation
deserialize
public function deserialize (
node: XMLNode): Boolean
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
- Specified by:deserialize in interface org.jivesoftware.xiff.data.ISerializable
- Parameters:
node (XMLNode) The node that should be used as the data container.
getElementName
public function getElementName (
): String
- Specified by:getElementName in interface org.jivesoftware.xiff.data.IExtension
getNS
public function getNS (
): String
- Specified by:getNS in interface org.jivesoftware.xiff.data.IExtension
serialize
public function serialize (
parent: XMLNode): Boolean
Called when the library need to retrieve the state of the instance. If the instance manages its own state, then the state should be copied into the XMLNode passed. If the instance also implements INodeProxy, then the parent should be verified against the parent XMLNode passed to determine if the serialization is in the same namespace.
- Specified by:serialize in interface org.jivesoftware.xiff.data.ISerializable
- Parameters:
parent parentNode (XMLNode) The container of the XML.
- MUCExtension.as, Last Modified: 3/10/2005 10:12:34 PM