1Net::AMQP::Protocol(3)User Contributed Perl DocumentationNet::AMQP::Protocol(3)
2
3
4

NAME

6       Net::AMQP::Protocol - Loading code of the AMQP spec
7

DESCRIPTION

9       This class serves as a loader for the auto-generated classes of the
10       protocol.
11

CLASS METHODS

13   header
14       Returns a binary string representing the header of any AMQP
15       communications
16
17   load_xml_spec
18       Pass in the XML filename.  Reads in the AMQP XML specifications file,
19       XML document node <amqp>, and generates subclasses of
20       Net::AMQP::Protocol::Base for each frame type.
21
22       Names are normalized, as demonstrated by this example:
23
24         <class name='basic'>
25           <method name='consume-ok'>
26             <field name='consumer tag'>
27           </method>
28         </class>
29
30       creates the class Net::AMQP::Protocol::Basic::ConsumeOk with the field
31       accessor "consumer_tag()", allowing you to create a new object as such:
32
33         my $method = Net::AMQP::Protocol::Basic::ConsumeOk->new(
34             consumer_tag => 'blah'
35         );
36
37         print $method->consumer_tag() . "\n";
38         if ($method->class_id == 60 && $method->method_name == 21) {
39           # do something
40         }
41
42   full_docs_to_dir
43         Net::AMQP::Protocol->full_docs_to_dir($dir, $format);
44
45       Using the dynamically generated classes, this will create 'pod' or 'pm'
46       files in the target directory in the following format:
47
48         $dir/Net::AMQP::Protocol::Basic::Publish.pod
49         (or with format 'pm')
50         $dir/Net/AMQP/Protocol/Basic/Publish.pm
51
52       The directory will be created if it doesn't exist.
53

SEE ALSO

55       Net::AMQP
56
58       Copyright (c) 2009 Eric Waters and XMission LLC
59       (http://www.xmission.com/).  All rights reserved.  This program is free
60       software; you can redistribute it and/or modify it under the same terms
61       as Perl itself.
62
63       The full text of the license can be found in the LICENSE file included
64       with this module.
65

AUTHOR

67       Eric Waters <ewaters@gmail.com>
68
69
70
71perl v5.30.0                      2019-07-26            Net::AMQP::Protocol(3)
Impressum