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, ISerializable

class 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

Field Summary

public static ELEMENT: String
public static NS: String
Static class variables to be overridden in subclasses;
Fields inherited from class org.jivesoftware.xiff.data.XMLStanza

Property Summary

public address: String (read, write)
public city: String (read, write)
public date: String (read, write)
public email: String (read, write)
public first: String (read, write)
public instructions: String (read, write)
public key: String (read, write)
public last: String (read, write)
public misc: String (read, write)
public nick: String (read, write)
public password: String (read, write)
public phone: String (read, write)
public state: String (read, write)
public text: String (read, write)
public unregister: Boolean (read, write)
public url: String (read, write)
public username: String (read, write)
public zip: String (read, write)

Constructor

public RegisterExtension ( parent: XMLNode)

Method Summary

public deserialize ( node: XMLNode ): Boolean
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
public static enable ( ): Void
Performs the registration of this extension into the extension registry.
public getElementName ( ): String
public getField ( name: String ): String
public getNS ( ): String
public getRequiredFieldNames ( ): Array
public 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.
public setField ( name: String, val: String ): Void
Methods inherited from class org.jivesoftware.xiff.data.Extension
Methods inherited from class org.jivesoftware.xiff.data.XMLStanza

Field Documentation

ELEMENT

public static var ELEMENT: String

    Property Documentation

    address

    public address: String (read, write)

      city

      public city: String (read, write)

        date

        public date: String (read, write)

          email

          public email: String (read, write)

            first

            public first: String (read, write)

              instructions

              public instructions: String (read, write)

                key

                public key: String (read, write)

                  last

                  public last: String (read, write)

                    misc

                    public misc: String (read, write)

                      nick

                      public nick: String (read, write)

                        password

                        public password: String (read, write)

                          phone

                          public phone: String (read, write)

                            state

                            public state: String (read, write)

                              text

                              public text: String (read, write)

                                unregister

                                public unregister: Boolean (read, write)

                                  url

                                  public url: String (read, write)

                                    username

                                    public username: String (read, write)

                                      zip

                                      public zip: String (read, write)

                                        Constructor Documentation

                                        RegisterExtension

                                        public function RegisterExtension (
                                        parent: XMLNode)

                                          Method Documentation