| Class | Jabber::Protocol::Iq |
| In: |
lib/jabber4r/protocol.rb
|
| Parent: | Object |
A class used to build/parse IQ requests/responses
| ERROR | = | "error" |
| GET | = | "get" |
| SET | = | "set" |
| RESULT | = | "result" |
| data | [RW] | |
| error | [RW] | |
| errorcode | [RW] | |
| from | [RW] | |
| id | [RW] | |
| session | [RW] | |
| to | [RW] | |
| type | [RW] | |
| xmlns | [RW] |
Factory to build an IQ object from xml element
| session: | [Jabber::Session] The Jabber session instance |
| element: | [Jabber::Protocol::ParsedXMLElement] The received XML object |
| return: | [Jabber::Protocol::Iq] The newly created Iq object |
Generates an IQ authortization request XML element
| id: | [String] The message id |
| username: | [String] The username |
| password: | [String] The password |
| resource: | [String] The resource to bind this session to |
| return: | [String] The XML data to send |
Generates an IQ digest authortization request XML element
| id: | [String] The message id |
| username: | [String] The username |
| digest: | [String] The SHA-1 hash of the sessionid and the password |
| resource: | [String] The resource to bind this session to |
| return: | [String] The XML data to send |
Generates an IQ authortization request XML element
| id: | [String] The message id |
| username: | [String] The username |
| password: | [String] The password |
| email: | [String] The email address of the account |
| name: | [String] The full name |
| return: | [String] The XML data to send |
Generates an IQ roster request XML element
| id: | [String] The message id |
| return: | [String] The XML data to send |
Default constructor to build an Iq object
| session: | [Jabber::Session] The Jabber session instance |
| id: | [String=nil] The (optional) id of the Iq object |