NAME
Net::Jabber::IQ::Resource - Jabber IQ Resource Module
.....Under Development.....
SYNOPSIS
Net::Jabber::IQ::Resource is a companion to the Net::Jabber::IQ module.
It provides the user a simple interface to set and retrieve all parts
of a Jabber IQ Resource query.
DESCRIPTION
To initialize the IQ with a Jabber <iq/> and then access the resource
query you must pass it the XML::Parser Tree array from the
Net::Jabber::Client module. In the callback function for the iq:
use Net::Jabber;
sub iq {
my $iq = new Net::Jabber::IQ(@_);
my $resource = $iq->GetQuery();
.
.
.
}
You now have access to all of the retrieval functions available.
To create a new IQ resource to send to the server:
use Net::Jabber;
$Client = new Net::Jabber::Client();
...
$IQ = new Net::Jabber::IQ();
$Resource = $IQ->NewQuery("resource");
...
$Client->Send($IQ);
Using $Resource you can call the creation functions below to populate the
tag before sending it.
For more information about the array format being passed to the CallBack
please read the Net::Jabber::Client documentation.
Retrieval functions
@resource = $Resource->GetTree();
$str = $Resource->GetXML();
Creation functions
METHODS
Retrieval functions
GetXML() - returns the XML string that represents the <presence/>.
This is used by the Send() function in Client.pm to send
this object as a Jabber Presence.
GetTree() - returns an array that contains the <presence/> tag
in XML::Parser Tree format.
Creation functions
AUTHOR
By Ryan Eatmon in December of 1999 for http://jabber.org..
COPYRIGHT
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.