ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Net-XMPP2/lib/Net/XMPP2/Ext.pm
Revision: 1.7
Committed: Fri Jul 20 20:41:48 2007 UTC (19 years, 2 months ago) by elmex
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +8 -0 lines
Log Message:
lots of changes. added as_string to Net::XMPP2::Node to restore
the original xml document part of a stanza or subtree.
also implemented the jabber component protocol.

File Contents

# Content
1 package Net::XMPP2::Ext;
2 use warnings;
3 use strict;
4 use Net::XMPP2::Event;
5
6 our @ISA = qw/Net::XMPP2::Event/;
7
8 =head1 NAME
9
10 Net::XMPP2::Ext - Extension baseclass and documentation
11
12 =head1 DESCRIPTION
13
14 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
23 =head1 Supportet extensions
24
25 This is the list of supported XMPP extensions:
26
27 =over 4
28
29 =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 =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 error with for example the C<write_error_tag> method of L<Net::XMPP2::Writer>.
42
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 =item XEP-0114 - Jabber Component Protocol
55
56 This extension allows you to connect to a server as a component
57 and makes it possible to implement services like pubsub, muc, or
58 whatever you can imagine (even gateways).
59 See documentation of L<Net::XMPP2::Component> and the example
60 C<samples/simple_component>.
61
62 =back
63
64 =head1 AUTHOR
65
66 Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >>
67
68 =head1 COPYRIGHT & LICENSE
69
70 Copyright 2007 Robin Redeker, all rights reserved.
71
72 This program is free software; you can redistribute it and/or modify it
73 under the same terms as Perl itself.
74
75 =cut
76
77 1; # End of Net::XMPP2