org.jivesoftware.xiff.data.register
class RegisterExtension
Object
|
+--org.jivesoftware.xiff.data.XMLStanza
|
+--org.jivesoftware.xiff.data.Extension
|
+--org.jivesoftware.xiff.data.register.RegisterExtension
Implemented Interfaces: IExtension, ISerializableclass RegisterExtension extends Extension
Implements jabber:iq:register namespace. Use this to create new accounts on the jabber server. Send an empty IQ.GET_TYPE packet with this extension and the return will either be a conflict, or the fields you will need to fill out. Send a IQ.SET_TYPE packet to the server and with the fields that are listed in getRequiredFieldNames set on this extension. Check the result and re-establish the connection with the new account.
- Author:Sean Treadway
- Since:2.0.0
Fields inherited from class org.jivesoftware.xiff.data.XMLStanza
Method Summary
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
Performs the registration of this extension into the extension registry.
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
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.
enable
public static function enable (
): Void
Performs the registration of this extension into the extension registry.
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 (
parentNode: 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:
parentNode (XMLNode) The container of the XML.
- RegisterExtension.as, Last Modified: 3/10/2005 10:13:06 PM