Usually the constructor takes no arguments except when you want to construct
an answer form, then you call the constructor like this:
If you have legacy form fields as a hash ref in $filled_legacy_form:
If you have a data form in $answer_data_form:
|<B>try_fillout_registration ($username, B>$password<B>)B>||
This method tries to fill out a form which was received from the
other end. It enters the username and password and returns a
new AnyEvent::XMPP::Ext::RegisterForm object which is the answer
Registration without user interaction is theoretically not possible because forms can be different from server to server and require different information. Please also have a look at XEP-0077.
Note that if the form is more complicated this method will not work and its not guranteed that the registration will be successful.
Calling this method on a answer form (where is_answer_form returns true) will have an undefined result.
|<B>is_answer_formB>||This method will return a true value if this form was returned by eg. try_fillout_registration or generally represents an answer form.|
|<B>is_already_registeredB>||This method returns true if the received form were just the current registration data. Basically this method returns true when you are already registered to the server.|
This method returns a hash with the keys being the fields
of the legacy form as described in the XML scheme of XEP-0077.
If the form contained just nodes the keys will have undef as value.
|<B>get_data_formB>||This method returns the AnyEvent::XMPP::Ext::DataForm that came with the registration response. If no data form was provided by the server this method returns undef.|
|<B>get_oobB>||This method returns a hash like the one returned from the function url_from_node in AnyEvent::XMPP::Ext::OOB. It contains the out of band data for this registration form.|
|<B>answer_form_to_simxmlB>||This method returns a list of simxml nodes.|
Robin Redeker, <elmex at ta-sa.org>, JID: <elmex at jabber.org>
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||ANYEVENT::XMPP::EXT::REGISTERFORM (3)||2012-12-25|