ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Net-XMPP2/lib/Net/XMPP2/Ext.pm
Revision: 1.5
Committed: Sat Jul 7 12:39:45 2007 UTC (19 years, 2 months ago) by elmex
Branch: MAIN
Changes since 1.4: +12 -2 lines
Log Message:
fixed some bugs, redesigned disco mechanism, probably added some bugs,
added samples/disco_test example.

File Contents

# User Rev Content
1 elmex 1.1 package Net::XMPP2::Ext;
2     use warnings;
3     use strict;
4 elmex 1.5 use Net::XMPP2::Event;
5    
6     our @ISA = qw/Net::XMPP2::Event/;
7 elmex 1.1
8     =head1 NAME
9    
10 elmex 1.5 Net::XMPP2::Ext - Extension baseclass and documentation
11 elmex 1.1
12     =head1 DESCRIPTION
13    
14 elmex 1.5 This module has documentation about the supported extensions
15     and also is a base class for all extensions that can be added
16     via the C<add_extension> method of the classes that derive from
17     L<Net::XMPP2::Extendable>. (That are: L<Net::XMPP2::Client>,
18     L<Net::XMPP2::Connection> and L<Net::XMPP2::IM::Connection>)
19    
20     Basically C<add_extension> makes the extension an event receiver
21     for all events that the extended object receives.
22 elmex 1.1
23     =head1 Supportet extensions
24    
25     This is the list of supported XMPP extensions:
26    
27     =over 4
28    
29 elmex 1.4 =item XEP-0004 - Data Forms
30    
31     This extension handles data forms as described in XEP-0004.
32     L<Net::XMPP2::Ext::DataForm> allows you to construct, receive and
33     answer data forms. This is neccessary for all sorts of things in XMPP.
34     For example XEP-0055 (Jabber Search) or also In-band registration.
35    
36 elmex 1.1 =item XEP-0086 - Error Condition Mappings
37    
38     "A mapping to enable legacy entities to correctly handle errors from XMPP-aware entities."
39    
40     This extension will enable sending of the old error codes when generating a stanza
41 elmex 1.3 error with for example the C<write_error_tag> method of L<Net::XMPP2::Writer>.
42 elmex 1.1
43     =item XEP-0030 - Service Discovery
44    
45     This extension allows you to send service discovery requests and
46     define a set of discoverable information. See also L<Net::XMPP2::Ext::Disco>.
47    
48     =item XEP-0077 - In-Band Registration
49    
50     This extension lets you register new accounts "in-band".
51     To use this look at the description of the C<register> option to the C<new>
52     method of L<Net::XMPP2::Connection>.
53    
54     =back
55    
56     =cut
57    
58     =head1 AUTHOR
59    
60 elmex 1.2 Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >>
61 elmex 1.1
62     =head1 COPYRIGHT & LICENSE
63    
64     Copyright 2007 Robin Redeker, all rights reserved.
65    
66     This program is free software; you can redistribute it and/or modify it
67     under the same terms as Perl itself.
68    
69     =cut
70    
71     1; # End of Net::XMPP2