Net::Stomp::Frame - A STOMP Frame
use Net::Stomp::Frame; my $frame = Net::Stomp::Frame->new( { command => $command, headers => $headers, body => $body, } ); my $frame = Net::Stomp::Frame->parse($string); my $string = $frame->as_string;
This module encapulates a Stomp frame. Stomp is the Streaming Text Orientated Messaging Protocol (or the Protocol Briefly Known as TTMP and Represented by the symbol :ttmp). It's a simple and easy to implement protocol for working with Message Orientated Middleware from any language. Net::Stomp is useful for talking to Apache ActiveMQ, an open source (Apache 2.0 licensed) Java Message Service 1.1 (JMS) message broker packed with many enterprise features.
A Stomp frame consists of a command, a series of headers and a body.
For details on the protocol see http://stomp.codehaus.org/Protocol.
Create a new Net::Stomp::Frame object:
my $frame = Net::Stomp::Frame->new( { command => $command, headers => $headers, body => $body, } );
Create a new Net::Somp::Frame given a string containing the serialised frame:
my $frame = Net::Stomp::Frame->parse($string);
Create a string containing the serialised frame representing the frame:
my $string = $frame->as_string;
Net::Stomp.
Leon Brocard <acme@astray.com>.
Copyright (C) 2006, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install Net::Stomp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Stomp
CPAN shell
perl -MCPAN -e shell install Net::Stomp
For more information on module installation, please visit the detailed CPAN module installation guide.