-
-
02 May 2013 03:16:39 UTC
- Distribution: Net-AMQP
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (13)
- Testers (4476 / 996 / 0)
- Kwalitee
Bus factor: 1- 33.63% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (289.73KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::Accessor
- Class::Data::Inheritable
- Scalar::Util
- XML::LibXML
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Net::AMQP::Protocol::Base - Base class of auto-generated protocol classes
DESCRIPTION
See "load_xml_spec" in Net::AMQP::Protocol for how subclasses to this class are auto-generated.
CLASS METHODS
class_id
The class id from the specficiation.
method_id
The method id from the specification. In the case of a content <class> (such as Basic, File or Stream), method_id is 0 for the virtual ContentHeader method. This allows you to create a Header frame in much the same way you create a Method frame, but with the virtual method 'ContentHeader'. For example:
my $header_frame = Net::AMQP::Protocol::Basic::ContentHeader->new( content_type => 'text/html' ); print $header_frame->method_id(); # prints '0'
frame_arguments
Contains an ordered arrayref of the fields that comprise a frame for this method. For example:
Net::AMQP::Protocol::Channel::Open->frame_arguments([ out_of_band => 'short_string' ]);
This is used by the Net::AMQP::Frame subclasses to (de)serialize raw binary data. Each of these fields are also an accessor for the class objects.
class_spec
Contains the hashref that the
load_xml_spec()
call generated for this class.method_spec
Same as above, but for this method.
OBJECT METHODS
frame_wrap
Returns a Net::AMQP::Frame subclass object that wraps the given object, if possible.
SEE ALSO
COPYRIGHT
Copyright (c) 2009 Eric Waters and XMission LLC (http://www.xmission.com/). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
AUTHOR
Eric Waters <ewaters@gmail.com>
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 61:
=back without =over
Module Install Instructions
To install Net::AMQP, copy and paste the appropriate command in to your terminal.
cpanm Net::AMQP
perl -MCPAN -e shell install Net::AMQP
For more information on module installation, please visit the detailed CPAN module installation guide.